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:   28-Mar-2007 19:31:30
  Branch: HEAD                             Handle: 2007032818312900

  Modified files:
    openpkg-src/qdbm        qdbm.spec

  Log:
    add optional Perl API bindings

  Summary:
    Revision    Changes     Path
    1.88        +26 -2      openpkg-src/qdbm/qdbm.spec
  ____________________________________________________________________________

  patch -p0 <<'@@ .'
  Index: openpkg-src/qdbm/qdbm.spec
  ============================================================================
  $ cvs diff -u -r1.87 -r1.88 qdbm.spec
  --- openpkg-src/qdbm/qdbm.spec        9 Mar 2007 10:40:27 -0000       1.87
  +++ openpkg-src/qdbm/qdbm.spec        28 Mar 2007 17:31:29 -0000      1.88
  @@ -33,10 +33,11 @@
   Group:        Database
   License:      LGPL
   Version:      1.8.75
  -Release:      20070309
  +Release:      20070328
   
   #   package options
   %option       with_ndbm  no
  +%option       with_perl  no
   
   #   list of sources
   Source0:      http://qdbm.sourceforge.net/qdbm-%{version}.tar.gz
  @@ -46,6 +47,10 @@
   BuildRoot:    %{l_buildroot}
   BuildPreReq:  OpenPKG, openpkg >= 20040130, gcc, make
   PreReq:       OpenPKG, openpkg >= 20040130
  +%if "%{with_perl}" == "yes"
  +BuildPreReq:  perl, perl-openpkg
  +PreReq:       perl
  +%endif
   AutoReq:      no
   AutoReqProv:  no
   
  @@ -98,7 +103,26 @@
       ln  $RPM_BUILD_ROOT%{l_prefix}/lib/libqdbm.a \
           $RPM_BUILD_ROOT%{l_prefix}/lib/libndbm.a
   %endif
  -    %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std}
  +%if "%{with_perl}" == "yes"
  +    %{l_prefix}/bin/perl-openpkg prepare
  +    for dir in depot curia villa; do
  +        ( cd perl/$dir
  +          %{l_prefix}/bin/perl-openpkg \
  +              --args CC="%{l_cc}" \
  +              --args OPTIMIZE="%{l_cflags}" \
  +              --args INC="-I../.. %{l_cppflags}" \
  +              --args LD="%{l_cc}" \
  +              --args LIBS="-L../.. %{l_ldflags} -lqdbm" \
  +              --args PREFIX="%{l_prefix}" \
  +              configure build install
  +        ) || exit $?
  +    done
  +    %{l_prefix}/bin/perl-openpkg -F perl-openpkg-files fixate cleanup
  +%else
  +    >perl-openpkg-files
  +%endif
  +    %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT \
  +        %{l_files_std} `cat perl-openpkg-files`
   
   %files -f files
   
  @@ .
______________________________________________________________________
OpenPKG                                             http://openpkg.org
CVS Repository Commit List                     openpkg-cvs@openpkg.org

Reply via email to