# # Conditional build: %bcond_without tests # do not perform "make test" # %include /usr/lib/rpm/macros.perl %define pdir XML %define pnam RSS Summary: XML::RSS - module for RDF Site Summary (RSS) files managment Summary(pl): XML::RSS - moduł do zarządzania plikami RDF Site Summary (RSS) Name: perl-XML-RSS Version: 1.05 Release: 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 # Source0-md5: 3eaa65ec6316edec3194b6a2f384a65c %if %{with tests} BuildRequires: perl-Test-Manifest >= 0.9 BuildRequires: perl-XML-Parser >= 2.23 %endif BuildRequires: perl-devel >= 1:5.8.0 BuildRequires: rpm-perlprov >= 4.1-13 BuildArch: noarch BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) %description This module was created to help those who need to manage RDF Site Summary (RSS) files. It makes quick work of creating, updating, and saving RSS files. %description -l pl Ten moduł został stworzony, aby pomóc przy zarządzaniu plikami RDF Site Summary (RSS). Pozwala szybko tworzyć, uaktualniać i zapisywać pliki RSS. %prep %setup -q -n %{pdir}-%{pnam}-%{version} %build %{__perl} Makefile.PL \ INSTALLDIRS=vendor %{__make} %{?with_tests:%{__make} test} %install rm -rf $RPM_BUILD_ROOT install -d $RPM_BUILD_ROOT%{perl_vendorlib}/XML/RSS %{__make} install \ DESTDIR=$RPM_BUILD_ROOT %clean rm -rf $RPM_BUILD_ROOT %files %defattr(644,root,root,755) %doc TODO README Changes %{perl_vendorlib}/XML/RSS.pm %dir %{perl_vendorlib}/XML/RSS %{_mandir}/man3/*