|
|
|
@ -24,17 +24,17 @@
|
|
|
|
|
## |
|
|
|
|
|
|
|
|
|
# package options |
|
|
|
|
%ifndef with_devel |
|
|
|
|
%define with_devel no |
|
|
|
|
%ifndef with_unstable |
|
|
|
|
%define with_unstable no |
|
|
|
|
%endif |
|
|
|
|
|
|
|
|
|
# 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 |
|
|
|
|
Name: flex |
|
|
|
@ -45,18 +45,18 @@ Packager: The OpenPKG Project
|
|
|
|
|
Distribution: OpenPKG [REL] |
|
|
|
|
Group: Language |
|
|
|
|
License: BSD |
|
|
|
|
%if "%{with_devel}" == "yes" |
|
|
|
|
Version: %{V_devel} |
|
|
|
|
%if "%{with_unstable}" == "yes" |
|
|
|
|
Version: %{V_unstable} |
|
|
|
|
%else |
|
|
|
|
Version: %{V_release} |
|
|
|
|
Version: %{V_stable} |
|
|
|
|
%endif |
|
|
|
|
Release: 20020320 |
|
|
|
|
|
|
|
|
|
# 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 |
|
|
|
|
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 |
|
|
|
|
|
|
|
|
|
# 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_devel=%{with_devel} |
|
|
|
|
Options: with_unstable=%{with_unstable} |
|
|
|
|
|
|
|
|
|
%prep |
|
|
|
|
%if "%{with_devel}" == "yes" |
|
|
|
|
%setup -q -n flex-%{V_devel_maj} |
|
|
|
|
%if "%{with_unstable}" == "yes" |
|
|
|
|
%setup -q -n flex-%{V_unstable_maj} |
|
|
|
|
%else |
|
|
|
|
%setup -q -n flex-%{V_release_maj} |
|
|
|
|
%setup -q -n flex-%{V_stable_maj} |
|
|
|
|
%endif |
|
|
|
|
|
|
|
|
|
%build |
|
|
|
|