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

  Server: cvs.openpkg.org                  Name:   Ralf S. Engelschall
  Root:   /v/openpkg/cvs                   Email:  [EMAIL PROTECTED]
  Module: openpkg-src                      Date:   19-Oct-2007 08:42:19
  Branch: HEAD                             Handle: 2007101907421800

  Modified files:
    openpkg-src/pecomato    pecomato.spec

  Log:
    upgrade and build and install manual page, too

  Summary:
    Revision    Changes     Path
    1.2         +20 -16     openpkg-src/pecomato/pecomato.spec
  ____________________________________________________________________________

  patch -p0 <<'@@ .'
  Index: openpkg-src/pecomato/pecomato.spec
  ============================================================================
  $ cvs diff -u -r1.1 -r1.2 pecomato.spec
  --- openpkg-src/pecomato/pecomato.spec        28 Sep 2007 19:07:22 -0000      
1.1
  +++ openpkg-src/pecomato/pecomato.spec        19 Oct 2007 06:42:18 -0000      
1.2
  @@ -32,8 +32,8 @@
   Class:        EVAL
   Group:        Graphics
   License:      GPL
  -Version:      0.0.14
  -Release:      20070928
  +Version:      0.0.15
  +Release:      20071019
   
   #   list of sources
   Source0:      
http://www.mollux.org/projects/pecomato/download/sources/pecomato-%{version}.tar.bz2
  @@ -41,7 +41,7 @@
   #   build information
   Prefix:       %{l_prefix}
   BuildRoot:    %{l_buildroot}
  -BuildPreReq:  OpenPKG, openpkg >= 20060823, make, gcc
  +BuildPreReq:  OpenPKG, openpkg >= 20060823, make, gcc, python
   PreReq:       OpenPKG, openpkg >= 20060823
   AutoReq:      no
   AutoReqProv:  no
  @@ -88,23 +88,27 @@
           CC="%{l_cc}" \
           PREFIX="%{l_prefix}"
   
  +    #   build manual page
  +    ( cd doc
  +      %{l_prefix}/bin/python ../devtools/txt2tags.py \
  +          --no-rc -t man -i manpage.t2t -o pecomato.1
  +    ) || exit $?
  +
   %install
       rm -rf $RPM_BUILD_ROOT
   
  -    #   determine platform-specific Makefile
  -    makefile="Makefile.unix"
  -    case "%{l_platform -t}" in
  -        *-linux* ) makefile="Makefile.linux" ;;
  -    esac
  -
  -    #   install pecomato
  -    %{l_make} %{l_mflags} -f $makefile install-dirs install-bin \
  -        PREFIX="$RPM_BUILD_ROOT%{l_prefix}"
  -
  -    #   strip installation
  -    rm -rf $RPM_BUILD_ROOT%{l_prefix}/doc   >/dev/null 2>&1 || true
  -    strip  $RPM_BUILD_ROOT%{l_prefix}/bin/* >/dev/null 2>&1 || true
  +    #   create installation hierarchy
  +    %{l_shtool} mkdir -f -p -m 755 \
  +        $RPM_BUILD_ROOT%{l_prefix}/bin \
  +        $RPM_BUILD_ROOT%{l_prefix}/man/man1
  +
  +    #   install program and manual page
  +    %{l_shtool} install -c -s -m 755 \
  +        pecomato $RPM_BUILD_ROOT%{l_prefix}/bin/
  +    %{l_shtool} install -c -m 644 \
  +        doc/pecomato.1 $RPM_BUILD_ROOT%{l_prefix}/man/man1/
   
  +    #   determine installation files
       %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std}
   
   %files -f files
  @@ .
______________________________________________________________________
OpenPKG                                             http://openpkg.org
CVS Repository Commit List                     [email protected]

Reply via email to