OpenPKG CVS Repository
http://cvs.openpkg.org/
____________________________________________________________________________
Server: cvs.openpkg.org Name: Ralf S. Engelschall
Root: /e/openpkg/cvs Email: [EMAIL PROTECTED]
Module: openpkg-web, openpkg-src Date: 01-Oct-2002 21:35:52
Branch: HEAD Handle: 2002100120355001
Modified files:
openpkg-src/perl-xml perl-xml.spec
openpkg-web news.txt
Log:
make libxml/libxslt optional to reduce dependencies
Summary:
Revision Changes Path
1.17 +21 -2 openpkg-src/perl-xml/perl-xml.spec
1.1668 +1 -0 openpkg-web/news.txt
____________________________________________________________________________
Index: openpkg-src/perl-xml/perl-xml.spec
============================================================
$ cvs diff -u -r1.16 -r1.17 perl-xml.spec
--- openpkg-src/perl-xml/perl-xml.spec 28 Sep 2002 10:19:55 -0000 1.16
+++ openpkg-src/perl-xml/perl-xml.spec 1 Oct 2002 19:35:51 -0000 1.17
@@ -43,6 +43,17 @@
%define V_soap_lite_smartproxy 0.11
%define V_soap_payload 1.02
+# package options
+%ifndef with_libxml
+%define with_libxml no
+%endif
+%ifndef with_libxslt
+%define with_libxslt no
+%endif
+%if "%{with_libxslt}" == "yes" && "%{with_libxml}" == "no"
+%define with_libxml yes
+%endif
+
# package information
Name: perl-xml
Summary: Perl Modules for use with XML
@@ -52,8 +63,8 @@
Distribution: OpenPKG [BASE]
Group: Language
License: GPL/Artistic
-Version: 20020928
-Release: 20020928
+Version: 20021001
+Release: 20021001
# list of sources
Source0:
http://www.cpan.org/modules/by-module/XML/XML-Parser-%{V_xml_parser}.tar.gz
@@ -86,8 +97,12 @@
%description
Perl modules for use with XML:
- XML::Parser (%{V_xml_parser})
+%if "%{with_libxml}" == "yes"
- XML::LibXML (%{V_xml_libxml})
+%endif
+%if "%{with_libxslt}" == "yes"
- XML::LibXSLT (%{V_xml_libxslt})
+%endif
- XML::Simple (%{V_xml_simple})
- XML::NamespaceSupport (%{V_xml_namespacesupport})
- XML::SAX (%{V_xml_sax})
@@ -169,6 +184,7 @@
cd ..
done
+%if "%{with_libxml}" == "yes"
# build XML::LibXML
( cd XML-LibXML-%{V_xml_libxml}
$perl Makefile.PL \
@@ -177,7 +193,9 @@
%{l_make} %{l_mflags} PERL=$perl FULLPERL=$perl all
%{l_make} %{l_mflags} PERL=$perl FULLPERL=$perl install
)
+%endif
+%if "%{with_libxslt}" == "yes"
# build XML::LibXSLT
( cd XML-LibXSLT-%{V_xml_libxslt}
$perl Makefile.PL \
@@ -186,6 +204,7 @@
%{l_make} %{l_mflags} PERL=$perl FULLPERL=$perl all
%{l_make} %{l_mflags} PERL=$perl FULLPERL=$perl install
)
+%endif
# clean up
find $RPM_BUILD_ROOT%{l_prefix} -name perllocal.pod -print | xargs rm -f
Index: openpkg-web/news.txt
============================================================
$ cvs diff -u -r1.1667 -r1.1668 news.txt
--- openpkg-web/news.txt 1 Oct 2002 18:59:34 -0000 1.1667
+++ openpkg-web/news.txt 1 Oct 2002 19:35:50 -0000 1.1668
@@ -1,3 +1,4 @@
+01-Oct-2002: Upgraded package: P<perl-xml-20021001-20021001>
01-Oct-2002: Upgraded package: P<vim-6.1.206-20021001>
01-Oct-2002: Upgraded package: P<perl-util-20021001-20021001>
01-Oct-2002: Upgraded package: P<logsurfer-1.5b-20021001>
______________________________________________________________________
The OpenPKG Project www.openpkg.org
CVS Repository Commit List [EMAIL PROTECTED]