3 %bcond_without tests # do not perform "make test"
5 %include /usr/lib/rpm/macros.perl
7 %define pnam Ex-PodViewer
8 Summary: A Gtk2 widget for displaying Plain old Documentation (POD)
9 Summary(pl.UTF-8): Widget Gtk2 do wyświetlania plików POD (Plain old Documentation)
10 Name: perl-%{pdir}-%{pnam}
14 License: GPL v1+ or Artistic
15 Group: Development/Languages/Perl
16 Source0: http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz
17 # Source0-md5: 52382ca50ccbb47080275a9ac1590a71
18 BuildRequires: perl-devel >= 1:5.8.0
19 BuildRequires: rpm-perlprov >= 4.1-13
20 Requires: perl-Gtk2 >= 1.101-2
22 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
25 A Gtk2 widget for displaying Plain old Documentation (POD).
27 %description -l pl.UTF-8
28 Widget Gtk2 do wyświetlania plików POD (Plain old Documentation).
31 %setup -q -n %{pdir}-%{pnam}-%{version}
34 %{__perl} Makefile.PL \
39 %{?with_tests:%{__make} test}
42 rm -rf $RPM_BUILD_ROOT
44 %{__make} pure_install \
45 DESTDIR=$RPM_BUILD_ROOT
48 rm -rf $RPM_BUILD_ROOT
51 %defattr(644,root,root,755)
53 %attr(755,root,root) %{_bindir}/podviewer
54 %{perl_vendorlib}/Gtk2/Ex/PodViewer.pm
55 %dir %{perl_vendorlib}/Gtk2/Ex/PodViewer
56 %{perl_vendorlib}/Gtk2/Ex/PodViewer/Parser.pm