From 753948bfd574c4b432372b0eaafd2707fd1f2fc4 Mon Sep 17 00:00:00 2001 From: Automatic Build System Date: Sat, 6 Jan 2024 09:27:08 +0100 Subject: [PATCH] automatic rebuild by autodist [release 0.73-2mamba;Sun Jul 14 2013] --- README.md | 2 + perl-PDF-API2-0.73-fix_autoreq.patch | 14 +++++++ perl-PDF-API2.spec | 60 ++++++++++++++++++++++++++++ 3 files changed, 76 insertions(+) create mode 100644 perl-PDF-API2-0.73-fix_autoreq.patch create mode 100644 perl-PDF-API2.spec diff --git a/README.md b/README.md index d507850..3780e68 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,4 @@ # perl-PDF-API2 +PDF::API2 - A Perl Module Chain to faciliate the Creation and Modification of High-Quality "Portable Document Format (aka. PDF)" Files. + diff --git a/perl-PDF-API2-0.73-fix_autoreq.patch b/perl-PDF-API2-0.73-fix_autoreq.patch new file mode 100644 index 0000000..d3b6fe0 --- /dev/null +++ b/perl-PDF-API2-0.73-fix_autoreq.patch @@ -0,0 +1,14 @@ +diff -Nru PDF-API2-0.73.orig/lib/PDF/API2/Resource/XObject/Image/PNM.pm PDF-API2-0.73/lib/PDF/API2/Resource/XObject/Image/PNM.pm +--- PDF-API2-0.73.orig/lib/PDF/API2/Resource/XObject/Image/PNM.pm 2007-05-24 20:29:46.000000000 +0200 ++++ PDF-API2-0.73/lib/PDF/API2/Resource/XObject/Image/PNM.pm 2009-05-04 17:44:44.000000000 +0200 +@@ -389,8 +389,8 @@ + PAM image just fine and the program will never know the difference. + To confuse things more, there is a collection of library routines called the "pam" functions that read and + write the PAM format, but also read and write the PBM, PGM, and PPM formats. They do this because +-the latter formats are much older and more popular, so this makes it convenient to write programs that +-use the newer PAM format. ++the latter formats are much older and more popular, so this makes it convenient to write programs ++that use the newer PAM format. + SEE ALSO + pbm(5), pgm(5), ppm(5), pnm(5), libpnm(3).THpbm505 March 2000 + NAME diff --git a/perl-PDF-API2.spec b/perl-PDF-API2.spec new file mode 100644 index 0000000..50c8e71 --- /dev/null +++ b/perl-PDF-API2.spec @@ -0,0 +1,60 @@ +%define perl_major_ver %(eval `perl -V:version`; echo ${version%*.[0-9]*}.0) + +Name: perl-PDF-API2 +Version: 0.73 +Release: 2mamba +Summary: PDF::API2 - Module for the Creation and Modification of PDF Files +Group: System/Libraries/Perl +Vendor: openmamba +Distribution: openmamba +Packager: Silvan Calarco +URL: http://www.cpan.org +Source: http://search.cpan.org/CPAN/authors/id/A/AR/AREIBENS/PDF-API2-%{version}.tar.gz +Patch0: %{name}-0.73-fix_autoreq.patch +License: Artistic, GPL +Requires: perl >= %perl_major_ver +BuildRequires: perl-devel >= %perl_major_ver +BuildRoot: %{_tmppath}/%{name}-%{version}-root + +%description +PDF::API2 - A Perl Module Chain to faciliate the Creation and Modification of High-Quality "Portable Document Format (aka. PDF)" Files. + +%prep +%setup -q -n PDF-API2-%{version} +%patch0 -p1 + +%build +perl Makefile.PL PREFIX=%{_prefix} INSTALLDIRS=vendor +%make +%make test + +%install +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" +%makeinstall_perl +packlist=`find %{buildroot} -name .packlist` +[ -z "$packlist" ] && exit 1 || cat $packlist | \ + sed "s,%buildroot,,g;s,.*/man/.*,&.gz,g" | \ + sort -u > .packlist && rm $packlist + +rm -f %{buildroot}%{perl_vendorlib}/PDF/API2/Win32.pm +rm -f %{buildroot}%{perl_vendorlib}/PDF/API2/Basic/TTF/Win32.pm +sed -i "/Win32.pm/d" .packlist + +strid=`echo $packlist | sed 's,.*auto\(.*\)/.packlist,\1,'` +for dir in `find %{buildroot} -type d | grep $strid`; do + echo "%dir ${dir#%buildroot}" >> .packlist +done + +%clean +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" +rm -f .packlist + +%files -f .packlist +%defattr(-,root,root) + +%changelog +* Sun Jul 14 2013 Automatic Build System 0.73-2mamba +- automatic rebuild by autodist + +* Mon May 04 2009 Silvan Calarco 0.73-1mamba +- package created by autospec