3 %bcond_without autodeps # don't BR packages needed only for resolving deps
4 %bcond_without tests # do not perform "make test"
6 %include /usr/lib/rpm/macros.perl
9 Summary: XML::Atom - Atom feed and API implementation
10 Summary(pl): 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 URL: http://search.cpan.org/dist/XML-Atom/
19 BuildRequires: perl-devel >= 1:5.8.0
20 BuildRequires: rpm-perlprov >= 4.1-13
21 %if %{with autodeps} || %{with tests}
22 BuildRequires: perl-DateTime
25 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
28 Atom is a syndication, API, and archiving format for weblogs and other
29 data. XML::Atom implements the feed format as well as a client for the
33 Atom to API i format archiwów dla blogów i innych danych. XML::Atom
34 implementuje ten format, a tak¿e klienta dla tego API.
37 %setup -q -n %{pdir}-%{pnam}-%{version}
38 # yes i know, its crude, but works, and its simple
39 %{__perl} -pi -e 's/^auto_install/#auto_install/' Makefile.PL;
42 %{__perl} Makefile.PL \
47 %{?with_tests:%{__make} test}
50 rm -rf $RPM_BUILD_ROOT
52 %{__make} pure_install \
53 DESTDIR=$RPM_BUILD_ROOT
56 rm -rf $RPM_BUILD_ROOT
59 %defattr(644,root,root,755)
61 %{perl_vendorlib}/XML/Atom.pm
62 %dir %{perl_vendorlib}/XML/Atom
63 %{perl_vendorlib}/XML/Atom/*.pm