OpenPKG CVS Repository
  http://cvs.openpkg.org/
  ____________________________________________________________________________

  Server: cvs.openpkg.org                  Name:   Matthias Kurz
  Root:   /v/openpkg/cvs                   Email:  [EMAIL PROTECTED]
  Module: openpkg-src                      Date:   11-Jan-2006 20:31:13
  Branch: HEAD                             Handle: 2006011119311200

  Added files:
    openpkg-src/viewvc      viewvc.patch viewvc.spec

  Log:
    new package: viewvc 0.9.4 (CVS repository browser)

  Summary:
    Revision    Changes     Path
    1.1         +32 -0      openpkg-src/viewvc/viewvc.patch
    1.1         +104 -0     openpkg-src/viewvc/viewvc.spec
  ____________________________________________________________________________

  patch -p0 <<'@@ .'
  Index: openpkg-src/viewvc/viewvc.patch
  ============================================================================
  $ cvs diff -u -r0 -r1.1 viewvc.patch
  --- /dev/null 2006-01-11 20:31:12 +0100
  +++ viewvc.patch      2006-01-11 20:31:12 +0100
  @@ -0,0 +1,32 @@
  +Index: lib/viewcvs.py
  +--- lib/viewcvs.py.orig      2005-08-17 22:45:14.000000000 +0200
  ++++ lib/viewcvs.py   2006-01-10 06:18:59.000000000 +0100
  +@@ -479,7 +479,7 @@
  + def markup_stream_enscript(lang, fp):
  +   sys.stdout.flush()
  +   enscript = 
popen.pipe_cmds([(os.path.normpath(os.path.join(cfg.options.enscript_path,'enscript')),
  +-                               '--color', '-W', 'html', '-E' + lang, '-o',
  ++                               '--color', '--language=html', '-E' + lang, 
'-o',
  +                                '-', '-'),
  +                               ('sed', '-n', '/^<PRE>$/,/<\\/PRE>$/p')])
  + 
  +Index: viewcvs-install
  +--- viewcvs-install.orig     2001-12-21 12:59:45.000000000 +0100
  ++++ viewcvs-install  2006-01-10 06:17:05.000000000 +0100
  +@@ -52,6 +52,7 @@
  + 
  + ## installer defaults
  + ROOT_DIR = "/usr/local/viewcvs-" + version
  ++RPM_BUILD_ROOT = "@RPM_BUILD_ROOT@"
  + 
  + 
  + ## list of files for installation
  +@@ -159,6 +160,8 @@
  + def InstallFile(src_path, dest_path, mode, set_python_paths, prompt_replace,
  +                 compile_it):
  +   dest_path = os.path.join(ROOT_DIR, dest_path)
  ++  dest_path = "." + dest_path
  ++  dest_path = os.path.join(RPM_BUILD_ROOT, dest_path)
  +     
  +   if prompt_replace and os.path.exists(dest_path):
  +     # Collect ndiff output from ndiff
  @@ .
  patch -p0 <<'@@ .'
  Index: openpkg-src/viewvc/viewvc.spec
  ============================================================================
  $ cvs diff -u -r0 -r1.1 viewvc.spec
  --- /dev/null 2006-01-11 20:31:12 +0100
  +++ viewvc.spec       2006-01-11 20:31:13 +0100
  @@ -0,0 +1,104 @@
  +##
  +##  viewvc.spec -- OpenPKG RPM Package Specification
  +##  Copyright (c) 2000-2006 OpenPKG Foundation e.V. <http://openpkg.net/>
  +##  Copyright (c) 2000-2006 Ralf S. Engelschall <http://engelschall.com/>
  +##
  +##  Permission to use, copy, modify, and distribute this software for
  +##  any purpose with or without fee is hereby granted, provided that
  +##  the above copyright notice and this permission notice appear in all
  +##  copies.
  +##
  +##  THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
  +##  WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
  +##  MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
  +##  IN NO EVENT SHALL THE AUTHORS AND COPYRIGHT HOLDERS AND THEIR
  +##  CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  +##  SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  +##  LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
  +##  USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
  +##  ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
  +##  OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
  +##  OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  +##  SUCH DAMAGE.
  +##
  +
  +#   package information
  +Name:         viewvc
  +Summary:      CVS repository browser
  +URL:          http://www.viewvc.org/
  +Vendor:       The ViewCVS Group
  +Packager:     OpenPKG
  +Distribution: OpenPKG
  +Class:        EVAL
  +Group:        Development
  +License:      BSD
  +Version:      0.9.4
  +Release:      20060111
  +
  +%option       with_cvsgraph no
  +
  +#   list of sources
  +Source0:      
http://viewvc.tigris.org/files/documents/3330/27671/viewcvs-%{version}.tar.gz
  +Patch0:       viewvc.patch
  +
  +#   build information
  +Prefix:       %{l_prefix}
  +BuildRoot:    %{l_buildroot}
  +BuildPreReq:  OpenPKG, openpkg >= 2.5.0, python
  +PreReq:       OpenPKG, openpkg >= 2.5.0
  +PreReq:       diffutils, rcs, python, enscript
  +%if  "%{with_cvsgraph}" == "yes"
  +PreReq:       cvsgraph
  +%endif
  +AutoReq:      no
  +AutoReqProv:  no
  +
  +%description
  +    ViewVC is a browser interface for CVS and Subversion version control
  +    repositories. It generates templatized HTML to present navigable
  +    directory, revision, and change log listings. It can display specific
  +    versions of files as well as diffs between those versions. Basically,
  +    ViewVC provides the bulk of the report-like functionality you expect
  +    out of your version control tool, but much more prettily than the
  +    average textual command-line program output.
  +
  +%track
  +    prog viewcvs = {
  +        version   = %{version}
  +        url       = http://www.viewvc.tigris.org/files/documents/3330/27671/
  +        regex     = viewcvs-(__VER__)\.tar\.gz
  +    }
  +
  +%prep
  +    %setup -q -n viewcvs-%{version}
  +    %patch -p0
  +
  +%build
  +    %{l_shtool} subst \
  +                -e "s,@RPM_BUILD_ROOT@,$RPM_BUILD_ROOT," \
  +                viewcvs-install
  +    %{l_shtool} subst \
  +                -e "s,^use_enscript =.*,use_enscript = 1," \
  +                -e "s,^enscript_path =.*,enscript_path = %{l_prefix}/bin/," \
  +                cgi/viewcvs.conf.dist
  +%if "%{with_cvsgraph}" == "yes"
  +    %{l_shtool} subst \
  +                -e "s,^use_cvsgraph =.*,use_cvsgraph = 1," \
  +                -e "s,^cvsgraph_path =.*,cvsgraph_path = %{l_prefix}/bin/," \
  +                cgi/viewcvs.conf.dist
  +%endif
  +
  +%install
  +    rm -rf $RPM_BUILD_ROOT
  +    %{l_shtool} mkdir -f -p -m 755 \
  +        $RPM_BUILD_ROOT%{l_prefix}/share/viewvc
  +    echo "%{l_prefix}/share/viewvc" | ./viewcvs-install
  +    mv $RPM_BUILD_ROOT%{l_prefix}/share/viewvc/cgi \
  +       $RPM_BUILD_ROOT%{l_prefix}/cgi
  +    %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std}
  +
  +%files -f files
  +
  +%clean
  +    rm -rf $RPM_BUILD_ROOT
  +
  @@ .
______________________________________________________________________
The OpenPKG Project                                    www.openpkg.org
CVS Repository Commit List                     [email protected]

Reply via email to