Browse Source

switch to %option(s)

master
parent
commit
4c2c416b1e
  1. 13
      al/al.spec
  2. 13
      bison/bison.spec
  3. 20
      cvs/cvs.spec
  4. 27
      emacs/emacs.spec
  5. 13
      flex/flex.spec
  6. 13
      fsl/fsl.spec

13
al/al.spec

@ -23,9 +23,7 @@
## ##
# package options # package options
%ifndef with_ex %option with_ex no
%define with_ex no
%endif
# package information # package information
Name: al Name: al
@ -37,7 +35,7 @@ Distribution: OpenPKG [PLUS]
Group: System Group: System
License: MIT/X11-style License: MIT/X11-style
Version: 0.9.1 Version: 0.9.1
Release: 20021216 Release: 20021230
# list of sources # list of sources
Source0: ftp://ftp.ossp.org/pkg/lib/al/al-%{version}.tar.gz Source0: ftp://ftp.ossp.org/pkg/lib/al/al-%{version}.tar.gz
@ -45,8 +43,8 @@ Source0: ftp://ftp.ossp.org/pkg/lib/al/al-%{version}.tar.gz
# build information # build information
Prefix: %{l_prefix} Prefix: %{l_prefix}
BuildRoot: %{l_buildroot} BuildRoot: %{l_buildroot}
BuildPreReq: OpenPKG, openpkg >= 20020206 BuildPreReq: OpenPKG, openpkg >= 20021230
PreReq: OpenPKG, openpkg >= 20020206 PreReq: OpenPKG, openpkg >= 20021230
%if "%{with_ex}" == "yes" %if "%{with_ex}" == "yes"
BuildPreReq: ex BuildPreReq: ex
PreReq: ex PreReq: ex
@ -63,8 +61,7 @@ AutoReqProv: no
has convenient chunk traversal methods and optional OSSP ex based has convenient chunk traversal methods and optional OSSP ex based
exception handling. exception handling.
Options: %options
--define 'with_ex %{with_ex}'
%prep %prep
%setup -q %setup -q

13
bison/bison.spec

@ -24,9 +24,7 @@
## ##
# package options # package options
%ifndef with_beta %option with_beta yes
%define with_beta yes
%endif
# package versions # package versions
%define V_release 1.35 %define V_release 1.35
@ -42,7 +40,7 @@ Distribution: OpenPKG [CORE]
Group: Language Group: Language
License: GPL License: GPL
Version: %{V_release} Version: %{V_release}
Release: 20021015 Release: 20021230
# list of sources # list of sources
Source0: ftp://ftp.gnu.org/gnu/bison/bison-%{V_release}.tar.gz Source0: ftp://ftp.gnu.org/gnu/bison/bison-%{V_release}.tar.gz
@ -52,8 +50,8 @@ Patch0: bison.patch
# build information # build information
Prefix: %{l_prefix} Prefix: %{l_prefix}
BuildRoot: %{l_buildroot} BuildRoot: %{l_buildroot}
BuildPreReq: OpenPKG, openpkg >= 20020206, make, m4 BuildPreReq: OpenPKG, openpkg >= 20021230, make, m4
PreReq: OpenPKG, openpkg >= 20020206, m4 PreReq: OpenPKG, openpkg >= 20021230, m4
AutoReq: no AutoReq: no
AutoReqProv: no AutoReqProv: no
@ -67,8 +65,7 @@ AutoReqProv: no
with no change. Anyone familiar with yacc should be able to use bison with with no change. Anyone familiar with yacc should be able to use bison with
little trouble. little trouble.
Options: %options
--define 'with_beta %{with_beta}'
%prep %prep
%setup0 -q -c -n bison-%{V_release} %setup0 -q -c -n bison-%{V_release}

20
cvs/cvs.spec

@ -28,12 +28,8 @@
%define V_cvslock 0.2 %define V_cvslock 0.2
# optional support for applying the RSE patches # optional support for applying the RSE patches
%ifndef with_rse_patches %option with_rse_patches no
%define with_rse_patches no %option with_rse_patch_cvsuser_caller cvs
%endif
%ifndef with_rse_patch_cvsuser_caller
%define with_rse_patch_cvsuser_caller cvs
%endif
# package information # package information
Name: cvs Name: cvs
@ -45,7 +41,7 @@ Distribution: OpenPKG [BASE]
Group: SCM Group: SCM
License: GPL License: GPL
Version: %{V_cvs} Version: %{V_cvs}
Release: 20021229 Release: 20021230
# list of sources # list of sources
Source0: http://www.cvshome.org/files/19/10/cvs-%{V_cvs}.tar.gz Source0: http://www.cvshome.org/files/19/10/cvs-%{V_cvs}.tar.gz
@ -58,8 +54,8 @@ Source5: rc.cvs
# build information # build information
Prefix: %{l_prefix} Prefix: %{l_prefix}
BuildRoot: %{l_buildroot} BuildRoot: %{l_buildroot}
BuildPreReq: OpenPKG, openpkg >= 20020714, perl, patch BuildPreReq: OpenPKG, openpkg >= 20021230, perl, patch
PreReq: OpenPKG, openpkg >= 20020714, perl, patch PreReq: OpenPKG, openpkg >= 20021230, perl, patch
AutoReq: no AutoReq: no
AutoReqProv: no AutoReqProv: no
@ -81,16 +77,14 @@ AutoReqProv: no
and cvslock (an administration tool for manually locking a CVS and cvslock (an administration tool for manually locking a CVS
repository area). repository area).
Options:
--define 'with_rse_patches %{with_rse_patches}'
--define 'with_rse_patch_cvsuser_caller %{with_rse_patch_cvsuser_caller}'
%if "%{with_rse_patches}" == "yes" %if "%{with_rse_patches}" == "yes"
This version of CVS has the large set of patches applied from This version of CVS has the large set of patches applied from
Ralf S. Engelschall <rse@engelschall.com> (-DRSE_PATCHES). This Ralf S. Engelschall <rse@engelschall.com> (-DRSE_PATCHES). This
means that (still undocumented) extra functionality is available. means that (still undocumented) extra functionality is available.
%endif %endif
%options -p30
%prep %prep
%setup0 -q -c %setup0 -q -c
%setup1 -q -T -D -a 1 %setup1 -q -T -D -a 1

27
emacs/emacs.spec

@ -23,12 +23,15 @@
## SUCH DAMAGE. ## SUCH DAMAGE.
## ##
# the additionally used features # package options
# (jpeg and png options depend on with_x11) %option with_x11 no
%ifndef with_x11 %option with_jpeg no
%define with_x11 no %option with_png no
%define with_jpeg no
%define with_png no # package option dependencies
%if "%{with_jpeg}" == "yes" || "%{with_png}" == "yes"
%undefine with_x11
%define with_x11 yes
%endif %endif
# package information # package information
@ -41,7 +44,7 @@ Distribution: OpenPKG [BASE]
Group: Editor Group: Editor
License: GPL License: GPL
Version: 21.2 Version: 21.2
Release: 20020819 Release: 20021230
# list of sources # list of sources
Source0: ftp://ftp.gnu.org/gnu/emacs/emacs-%{version}.tar.gz Source0: ftp://ftp.gnu.org/gnu/emacs/emacs-%{version}.tar.gz
@ -49,8 +52,8 @@ Source0: ftp://ftp.gnu.org/gnu/emacs/emacs-%{version}.tar.gz
# build information # build information
Prefix: %{l_prefix} Prefix: %{l_prefix}
BuildRoot: %{l_buildroot} BuildRoot: %{l_buildroot}
BuildPreReq: OpenPKG, openpkg >= 20020206, make, texinfo BuildPreReq: OpenPKG, openpkg >= 20021230, make, texinfo
PreReq: OpenPKG, openpkg >= 20020206 PreReq: OpenPKG, openpkg >= 20021230
%if "%{with_x11}" == "yes" %if "%{with_x11}" == "yes"
BuildPreReq: X11 BuildPreReq: X11
PreReq: X11 PreReq: X11
@ -67,11 +70,7 @@ AutoReqProv: no
%description %description
The popular GNU EMACS text editor. The popular GNU EMACS text editor.
Options: %options -p10
--define 'with_fsl %{with_fsl}'
--define 'with_x11 %{with_x11}'
--define 'with_jpeg %{with_jpeg}'
--define 'with_png %{with_png}'
%prep %prep
%setup -q %setup -q

13
flex/flex.spec

@ -24,9 +24,7 @@
## ##
# package options # package options
%ifndef with_beta %option with_beta yes
%define with_beta yes
%endif
# package versions # package versions
%define V_release 2.5.4a %define V_release 2.5.4a
@ -43,7 +41,7 @@ Distribution: OpenPKG [CORE]
Group: Language Group: Language
License: BSD License: BSD
Version: %{V_release} Version: %{V_release}
Release: 20021203 Release: 20021230
# list of sources # list of sources
Source0: ftp://ftp.gnu.org/non-gnu/flex/flex-%{V_release}.tar.gz Source0: ftp://ftp.gnu.org/non-gnu/flex/flex-%{V_release}.tar.gz
@ -52,8 +50,8 @@ Source1: ftp://ftp.uncg.edu/people/wlestes/flex-%{V_beta}.tar.gz
# build information # build information
Prefix: %{l_prefix} Prefix: %{l_prefix}
BuildRoot: %{l_buildroot} BuildRoot: %{l_buildroot}
BuildPreReq: OpenPKG, openpkg >= 20020206, bison, make BuildPreReq: OpenPKG, openpkg >= 20021230, bison, make
PreReq: OpenPKG, openpkg >= 20020206 PreReq: OpenPKG, openpkg >= 20021230
AutoReq: no AutoReq: no
AutoReqProv: no AutoReqProv: no
@ -67,8 +65,7 @@ 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: %options
--define 'with_beta %{with_beta}'
%prep %prep
%setup0 -q -c -n flex-%{version} %setup0 -q -c -n flex-%{version}

13
fsl/fsl.spec

@ -24,9 +24,7 @@
## ##
# package options # package options
%ifndef with_fsl_debug %option with_fsl_debug no
%define with_fsl_debug no
%endif
# package information # package information
Name: fsl Name: fsl
@ -38,7 +36,7 @@ Distribution: OpenPKG [PLUS]
Group: System Group: System
License: MIT-style License: MIT-style
Version: 1.0.6 Version: 1.0.6
Release: 20021109 Release: 20021230
# list of sources # list of sources
Source0: ftp://ftp.ossp.org/pkg/lib/fsl/fsl-%{version}.tar.gz Source0: ftp://ftp.ossp.org/pkg/lib/fsl/fsl-%{version}.tar.gz
@ -47,8 +45,8 @@ Source1: fsl.default
# build information # build information
Prefix: %{l_prefix} Prefix: %{l_prefix}
BuildRoot: %{l_buildroot} BuildRoot: %{l_buildroot}
BuildPreReq: OpenPKG, openpkg >= 20020206, gcc BuildPreReq: OpenPKG, openpkg >= 20021230, gcc
PreReq: OpenPKG, openpkg >= 20020206 PreReq: OpenPKG, openpkg >= 20021230
AutoReq: no AutoReq: no
AutoReqProv: no AutoReqProv: no
@ -62,8 +60,7 @@ AutoReqProv: no
third-party programs without the requirement to change the source code third-party programs without the requirement to change the source code
of the program. of the program.
Options: %options
--define 'with_fsl_debug %{with_fsl_debug}'
%prep %prep
%setup -q %setup -q

Loading…
Cancel
Save