Browse Source

switch to %option(s)

master
parent
commit
5680a24fc3
  1. 25
      perl-dbi/perl-dbi.spec
  2. 28
      perl-xml/perl-xml.spec

25
perl-dbi/perl-dbi.spec

@ -34,15 +34,9 @@
%define V_dbd_oracle 1.12 %define V_dbd_oracle 1.12
# package options # package options
%ifndef with_dbd_mysql %option with_dbd_mysql no
%define with_dbd_mysql no %option with_dbd_pg no
%endif %option with_dbd_oracle no
%ifndef with_dbd_pg
%define with_dbd_pg no
%endif
%ifndef with_dbd_oracle
%define with_dbd_oracle no
%endif
# package information # package information
Name: perl-dbi Name: perl-dbi
@ -53,8 +47,8 @@ Packager: The OpenPKG Project
Distribution: OpenPKG [BASE] Distribution: OpenPKG [BASE]
Group: Language Group: Language
License: GPL/Artistic License: GPL/Artistic
Version: 20021229 Version: 20021230
Release: 20021229 Release: 20021230
# list of sources # list of sources
Source0: http://www.cpan.org/modules/by-module/DBI/DBI-%{V_dbi}.tar.gz Source0: http://www.cpan.org/modules/by-module/DBI/DBI-%{V_dbi}.tar.gz
@ -69,8 +63,8 @@ Source7: http://www.cpan.org/modules/by-module/DBD/DBD-Oracle-%{V_dbd_oracl
# build information # build information
Prefix: %{l_prefix} Prefix: %{l_prefix}
BuildRoot: %{l_buildroot} BuildRoot: %{l_buildroot}
BuildPreReq: OpenPKG, openpkg >= 20020206, perl >= 5.8.0, perl-net BuildPreReq: OpenPKG, openpkg >= 20021230, perl >= 5.8.0, perl-net
PreReq: OpenPKG, openpkg >= 20020206, perl >= 5.8.0, perl-net PreReq: OpenPKG, openpkg >= 20021230, perl >= 5.8.0, perl-net
%if "%{with_dbd_mysql}" == "yes" %if "%{with_dbd_mysql}" == "yes"
BuildPreReq: mysql BuildPreReq: mysql
PreReq: mysql PreReq: mysql
@ -93,10 +87,7 @@ AutoReqProv: no
- DBD::Pg (%{V_dbd_pg}) [%{with_dbd_pg}] - DBD::Pg (%{V_dbd_pg}) [%{with_dbd_pg}]
- DBD::Oracle (%{V_dbd_oracle}) [%{with_dbd_oracle}] - DBD::Oracle (%{V_dbd_oracle}) [%{with_dbd_oracle}]
Options: %options -p15
--define 'with_dbd_mysql %{with_dbd_mysql}'
--define 'with_dbd_pg %{with_dbd_pg}'
--define 'with_dbd_oracle %{with_dbd_oracle}'
%prep %prep
%setup0 -q -c %setup0 -q -c

28
perl-xml/perl-xml.spec

@ -53,21 +53,17 @@
%define V_xml_gdome 0.82 %define V_xml_gdome 0.82
# package options # package options
%ifndef with_libxml %option with_libxml %{l_test -p libxml}
%define with_libxml %{l_test -p libxml} %option with_libxslt %{l_test -p libxslt}
%endif %option with_libgdome %{l_test -p libgdome}
%ifndef with_libxslt
%define with_libxslt %{l_test -p libxslt}
%endif
%ifndef with_libgdome
%define with_libgdome %{l_test -p libgdome}
%endif
# package inter-dependencies # package inter-dependencies
%if "%{with_libxslt}" == "yes" && "%{with_libxml}" == "no" %if "%{with_libxslt}" == "yes"
%undefine with_libxml
%define with_libxml yes %define with_libxml yes
%endif %endif
%if "%{with_libgdome}" == "yes" && "%{with_libxml}" == "no" %if "%{with_libgdome}" == "yes"
%undefine with_libxml
%define with_libxml yes %define with_libxml yes
%endif %endif
@ -80,8 +76,8 @@ Packager: The OpenPKG Project
Distribution: OpenPKG [BASE] Distribution: OpenPKG [BASE]
Group: Language Group: Language
License: GPL/Artistic License: GPL/Artistic
Version: 20021215 Version: 20021230
Release: 20021215 Release: 20021230
# list of sources # list of sources
Source0: http://www.cpan.org/modules/by-module/XML/XML-Parser-%{V_xml_parser}.tar.gz Source0: http://www.cpan.org/modules/by-module/XML/XML-Parser-%{V_xml_parser}.tar.gz
@ -115,8 +111,8 @@ Source26: http://www.cpan.org/modules/by-module/XML/XML-GDOME-%{V_xml_gdome}
# build information # build information
Prefix: %{l_prefix} Prefix: %{l_prefix}
BuildRoot: %{l_buildroot} BuildRoot: %{l_buildroot}
BuildPreReq: OpenPKG, openpkg >= 20021002, perl >= 5.8.0, expat BuildPreReq: OpenPKG, openpkg >= 20021230, perl >= 5.8.0, expat
PreReq: OpenPKG, openpkg >= 20021002, perl >= 5.8.0 PreReq: OpenPKG, openpkg >= 20021230, perl >= 5.8.0
%if "%{with_libxml}" == "yes" %if "%{with_libxml}" == "yes"
BuildPreReq: libxml BuildPreReq: libxml
%endif %endif
@ -165,7 +161,7 @@ AutoReqProv: no
- SOAP::Lite::SmartProxy (%{V_soap_lite_smartproxy}) - SOAP::Lite::SmartProxy (%{V_soap_lite_smartproxy})
- SOAP::payload (%{V_soap_payload}) - SOAP::payload (%{V_soap_payload})
Options: none %options -p13
%prep %prep
%setup0 -q -c %setup0 -q -c

Loading…
Cancel
Save