[perl-XML-Atom] Specify all dependencies and sub-package XML::Atom::Server
Petr Pisar
ppisar at fedoraproject.org
Tue Dec 2 15:37:41 UTC 2014
commit 35d5e10ab0f68f8e9debe613a3cd27168949842a
Author: Petr Písař <ppisar at redhat.com>
Date: Tue Dec 2 16:33:54 2014 +0100
Specify all dependencies and sub-package XML::Atom::Server
perl-XML-Atom.spec | 69 ++++++++++++++++++++++++++++++++++++++++++++-------
1 files changed, 59 insertions(+), 10 deletions(-)
---
diff --git a/perl-XML-Atom.spec b/perl-XML-Atom.spec
index 14136c3..31f99cd 100644
--- a/perl-XML-Atom.spec
+++ b/perl-XML-Atom.spec
@@ -1,6 +1,6 @@
Name: perl-XML-Atom
Version: 0.41
-Release: 9%{?dist}
+Release: 10%{?dist}
Summary: Atom feed and API implementation
License: GPL+ or Artistic
Group: Development/Libraries
@@ -9,33 +9,71 @@ Source0: http://www.cpan.org/authors/id/M/MI/MIYAGAWA/XML-Atom-%{version}
# enable unicode tests (we have LibXML)
Patch0: enable-unicode-tests.patch
BuildArch: noarch
-BuildRequires: perl(Class::ISA)
+BuildRequires: perl
+BuildRequires: perl(inc::Module::Install)
+BuildRequires: perl(Module::Install::Include)
+BuildRequires: perl(Module::Install::Metadata)
+BuildRequires: perl(Module::Install::Repository)
+BuildRequires: perl(Module::Install::WriteAll)
+# Run-time:
+# Apache::Constants not used at tests
+BuildRequires: perl(base)
+# CGI not used at tests
BuildRequires: perl(Class::Data::Inheritable)
+BuildRequires: perl(constant)
BuildRequires: perl(DateTime)
-BuildRequires: perl(DateTime::TimeZone)
BuildRequires: perl(Digest::SHA1)
-BuildRequires: perl(ExtUtils::MakeMaker)
+BuildRequires: perl(Encode)
+BuildRequires: perl(Exporter)
+# HTML::Parser not used at tests
BuildRequires: perl(LWP::UserAgent)
+BuildRequires: perl(MIME::Base64)
+BuildRequires: perl(Scalar::Util)
+BuildRequires: perl(strict)
+BuildRequires: perl(vars)
+BuildRequires: perl(XML::LibXML) >= 1.69
+# XML::XPath not needed if XML::LibXML is available
+# Optional run-time:
+# DateTime::Format::Atom not used
+# Tests:
+BuildRequires: perl(encoding)
+BuildRequires: perl(FindBin)
BuildRequires: perl(Test::More)
BuildRequires: perl(URI)
-BuildRequires: perl(XML::LibXML) >= 1.69
-BuildRequires: perl(XML::XPath)
+BuildRequires: perl(warnings)
+BuildRequires: perl(XML::Parser)
+# Optional tests:
+# DateTime::Format::Atom not yet packaged
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
# not automatically detected
-Requires: perl(DateTime::TimeZone)
-Requires: perl(URI)
+Requires: perl(HTML::Parser)
Requires: perl(XML::LibXML) >= 1.69
-Requires: perl(XML::XPath)
%{?perl_default_filter}
%description
-Atom is a syndication, API, and archiving format for weblogs and other
+Atom is a syndication, API, and archiving format for web blogs and other
data. XML::Atom implements the feed format as well as a client for the API.
+%package Server
+Summary: Server for the Atom API
+Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
+Requires: perl(Apache::Constants)
+Requires: perl(CGI)
+
+%description Server
+XML::Atom::Server Perl module provides a base class for Atom API servers. It
+handles all core server processing, both the SOAP and REST formats of the
+protocol, and WSSE authentication. It can also run as either a mod_perl
+handler or as part of a CGI program.
+
+
%prep
%setup -q -n XML-Atom-%{version}
%patch0 -p1
+# Remove bundled modules
+rm -r ./inc
+sed -i -e '/^inc\//d' MANIFEST
%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
@@ -54,10 +92,21 @@ make test
%files
%doc Changes README
+%exclude %{perl_vendorlib}/XML/Atom/Server.pm
%{perl_vendorlib}/*
%{_mandir}/man3/*
+%exclude %{_mandir}/man3/XML::Atom::Server.3*
+
+%files Server
+%doc Changes README
+%{perl_vendorlib}/XML/Atom/Server.pm
+%{_mandir}/man3/XML::Atom::Server.3*
%changelog
+* Tue Dec 02 2014 Petr Pisar <ppisar at redhat.com> - 0.41-10
+- Specify all dependencies (bug #1169791)
+- Sub-package XML::Atom::Server because it requires Apache
+
* Fri Aug 29 2014 Jitka Plesnikova <jplesnik at redhat.com> - 0.41-9
- Perl 5.20 rebuild
More information about the scm-commits
mailing list