diff --git a/.cvsignore b/.cvsignore index e69de29..3cfd582 100644 --- a/.cvsignore +++ b/.cvsignore @@ -0,0 +1 @@ +PDF-Create-1.04.tar.gz diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..ab0cbd2 --- /dev/null +++ b/LICENSE @@ -0,0 +1,8 @@ +The main package does not specify a license. +However author states this: + +"I had a look and have decided to use the perl license. The next +release will have +this set in the META.yml file." + +Markus Baertschi diff --git a/perl-PDF-Create.spec b/perl-PDF-Create.spec new file mode 100644 index 0000000..f886e78 --- /dev/null +++ b/perl-PDF-Create.spec @@ -0,0 +1,63 @@ +Name: perl-PDF-Create +Version: 1.04 +Release: 2%{?dist} +Summary: Create PDF files +License: GPL+ or Artistic +Group: Development/Libraries +URL: http://search.cpan.org/dist/PDF-Create/ +Source0: http://www.cpan.org/authors/id/M/MA/MARKUSB/PDF-Create-%{version}.tar.gz +Source1: LICENSE +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) +BuildArch: noarch +BuildRequires: perl(ExtUtils::MakeMaker) +Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) + +%description +This module allows you to create PDF documents using a large number of +primitives, and emit the result as a PDF file or stream. PDF stands for +Portable Document Format. + +Documents can have several pages, a table of content, an information section +and many other PDF elements. More functionalities will be added as needs arise. + +Documents are constructed on the fly so the memory footprint is not tied to the +size of the pages but only to their number. + +%prep +%setup -q -n PDF-Create-%{version} + + +%build +%{__perl} Makefile.PL INSTALLDIRS=vendor +make %{?_smp_mflags} + +%install +rm -rf $RPM_BUILD_ROOT + +make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT + +find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} \; +find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 2>/dev/null \; +chmod -x pdf-logo.gif pdf-logo.jpg +cp -p %{SOURCE1} %{_builddir}/PDF-Create-%{version}/ + +%{_fixperms} $RPM_BUILD_ROOT/* + +%check +make test + +%clean +rm -rf $RPM_BUILD_ROOT + +%files +%defattr(-,root,root,-) +%doc CHANGES LICENSE pdf-logo.gif pdf-logo.jpg README TODO +%{perl_vendorlib}/PDF +%{_mandir}/man3/*.3* + +%changelog +* Thu Dec 17 2009 Lucian Langa - 1.04-2 +- add license clarification + +* Fri Nov 27 2009 Lucian Langa - 1.04-1 +- Specfile autogenerated by cpanspec 1.78. diff --git a/sources b/sources index e69de29..8ab9545 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +786a508cfb10a6e2cd6344fa70f99692 PDF-Create-1.04.tar.gz