|
|
@@ -24,8 +24,8 @@
|
|
|
##
|
|
|
|
|
|
# package options
|
|
|
-%ifndef with_branch
|
|
|
-%define with_branch release
|
|
|
+%ifndef with_devel
|
|
|
+%define with_devel no
|
|
|
%endif
|
|
|
|
|
|
# package versions
|
|
|
@@ -45,18 +45,18 @@ Packager: The OpenPKG Project
|
|
|
Distribution: OpenPKG [REL]
|
|
|
Group: Language
|
|
|
License: BSD
|
|
|
-%if "%{with_branch}" == "release"
|
|
|
-Version: %{V_release}
|
|
|
-%else
|
|
|
+%if "%{with_devel}" == "yes"
|
|
|
Version: %{V_devel}
|
|
|
+%else
|
|
|
+Version: %{V_release}
|
|
|
%endif
|
|
|
Release: 20020313
|
|
|
|
|
|
# list of sources
|
|
|
-%if "%{with_branch}" == "release"
|
|
|
-Source0: ftp://ftp.gnu.org/non-gnu/flex/flex-%{V_release}.tar.gz
|
|
|
-%else
|
|
|
+%if "%{with_devel}" == "yes"
|
|
|
Source0: http://astro.temple.edu/~john43/flex/flex-%{V_devel_maj}-developer-%{V_devel_min}.tar.gz
|
|
|
+%else
|
|
|
+Source0: ftp://ftp.gnu.org/non-gnu/flex/flex-%{V_release}.tar.gz
|
|
|
%endif
|
|
|
|
|
|
# build information
|
|
|
@@ -77,13 +77,13 @@ AutoReqProv: no
|
|
|
is run, it analyzes its input for occurrences of the regular expressions.
|
|
|
Whenever it finds one, it executes the corresponding C code.
|
|
|
|
|
|
- Options: with_branch=%{with_branch}
|
|
|
+ Options: with_devel=%{with_devel}
|
|
|
|
|
|
%prep
|
|
|
-%if "%{with_branch}" == "release"
|
|
|
- %setup -q -n flex-%{V_release_maj}
|
|
|
-%else
|
|
|
+%if "%{with_devel}" == "yes"
|
|
|
%setup -q -n flex-%{V_devel_maj}
|
|
|
+%else
|
|
|
+ %setup -q -n flex-%{V_release_maj}
|
|
|
%endif
|
|
|
|
|
|
%build
|