|
|
@@ -43,11 +43,12 @@ Distribution: OpenPKG [CORE]
|
|
|
Group: Language
|
|
|
License: BSD
|
|
|
Version: %{V_release}
|
|
|
-Release: 20020918
|
|
|
+Release: 20021006
|
|
|
|
|
|
# list of sources
|
|
|
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
|
|
|
+Patch0: flex.patch
|
|
|
|
|
|
# build information
|
|
|
Prefix: %{l_prefix}
|
|
|
@@ -74,26 +75,28 @@ AutoReqProv: no
|
|
|
%if "%{with_beta}" == "yes"
|
|
|
%setup1 -q -T -D -a 1
|
|
|
cd flex-%{V_beta}
|
|
|
+ %patch -p0
|
|
|
%endif
|
|
|
|
|
|
%build
|
|
|
-%if "%{with_beta}" == "yes"
|
|
|
- ( cd flex-%{V_beta}
|
|
|
+ ( cd flex-%{V_release_maj}
|
|
|
CC="%{l_cc}" \
|
|
|
CFLAGS="%{l_cflags -O}" \
|
|
|
./configure \
|
|
|
- --prefix=%{l_prefix} \
|
|
|
- --disable-nls
|
|
|
+ --prefix=$RPM_BUILD_ROOT%{l_prefix}
|
|
|
%{l_make} %{l_mflags}
|
|
|
)
|
|
|
-%endif
|
|
|
- ( cd flex-%{V_release_maj}
|
|
|
+%if "%{with_beta}" == "yes"
|
|
|
+ ( cd flex-%{V_beta}
|
|
|
+ ../flex-%{V_release_maj}/flex -oscan.c scan.l # WORKAROUND FOR 2.5.21 ONLY!
|
|
|
CC="%{l_cc}" \
|
|
|
CFLAGS="%{l_cflags -O}" \
|
|
|
./configure \
|
|
|
- --prefix=$RPM_BUILD_ROOT%{l_prefix}
|
|
|
+ --prefix=%{l_prefix} \
|
|
|
+ --disable-nls
|
|
|
%{l_make} %{l_mflags}
|
|
|
)
|
|
|
+%endif
|
|
|
|
|
|
%install
|
|
|
rm -rf $RPM_BUILD_ROOT
|