]> git.pld-linux.org Git - packages/perl-Text-PDF.git/blobdiff - perl-Text-PDF.spec
- use the __perl macro
[packages/perl-Text-PDF.git] / perl-Text-PDF.spec
index 8ae806b8a6845c581b05eb00798d5600e3b52d3b..18fc4e9e3b6d54309c49aa5c5f73d8da443a40e3 100644 (file)
@@ -1,14 +1,18 @@
+#
+# Conditional build:
+# _without_tests - do not perform "make test"
+#
 %include       /usr/lib/rpm/macros.perl
-%define        pdir    Text
-%define        pnam    PDF
+%define                pdir    Text
+%define                pnam    PDF
 Summary:       Text::PDF perl module
 Summary(pl):   Modu³ perla Text::PDF
 Name:          perl-Text-PDF
 Version:       0.23
-Release:       1
+Release:       2
 License:       GPL
 Group:         Development/Languages/Perl
-Source0:       ftp://ftp.cpan.org/pub/CPAN/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz
+Source0:       http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz
 Patch0:                %{name}-fix.patch
 BuildRequires: perl >= 5.6.1
 BuildRequires: perl-Compress-Zlib
@@ -28,8 +32,9 @@ Text::PDF umo
 %patch0 -p1
 
 %build
-perl Makefile.PL
+%{__perl} Makefile.PL
 %{__make}
+%{!?_without_tests:%{__make} test}
 
 %install
 rm -rf $RPM_BUILD_ROOT
@@ -41,7 +46,8 @@ rm -rf $RPM_BUILD_ROOT
 
 %files
 %defattr(644,root,root,755)
-%doc *txt
+%doc *txt lib/Text/PDF/changes
 %attr(755,root,root) %{_bindir}/*
-%{perl_sitelib}/Text/PDF
+%dir %{perl_sitelib}/Text/PDF
+%{perl_sitelib}/Text/PDF/*.pm
 %{_mandir}/man3/*
This page took 0.096488 seconds and 4 git commands to generate.