]> git.pld-linux.org Git - packages/perl-Text-PDF.git/blobdiff - perl-Text-PDF.spec
- autoupdated to 0.14
[packages/perl-Text-PDF.git] / perl-Text-PDF.spec
index 120ed90c68cc82686ed2f7119634a1fc65da691b..cb71f8f9283c9ff826f96774d73d516c40d60e2a 100644 (file)
@@ -1,21 +1,20 @@
-%define                perl_sitelib    %(eval "`perl -V:installsitelib`"; echo $installsitelib)
+%include       /usr/lib/rpm/macros.perl
 Summary:       Text-PDF perl module
 Summary(pl):   Modu³ perla Text-PDF
 Name:          perl-Text-PDF
-Version:       0.06
-Release:       3
-Copyright:     GPL
+Version:       0.14
+Release:       1
+License:       GPL
 Group:         Development/Languages/Perl
+Group(de):     Entwicklung/Sprachen/Perl
 Group(pl):     Programowanie/Jêzyki/Perl
-Source:                ftp://ftp.perl.org/pub/CPAN/modules/by-module/Text/Text-PDF-%{version}.tar.gz
-Patch:         perl-Text-PDF-makefile.patch
-BuildRequires: perl >= 5.005_03-10
+Source0:       ftp://ftp.perl.org/pub/CPAN/modules/by-module/Text/Text-PDF-%{version}.tar.gz
+Patch0:                %{name}-fix.patch
+BuildRequires: rpm-perlprov >= 3.0.3-16
+BuildRequires: perl >= 5.6
 BuildRequires: perl-Compress-Zlib
-%requires_eq   perl
-Requires:      %{perl_sitearch}
-Requires:      perl-Compress-Zlib
-Requires:      perl-Font-TTF
-BuildRoot:     /tmp/%{name}-%{version}-root
+BuildRequires: perl-Font-TTF
+BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
 Text-PDF - PDF manipulation module.
@@ -25,33 +24,24 @@ Text-PDF umo
 
 %prep
 %setup -q -n Text-PDF-%{version}
-%patch -p0
+%patch0 -p1
 
 %build
 perl Makefile.PL
-make
+%{__make}
 
 %install
 rm -rf $RPM_BUILD_ROOT
-make install DESTDIR=$RPM_BUILD_ROOT
 
-(
-  cd $RPM_BUILD_ROOT%{perl_sitearch}/auto/Text/PDF
-  sed -e "s#$RPM_BUILD_ROOT##" .packlist >.packlist.new
-  mv .packlist.new .packlist
-)
+%{__make} install DESTDIR=$RPM_BUILD_ROOT
 
-gzip -9nf $RPM_BUILD_ROOT%{_mandir}/man3/* \
-        *txt
+gzip -9nf *txt
 
 %clean
 rm -rf $RPM_BUILD_ROOT
 
 %files
 %defattr(644,root,root,755)
-%doc readme.txt.gz
-
+%doc *.gz
 %{perl_sitelib}/Text/PDF
-%{perl_sitearch}/auto/Text/PDF
-
 %{_mandir}/man3/*
This page took 0.035035 seconds and 4 git commands to generate.