From: Elan Ruusamäe Date: Mon, 25 Jul 2016 09:04:04 +0000 (+0300) Subject: requires XML::LibXML or XML::XPath X-Git-Tag: auto/th/perl-XML-Atom-0.41-2 X-Git-Url: https://git.pld-linux.org/?a=commitdiff_plain;ds=sidebyside;h=c9dcbade1024c58073495920b3bc2cd6ae4a3003;p=packages%2Fperl-XML-Atom.git requires XML::LibXML or XML::XPath so go with XML::XPath: Couldn't require XML::Feed::Format::Atom : Can't locate XML/XPath.pm in @INC (you may need to install the XML::XPath module) (@INC contains: . /usr/local/lib/perl5/5.22.0/x86_64-pld-linux-thread-multi /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl/5.22.0/x86_64-pld-linux-thread-multi /usr/share/perl5/vendor_perl /usr/lib64/perl5/5.22.0/x86_64-pld-linux-thread-multi /usr/share/perl5/5.22.0) at /usr/share/perl5/vendor_perl/XML/Atom.pm line 14. BEGIN failed--compilation aborted at /usr/share/perl5/vendor_perl/XML/Atom.pm line 36. --- diff --git a/perl-XML-Atom.spec b/perl-XML-Atom.spec index 9a34f7e..8abf507 100644 --- a/perl-XML-Atom.spec +++ b/perl-XML-Atom.spec @@ -2,28 +2,29 @@ # Conditional build: %bcond_without autodeps # don't BR packages needed only for resolving deps %bcond_without tests # do not perform "make test" -# -%include /usr/lib/rpm/macros.perl + %define pdir XML %define pnam Atom +%include /usr/lib/rpm/macros.perl Summary: XML::Atom - Atom feed and API implementation Summary(pl.UTF-8): XML::Atom - implementacja API Atom Name: perl-XML-Atom Version: 0.41 -Release: 1 +Release: 2 # same as perl License: GPL v1+ or Artistic Group: Development/Languages/Perl Source0: http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz # Source0-md5: 99eeebbf90c95cc1a24426a0b9f2d6a5 URL: http://search.cpan.org/dist/XML-Atom/ -BuildRequires: perl-devel >= 1:5.8.0 -BuildRequires: rpm-perlprov >= 4.1-13 BuildRequires: perl-Class-Data-Inheritable BuildRequires: perl-URI +BuildRequires: perl-devel >= 1:5.8.0 +BuildRequires: rpm-perlprov >= 4.1-13 %if %{with autodeps} && %{with tests} BuildRequires: perl-DateTime %endif +Requires: perl-XML-XPath BuildArch: noarch BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)