3 %bcond_without autodeps # don't BR packages needed only for resolving deps
4 %bcond_without tests # do not perform "make test"
8 %include /usr/lib/rpm/macros.perl
9 Summary: XML::Atom - Atom feed and API implementation
10 Summary(pl.UTF-8): XML::Atom - implementacja API Atom
15 License: GPL v1+ or Artistic
16 Group: Development/Languages/Perl
17 Source0: http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz
18 # Source0-md5: 99eeebbf90c95cc1a24426a0b9f2d6a5
19 URL: http://search.cpan.org/dist/XML-Atom/
20 BuildRequires: perl-Class-Data-Inheritable
21 BuildRequires: perl-URI
22 BuildRequires: perl-devel >= 1:5.8.0
23 BuildRequires: rpm-perlprov >= 4.1-13
24 %if %{with autodeps} && %{with tests}
25 BuildRequires: perl-DateTime
27 Requires: perl-XML-XPath
29 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
32 Atom is a syndication, API, and archiving format for weblogs and other
33 data. XML::Atom implements the feed format as well as a client for the
36 %description -l pl.UTF-8
37 Atom to API i format archiwów dla blogów i innych danych. XML::Atom
38 implementuje ten format, a także klienta dla tego API.
41 %setup -q -n %{pdir}-%{pnam}-%{version}
42 # yes i know, its crude, but works, and its simple
43 %{__perl} -pi -e 's/^auto_install/#auto_install/' Makefile.PL;
46 %{__perl} Makefile.PL \
51 %{?with_tests:%{__make} test}
54 rm -rf $RPM_BUILD_ROOT
56 %{__make} pure_install \
57 DESTDIR=$RPM_BUILD_ROOT
60 rm -rf $RPM_BUILD_ROOT
63 %defattr(644,root,root,755)
65 %{perl_vendorlib}/XML/Atom.pm
66 %dir %{perl_vendorlib}/XML/Atom
67 %{perl_vendorlib}/XML/Atom/*.pm