diff --git a/.cvsignore b/.cvsignore index e69de29..981e015 100644 --- a/.cvsignore +++ b/.cvsignore @@ -0,0 +1 @@ +PDF-Reuse-0.35.tar.gz diff --git a/import.log b/import.log new file mode 100644 index 0000000..e5222cf --- /dev/null +++ b/import.log @@ -0,0 +1 @@ +perl-PDF-Reuse-0_35-1_fc10:HEAD:perl-PDF-Reuse-0.35-1.fc10.src.rpm:1244740359 diff --git a/perl-PDF-Reuse.spec b/perl-PDF-Reuse.spec new file mode 100644 index 0000000..2e287d4 --- /dev/null +++ b/perl-PDF-Reuse.spec @@ -0,0 +1,82 @@ +Name: perl-PDF-Reuse +Version: 0.35 +Release: 1%{?dist} +# Reuse.pm -> GPL+ or Artistic +License: GPL+ or Artistic +Group: Development/Libraries +Summary: Reuse and mass produce PDF documents +Source: http://search.cpan.org/CPAN/authors/id/L/LA/LARSLUND/PDF-Reuse-%{version}.tar.gz +Url: http://search.cpan.org/dist/PDF-Reuse +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) +Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) +BuildArch: noarch + +BuildRequires: perl(AutoLoader) +BuildRequires: perl(Carp) +BuildRequires: perl(Compress::Zlib) +BuildRequires: perl(Data::Dumper) +BuildRequires: perl(Digest::MD5) +BuildRequires: perl(Exporter) +BuildRequires: perl(ExtUtils::MakeMaker) +BuildRequires: perl(Font::TTF) +BuildRequires: perl(Text::PDF::TTFont0) + +# until we get the filtering framework in... +%global _use_internal_dependency_generator 0 +%global __deploop() while read FILE; do /usr/lib/rpm/rpmdeps -%{1} ${FILE}; done | /bin/sort -u +%global __find_provides /bin/sh -c "%{__grep} -v '%_docdir' | %{__grep} -v '%{perl_vendorarch}/.*\\.so$' | %{__deploop P} | %{__sed} -e '/^perl(PDF::Reuse)$/d'" +%global __find_requires /bin/sh -c "%{__grep} -v '%_docdir' | %{__deploop R}" + +%description +This module allows you to reuse PDF-files. You can use pages, images, +fonts and Acrobat JavaScript from old PDF-files (if they were not +encrypted), and rearrange the components, and add new graphics, texts etc. + +There is also support for graphics. In the tutorial there is a description of +how to transform simple PDF-pages to graphic Perl objects with the help of +programs based on this module. + +The module is fairly fast, so it should be possible to use it for mass +production. + +%prep +%setup -q -n PDF-Reuse-%{version} + +find . -type f -exec sed -i 's/\r//' {} ';' +cat Util/reuseComponent_pl | iconv -f iso8859-1 -t utf8 > foo +mv foo Util/reuseComponent_pl + +%build +%{__perl} Makefile.PL INSTALLDIRS=vendor +make %{?_smp_mflags} + +%install +rm -rf %{buildroot} + +make pure_install PERL_INSTALL_ROOT=%{buildroot} +find %{buildroot} -type f -name .packlist -exec rm -f {} ';' +find %{buildroot} -depth -type d -exec rmdir {} 2>/dev/null ';' + +%{_fixperms} %{buildroot}/* + +%check +make test + +%clean +rm -rf %{buildroot} + +%files +%defattr(-,root,root,-) +%doc Changes README Util/ +%{perl_vendorlib}/* +%{_mandir}/man3/*.3* + +%changelog +* Mon Jun 08 2009 Chris Weyl 0.35-1 +- touch-up for submission +- note we use the filtering to remove an errant extra perl(PDF::Reuse) + +* Mon Jun 08 2009 Chris Weyl 0.35-0 +- initial RPM packaging +- generated with cpan2dist (CPANPLUS::Dist::RPM version 0.0.8) + diff --git a/sources b/sources index e69de29..a233b69 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +1e2541eacaf8df4f4012312f6c353688 PDF-Reuse-0.35.tar.gz