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:   22-Dec-2007 16:39:22
  Branch: HEAD                             Handle: 2007122215392100

  Modified files:
    openpkg-src/flex        flex.spec

  Log:
    still allow us to build an ancient Flex, but at least no longer build
    it by default

  Summary:
    Revision    Changes     Path
    1.89        +8  -1      openpkg-src/flex/flex.spec
  ____________________________________________________________________________

  patch -p0 <<'@@ .'
  Index: openpkg-src/flex/flex.spec
  ============================================================================
  $ cvs diff -u -r1.88 -r1.89 flex.spec
  --- openpkg-src/flex/flex.spec        13 Dec 2007 08:25:49 -0000      1.88
  +++ openpkg-src/flex/flex.spec        22 Dec 2007 15:39:21 -0000      1.89
  @@ -38,7 +38,10 @@
   Group:        CompilerCompiler
   License:      BSD
   Version:      %{V_new}
  -Release:      20071213
  +Release:      20071222
  +
  +#   package options
  +%option       with_old     no
   
   #   list of sources
   Source0:      
http://switch.dl.sourceforge.net/sourceforge/flex/flex-%{V_new}.tar.gz
  @@ -105,6 +108,7 @@
       ) || exit $?
   
       #   configure and build Flex (old version)
  +%if "%{with_old}" == "yes"
       ( cd flex-%{V_old_maj}
         CC="%{l_cc}" \
         CFLAGS="%{l_cflags -O}" \
  @@ -112,11 +116,13 @@
             --prefix=$RPM_BUILD_ROOT%{l_prefix}
         %{l_make} %{l_mflags}
       ) || exit $?
  +%endif
   
   %install
       rm -rf $RPM_BUILD_ROOT
   
       #   install Flex (old version)
  +%if "%{with_old}" == "yes"
       ( cd flex-%{V_old_maj}
         %{l_make} %{l_mflags} install
         rm -f $RPM_BUILD_ROOT%{l_prefix}/bin/flex++
  @@ -129,6 +135,7 @@
         mv  $RPM_BUILD_ROOT%{l_prefix}/man/man1/flex.1 \
             $RPM_BUILD_ROOT%{l_prefix}/man/man1/flex-old.1
       ) || exit $?
  +%endif
   
       #   install Flex (new version)
       ( cd flex-%{V_new}
  @@ .
______________________________________________________________________
OpenPKG                                             http://openpkg.org
CVS Repository Commit List                     openpkg-cvs@openpkg.org

Reply via email to