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-Nov-2008 21:55:48 Branch: HEAD Handle: 2008112220554800 Modified files: openpkg-src/flex flex.spec Log: add Reflex Summary: Revision Changes Path 1.93 +25 -3 openpkg-src/flex/flex.spec ____________________________________________________________________________ patch -p0 <<'@@ .' Index: openpkg-src/flex/flex.spec ============================================================================ $ cvs diff -u -r1.92 -r1.93 flex.spec --- openpkg-src/flex/flex.spec 27 Feb 2008 06:49:39 -0000 1.92 +++ openpkg-src/flex/flex.spec 22 Nov 2008 20:55:48 -0000 1.93 @@ -25,6 +25,7 @@ %define V_new 2.5.35 %define V_old 2.5.4a %define V_old_maj 2.5.4 +%define V_reflex 20081118 # package information Name: flex @@ -37,7 +38,7 @@ Group: CompilerCompiler License: BSD Version: %{V_new} -Release: 20080227 +Release: 20081122 # package options %option with_old no @@ -45,6 +46,7 @@ # list of sources Source0: http://switch.dl.sourceforge.net/sourceforge/flex/flex-%{V_new}.tar.gz Source1: http://switch.dl.sourceforge.net/sourceforge/flex/flex-%{V_old}.tar.gz +Source2: ftp://invisible-island.net/reflex/reflex-%{V_reflex}.tgz Patch0: flex.patch # build information @@ -79,10 +81,16 @@ url = http://flex.sourceforge.net/ regex = flex-(__VER__)\.tar\.gz } + prog flex:reflex = { + version = %{V_reflex} + url = ftp://invisible-island.net/reflex/ + regex = reflex-(__VER__)\.tgz + } %prep %setup -q -c %setup -q -T -D -a 1 + %setup -q -T -D -a 2 %patch -p0 -d flex-%{V_new} sleep 1; touch flex-%{V_new}/scan.c %{l_shtool} subst \ @@ -107,8 +115,8 @@ %{l_make} %{l_mflags} ) || exit $? - # configure and build Flex (old version) %if "%{with_old}" == "yes" + # configure and build Flex (old version) ( cd flex-%{V_old_maj} CC="%{l_cc}" \ CFLAGS="%{l_cflags -O}" \ @@ -116,13 +124,21 @@ --prefix=$RPM_BUILD_ROOT%{l_prefix} %{l_make} %{l_mflags} ) || exit $? + # configure and build Reflex (alternative old version) + ( cd reflex-%{V_reflex} + CC="%{l_cc}" \ + CFLAGS="%{l_cflags -O}" \ + ./configure \ + --prefix=%{l_prefix} + %{l_make} %{l_mflags} + ) || exit $? %endif %install rm -rf $RPM_BUILD_ROOT - # install Flex (old version) %if "%{with_old}" == "yes" + # install Flex (old version) ( cd flex-%{V_old_maj} %{l_make} %{l_mflags} install rm -f $RPM_BUILD_ROOT%{l_prefix}/bin/flex++ @@ -135,6 +151,12 @@ mv $RPM_BUILD_ROOT%{l_prefix}/man/man1/flex.1 \ $RPM_BUILD_ROOT%{l_prefix}/man/man1/flex-old.1 ) || exit $? + # install Reflex (alternative old version) + ( cd reflex-%{V_reflex} + %{l_make} %{l_mflags} install \ + prefix=$RPM_BUILD_ROOT%{l_prefix} \ + exec_prefix=$RPM_BUILD_ROOT%{l_prefix} + ) || exit $? %endif # install Flex (new version) @@ . ______________________________________________________________________ OpenPKG http://openpkg.org CVS Repository Commit List openpkg-cvs@openpkg.org