# # 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 Summary: XML::Atom - Atom feed and API implementation Summary(pl): XML::Atom - implementacja API Atom Name: perl-XML-Atom Version: 0.22 Release: 0.1 # 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 URL: http://search.cpan.org/dist/XML-Atom/ BuildRequires: perl-devel >= 1:5.8.0 BuildRequires: rpm-perlprov >= 4.1-13 %if %{with autodeps} && %{with tests} BuildRequires: perl-DateTime %endif BuildArch: noarch BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) %description Atom is a syndication, API, and archiving format for weblogs and other data. XML::Atom implements the feed format as well as a client for the API. %description -l pl Atom to API i format archiwów dla blogów i innych danych. XML::Atom implementuje ten format, a także klienta dla tego API. %prep %setup -q -n %{pdir}-%{pnam}-%{version} # yes i know, its crude, but works, and its simple %{__perl} -pi -e 's/^auto_install/#auto_install/' Makefile.PL; %build %{__perl} Makefile.PL \ INSTALLDIRS=vendor %{__make} %{?with_tests:%{__make} test} %install rm -rf $RPM_BUILD_ROOT %{__make} pure_install \ DESTDIR=$RPM_BUILD_ROOT %clean rm -rf $RPM_BUILD_ROOT %files %defattr(644,root,root,755) %doc Changes README %{perl_vendorlib}/XML/Atom.pm %dir %{perl_vendorlib}/XML/Atom %{perl_vendorlib}/XML/Atom/*.pm %{_mandir}/man3/*