|
|
|
@ -29,9 +29,9 @@
|
|
|
|
|
%define V_release_maj 2.5.4 |
|
|
|
|
%define V_release_min a |
|
|
|
|
|
|
|
|
|
%define V_devel 20011101 |
|
|
|
|
%define V_devel 20011203 |
|
|
|
|
%define V_devel_maj 2.5.6 |
|
|
|
|
%define V_devel_min 2001-11-01 |
|
|
|
|
%define V_devel_min 2001-12-03 |
|
|
|
|
|
|
|
|
|
# package information |
|
|
|
|
Name: flex |
|
|
|
@ -47,7 +47,7 @@ Version: %{V_release}
|
|
|
|
|
%else |
|
|
|
|
Version: %{V_devel} |
|
|
|
|
%endif |
|
|
|
|
Release: 20011201 |
|
|
|
|
Release: 20011213 |
|
|
|
|
|
|
|
|
|
# list of sources |
|
|
|
|
%if "%{V_branch}" == "release" |
|
|
|
@ -60,6 +60,9 @@ Source0: http://astro.temple.edu/~john43/flex/flex-%{V_devel_maj}-developer
|
|
|
|
|
Prefix: %{l_prefix} |
|
|
|
|
BuildRoot: %{l_buildroot} |
|
|
|
|
BuildPreReq: OpenPKG, openpkg >= 20011126.0, bison, make |
|
|
|
|
%if "%{V_branch}" == "devel" |
|
|
|
|
BuildPreReq: autoconf, automake |
|
|
|
|
%endif |
|
|
|
|
PreReq: OpenPKG, openpkg >= 20011126.0 |
|
|
|
|
AutoReq: no |
|
|
|
|
AutoReqProv: no |
|
|
|
@ -78,12 +81,15 @@ AutoReqProv: no
|
|
|
|
|
%if "%{V_branch}" == "release" |
|
|
|
|
%setup -q -n flex-%{V_release_maj} |
|
|
|
|
%else |
|
|
|
|
%setup -q -n flex-%{V_devel_maj} |
|
|
|
|
%setup -q -n flex |
|
|
|
|
%endif |
|
|
|
|
|
|
|
|
|
%build |
|
|
|
|
PATH="%{l_prefix}/bin:%{l_prefix}/sbin:$PATH" |
|
|
|
|
export PATH |
|
|
|
|
%if "%{V_branch}" == "devel" |
|
|
|
|
./autogen.sh |
|
|
|
|
%endif |
|
|
|
|
CC="%{l_cc}" \ |
|
|
|
|
CFLAGS="%{l_cflags -O}" \ |
|
|
|
|
./configure \ |
|
|
|
|