[perl-SOAP-Lite/el5/master] Filter LWP::Protocol and other bogus provides (#557485)
Paul Howarth
pghmcfc at fedoraproject.org
Fri Sep 24 13:46:44 UTC 2010
commit df4968db479bcdb91a4321e5e658ce4756b0dae0
Author: Paul Howarth <paul at city-fan.org>
Date: Fri Sep 24 14:41:36 2010 +0100
Filter LWP::Protocol and other bogus provides (#557485)
- Filter bogus provide of perl(LWP::Protocol) (#557485)
- Filter additional bogus provides:
- perl(My::PingPong)
- perl(URI::jabber)
- perl(URI::mq)
- perl(URI::tcp)
- Re-enable the test suite
- BR: perl(version) and perl(MIME::Parser), needed for test suite
- Don't ship patch backup files
.gitignore | 2 +-
filter-requires.sh | 3 --
perl-SOAP-Lite.spec | 58 ++++++++++++++++++++++++++++++--------------------
3 files changed, 36 insertions(+), 27 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index a5b098a..0e1e16d 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1 +1 @@
-SOAP-Lite-0.68.tar.gz
+/SOAP-Lite-0.710.07.tar.gz
diff --git a/perl-SOAP-Lite.spec b/perl-SOAP-Lite.spec
index ae9886c..6a57e8a 100644
--- a/perl-SOAP-Lite.spec
+++ b/perl-SOAP-Lite.spec
@@ -1,33 +1,38 @@
-Name: perl-SOAP-Lite
+Name: perl-SOAP-Lite
Version: 0.710.07
-Release: 2%{?dist}
+Release: 3%{?dist}
Summary: Client and server side SOAP implementation
License: GPL+ or Artistic
Group: Development/Libraries
-URL: http://search.cpan.org/dist/SOAP-Lite/
-Source0: http://search.cpan.org/CPAN/authors/id/B/BY/BYRNE/SOAP/SOAP-Lite-%{version}.tar.gz
+URL: http://search.cpan.org/dist/SOAP-Lite/
+Source0: http://search.cpan.org/CPAN/authors/id/B/BY/BYRNE/SOAP/SOAP-Lite-%{version}.tar.gz
# Submitted upstream: http://rt.cpan.org/Public/Bug/Display.html?id=20569
Patch0: SOAP-Lite-0.710.07-nil-value.patch
-BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
+BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
-Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
+Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
BuildRequires: perl-XML-Parser
-BuildRequires: perl(ExtUtils::MakeMaker)
-BuildArch: noarch
-
-#%define bogusreqs 'MQ\\|Jabber'
-#%define bogusreqs perl.Net..Jabber.
-#%global reqfilt sh -c '%{__perl_requires} | %{__grep} -Ev "%{bogusreqs}"'
-#%define __perl_requires %{reqfilt}
-%define bogusreqs 'perl(MQClient::MQSeries)\
+BuildRequires: perl(ExtUtils::MakeMaker)
+BuildRequires: perl(MIME::Parser)
+BuildRequires: perl(version)
+BuildArch: noarch
+
+# Filter out unwanted requires and provides (#557485)
+%global bogusreqs 'perl(MQClient::MQSeries)\
perl(MQSeries)\
perl(MQSeries::Message)\
perl(MQSeries::Queue)\
perl(MQSeries::QueueManager)\
perl(Net::Jabber)'
+%global bogusprovs 'perl(LWP::Protocol)\
+perl(My::PingPong)\
+perl(URI::jabber)\
+perl(URI::mq)\
+perl(URI::tcp)'
%global reqfilt sh -c "%{__perl_requires} | %{__grep} -Fv %{bogusreqs}"
+%global provfilt sh -c "%{__perl_provides} | %{__grep} -Fv %{bogusprovs}"
%define __perl_requires %{reqfilt}
-
+%define __perl_provides %{provfilt}
%description
SOAP::Lite is a collection of Perl modules which provides a simple and
@@ -36,7 +41,9 @@ client and server side.
%prep
%setup -q -n SOAP-Lite-%{version}
-%patch0 -p1 -b .nil-value
+
+# Add support for <nil> value, a XML-RPC extension (CPAN RT#20569)
+%patch0 -p1
%build
%{__perl} Makefile.PL --noprompt INSTALLDIRS=vendor
@@ -47,19 +54,13 @@ rm -rf $RPM_BUILD_ROOT
make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT
find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} ';'
find $RPM_BUILD_ROOT -type d -depth -exec rmdir {} 2>/dev/null ';'
-
-#Items not yet in Extras
-#find $RPM_BUILD_ROOT -type f -name JABBER* -exec rm -f {} ';'
-#find $RPM_BUILD_ROOT -type f -name MQ* -exec rm -f {} ';'
-
chmod -R u+w $RPM_BUILD_ROOT/*
%clean
rm -rf $RPM_BUILD_ROOT
%check
-# Currently disabled until upstream fixes
-#make test
+make test
%files
%defattr(-,root,root,-)
@@ -77,6 +78,17 @@ rm -rf $RPM_BUILD_ROOT
%{_mandir}/man1/*
%changelog
+* Fri Sep 24 2010 Paul Howarth <paul at city-fan.org> - 0.710.07-3
+- Filter bogus provide of perl(LWP::Protocol) (#557485)
+- Filter additional bogus provides:
+ - perl(My::PingPong)
+ - perl(URI::jabber)
+ - perl(URI::mq)
+ - perl(URI::tcp)
+- Re-enable the test suite
+- BR: perl(version) and perl(MIME::Parser), needed for test suite
+- Don't ship patch backup files
+
* Tue Sep 09 2008 Lubomir Rintel <lkundrak at v3.sk> - 0.710.07-2
- Re-add the nil patch
More information about the perl-devel
mailing list