# # Conditional build: %bcond_without tests # do not perform "make test" # %include /usr/lib/rpm/macros.perl Summary: PodToHTML perl module Summary(pl): Moduł perla PodToHTML Name: perl-PodToHTML Version: 0.04 Release: 9 # same as perl License: GPL v1+ or Artistic Group: Development/Languages/Perl Source0: http://www.cpan.org/modules/by-module/Pod/PodToHTML-%{version}.tar.gz # Source0-md5: b08e3351b171b719f40031a188fe5c26 BuildRequires: rpm-perlprov >= 4.1-13 BuildRequires: perl-devel >= 5.6 BuildRequires: perl-HTML-Tree BuildRequires: perl-HTML-Parser BuildRequires: perl-HTML-Stream BuildRequires: perl-URI BuildArch: noarch BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) %description PodToHTML - converts POD to HTML or PostScript. %description -l pl PodToHTML - konwertuje pliki POD do formatu HTML lub PostScript. %prep %setup -q -n PodToHTML-%{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 README %attr(755,root,root) %{_bindir}/podtohtml %{perl_vendorlib}/Pod/*.pm %{_mandir}/man[13]/*