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