]> 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 e300671fa9481c847675a7429c6ab852c33700ff..18fc4e9e3b6d54309c49aa5c5f73d8da443a40e3 100644 (file)
@@ -1,48 +1,53 @@
+#
+# Conditional build:
+# _without_tests - do not perform "make test"
+#
 %include       /usr/lib/rpm/macros.perl
-%define        pdir    Text
-%define        pnam    PDF
-Summary:       Text-PDF perl module
-Summary(pl):   Modu³ perla Text-PDF
+%define                pdir    Text
+%define                pnam    PDF
+Summary:       Text::PDF perl module
+Summary(pl):   Modu³ perla Text::PDF
 Name:          perl-Text-PDF
-Version:       0.18
-Release:       3
+Version:       0.23
+Release:       2
 License:       GPL
 Group:         Development/Languages/Perl
-Source0:       ftp://ftp.perl.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: rpm-perlprov >= 3.0.3-16
 BuildRequires: perl >= 5.6.1
 BuildRequires: perl-Compress-Zlib
 BuildRequires: perl-Font-TTF
+BuildRequires: rpm-perlprov >= 3.0.3-16
 BuildArch:     noarch
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
-Text-PDF - PDF manipulation module.
+Text::PDF - PDF manipulation module.
 
 %description -l pl
-Text-PDF umo¿liwia operowanie na plikach PDF.
+Text::PDF umo¿liwia operowanie na plikach PDF.
 
 %prep
 %setup -q -n %{pdir}-%{pnam}-%{version}
 %patch0 -p1
 
 %build
-perl Makefile.PL
+%{__perl} Makefile.PL
 %{__make}
+%{!?_without_tests:%{__make} test}
 
 %install
 rm -rf $RPM_BUILD_ROOT
 
 %{__make} install DESTDIR=$RPM_BUILD_ROOT
 
-gzip -9nf *txt
-
 %clean
 rm -rf $RPM_BUILD_ROOT
 
 %files
 %defattr(644,root,root,755)
-%doc *.gz
-%{perl_sitelib}/Text/PDF
+%doc *txt lib/Text/PDF/changes
+%attr(755,root,root) %{_bindir}/*
+%dir %{perl_sitelib}/Text/PDF
+%{perl_sitelib}/Text/PDF/*.pm
 %{_mandir}/man3/*
This page took 0.059865 seconds and 4 git commands to generate.