OpenPKG CVS Repository http://www.openpkg.org/cvsweb/cvsweb.cgi ____________________________________________________________________________
Server: cvs.openpkg.org Name: Ralf S. Engelschall Root: /e/openpkg/cvs Email: [EMAIL PROTECTED] Module: openpkg-re, openpkg-web, openpkg-src Date: 01-Jul-2002 18:31:04 Branch: HEAD Handle: 2002070117310301 Modified files: openpkg-re/vcheck vc.flex openpkg-src/flex flex.spec openpkg-web news.txt Log: upgrade to latest beta and include it always in non-conflicting way Summary: Revision Changes Path 1.6 +7 -6 openpkg-re/vcheck/vc.flex 1.28 +47 -35 openpkg-src/flex/flex.spec 1.860 +1 -0 openpkg-web/news.txt ____________________________________________________________________________ Index: openpkg-re/vcheck/vc.flex ============================================================ $ cvs diff -u -r1.5 -r1.6 vc.flex --- openpkg-re/vcheck/vc.flex 14 May 2002 18:52:27 -0000 1.5 +++ openpkg-re/vcheck/vc.flex 1 Jul 2002 16:31:03 -0000 1.6 @@ -1,14 +1,15 @@ config = { } -prog flex:devel = { - version = 2.5.7-developer-2002-05-13 - url = http://astro.temple.edu/~john43/flex/ - regex = flex-(.+?)\.tar\.gz -} -prog flex:stable = { +prog flex:release = { version = 2.5.4a url = ftp://ftp.gnu.org/non-gnu/flex/ + regex = flex-(__VER__)\.tar\.gz +} +prog flex:beta = { + comment = "see also http://astro.temple.edu/~john43/flex/" + version = 2.5.8 + url = ftp://ftp.uncg.edu/people/wlestes/ regex = flex-(__VER__)\.tar\.gz } Index: openpkg-src/flex/flex.spec ============================================================ $ cvs diff -u -r1.27 -r1.28 flex.spec --- openpkg-src/flex/flex.spec 29 May 2002 19:59:56 -0000 1.27 +++ openpkg-src/flex/flex.spec 1 Jul 2002 16:31:04 -0000 1.28 @@ -24,17 +24,14 @@ ## # package options -%ifndef with_unstable -%define with_unstable no +%ifndef with_beta +%define with_beta yes %endif # package versions -%define V_stable 2.5.4a -%define V_stable_maj 2.5.4 -%define V_stable_min a -%define V_unstable 2.5.7s20020513 -%define V_unstable_maj 2.5.7 -%define V_unstable_min 2002-05-13 +%define V_release 2.5.4a +%define V_release_maj 2.5.4 +%define V_beta 2.5.8 # package information Name: flex @@ -45,19 +42,12 @@ Distribution: OpenPKG [REL] Group: Language License: BSD -%if "%{with_unstable}" == "yes" -Version: %{V_unstable} -%else -Version: %{V_stable} -%endif -Release: 20020514 +Version: %{V_release} +Release: 20020701 # list of sources -%if "%{with_unstable}" == "yes" -Source0: http://astro.temple.edu/~john43/flex/flex-%{V_unstable_maj}-developer-%{V_unstable_min}.tar.gz -%else -Source0: ftp://ftp.gnu.org/non-gnu/flex/flex-%{V_stable}.tar.gz -%endif +Source0: ftp://ftp.gnu.org/non-gnu/flex/flex-%{V_release}.tar.gz +Source1: ftp://ftp.uncg.edu/people/wlestes/flex-%{V_beta}.tar.gz # build information Prefix: %{l_prefix} @@ -77,31 +67,53 @@ is run, it analyzes its input for occurrences of the regular expressions. Whenever it finds one, it executes the corresponding C code. - Options: with_unstable=%{with_unstable} + Options: with_beta=%{with_beta} %prep -%if "%{with_unstable}" == "yes" - %setup -q -n flex-%{V_unstable_maj} -%else - %setup -q -n flex-%{V_stable_maj} + %setup0 -q -c -n flex-%{version} +%if "%{with_beta}" == "yes" + %setup1 -q -T -D -a 1 %endif %build - PATH="%{l_prefix}/bin:%{l_prefix}/sbin:$PATH" - export PATH - CC="%{l_cc}" \ - CFLAGS="%{l_cflags -O}" \ - ./configure \ - --prefix=$RPM_BUILD_ROOT%{l_prefix} - %{l_make} %{l_mflags} +%if "%{with_beta}" == "yes" + ( cd flex-%{V_beta} + CC="%{l_cc}" \ + CFLAGS="%{l_cflags -O}" \ + ./configure \ + --prefix=%{l_prefix} \ + --disable-nls + %{l_make} %{l_mflags} + ) +%endif + ( cd flex-%{V_release_maj} + CC="%{l_cc}" \ + CFLAGS="%{l_cflags -O}" \ + ./configure \ + --prefix=$RPM_BUILD_ROOT%{l_prefix} + %{l_make} %{l_mflags} + ) %install rm -rf $RPM_BUILD_ROOT - %{l_make} %{l_mflags} install +%if "%{with_beta}" == "yes" + ( cd flex-%{V_beta} + %{l_make} %{l_mflags} install AM_MAKEFLAGS="DESTDIR=$RPM_BUILD_ROOT" + mv $RPM_BUILD_ROOT%{l_prefix}/bin/flex \ + $RPM_BUILD_ROOT%{l_prefix}/bin/flex-beta + mv $RPM_BUILD_ROOT%{l_prefix}/include/FlexLexer.h \ + $RPM_BUILD_ROOT%{l_prefix}/include/FlexLexer-beta.h + mv $RPM_BUILD_ROOT%{l_prefix}/lib/libfl.a \ + $RPM_BUILD_ROOT%{l_prefix}/lib/libfl-beta.a + mv $RPM_BUILD_ROOT%{l_prefix}/man/man1/flex.1 \ + $RPM_BUILD_ROOT%{l_prefix}/man/man1/flex-beta.1 + ) +%endif + ( cd flex-%{V_release_maj} + %{l_make} %{l_mflags} install + rm -f $RPM_BUILD_ROOT%{l_prefix}/bin/flex++ + ) strip $RPM_BUILD_ROOT%{l_prefix}/bin/* >/dev/null 2>&1 || true - rm -f $RPM_BUILD_ROOT%{l_prefix}/bin/flex++ - ln $RPM_BUILD_ROOT%{l_prefix}/bin/flex \ - $RPM_BUILD_ROOT%{l_prefix}/bin/flex++ %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std} %files -f files Index: openpkg-web/news.txt ============================================================ $ cvs diff -u -r1.859 -r1.860 news.txt --- openpkg-web/news.txt 1 Jul 2002 14:25:15 -0000 1.859 +++ openpkg-web/news.txt 1 Jul 2002 16:31:03 -0000 1.860 @@ -1,3 +1,4 @@ +01-Jul-2002: Upgraded package: P<flex-2.5.4a-20020701> 01-Jul-2002: Upgraded package: P<iozone-3.112-20020701> 01-Jul-2002: New package: P<geoip-0.2.0-20020701> 01-Jul-2002: Upgraded package: P<pari-2.1.4-20020701> ______________________________________________________________________ The OpenPKG Project www.openpkg.org CVS Repository Commit List [EMAIL PROTECTED]