# # Conditional build: %bcond_without tests # do not perform "make test" # %define pdir XML %define pnam Writer Summary: XML::Writer perl module Summary(pl.UTF-8): Moduł perla XML::Writer Name: perl-XML-Writer Version: 0.615 Release: 1 # same as perl License: GPL v1+ or Artistic Group: Development/Languages/Perl Source0: http://www.cpan.org/modules/by-module/XML/%{pdir}-%{pnam}-%{version}.tar.gz # Source0-md5: c905db1c397b52455a82a45d2296fdc2 URL: http://search.cpan.org/dist/XML-Writer/ BuildRequires: perl-devel >= 1:5.8.0 BuildRequires: rpm-perlprov >= 4.1-13 %if %{with tests} BuildRequires: perl-Test-Simple >= 0.047 %endif BuildArch: noarch BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) %description XML::Writer - module for writing XML documents. %description -l pl.UTF-8 XML::Writer - moduł do pisania dokumentów XML. %prep %setup -q -n %{pdir}-%{pnam}-%{version} %build %{__perl} Makefile.PL \ INSTALLDIRS=vendor %{__make} %{?with_tests:%{__make} test} %install rm -rf $RPM_BUILD_ROOT %{__make} install \ DESTDIR=$RPM_BUILD_ROOT %clean rm -rf $RPM_BUILD_ROOT %files %defattr(644,root,root,755) %doc Changes README %{perl_vendorlib}/XML/Writer.pm %{_mandir}/man3/XML::Writer.3pm*