3 %bcond_without tests # do not perform "make test"
6 %include /usr/lib/rpm/macros.perl
7 Summary: PDFLib Perl module - simpler and more OO interface to pdflib
8 Summary(pl.UTF-8): Moduł Perla PDFLib - prostszy i bardziej obiektowy interfejs do pdflib-a
13 License: GPL v1+ or Artistic
14 Group: Development/Languages/Perl
15 Source0: http://www.cpan.org/modules/by-authors/id/M/MS/MSERGEANT/%{pnam}-%{version}.tar.gz
16 # Source0-md5: e22be28ee9a06c790484fdadf0558c82
17 Patch0: %{name}-pdflib4.patch
18 URL: http://search.cpan.org/dist/-PDFLib/
19 BuildRequires: pdflib-perl >= 4.0.3-11
20 BuildRequires: perl-devel >= 1:5.8.0
21 BuildRequires: rpm-perlprov >= 4.1-13
22 Requires: pdflib-perl >= 4.0.3-11
23 #Suggests: pdflib-perl >= 5
25 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
28 PDFLib is a simpler, more OO interface to pdflib, available from
29 http://www.pdflib.com/. It makes creating PDFs from Perl fast, easy
30 and safe. Currently it supports text, images, graphics, and
31 getting/setting all parameters. It has builting support for several
32 paper sizes. It also takes care of starting/ending new pages, to try
33 and make sure that a valid PDF file is always created.
35 %description -l pl.UTF-8
36 PDFLib to prostszy, bardziej obiektowo zorientowany interfejs do
37 pdflib-a, dostępnego na http://www.pdflib.com/. Moduł ten czyni
38 tworzenie PDF-ów z Perla szybkim, łatwnym i bezpiecznym. Aktualnie
39 obsługuje tekst, obrazki, grafikę i odczytywanie/ustawianie wszystkich
40 parametrów. Ma wbudowaną obsługę kilku rozmiarów papieru. Moduł dba o
41 rozpoczynanie/kończenie stron, próbuje też zapewnić, aby zawsze był
42 tworzony poprawny PDF.
45 %setup -q -n %{pnam}-%{version}
49 %{__perl} Makefile.PL \
53 %{?with_tests:%{__make} test}
56 rm -rf $RPM_BUILD_ROOT
58 %{__make} pure_install \
59 DESTDIR=$RPM_BUILD_ROOT
62 rm -rf $RPM_BUILD_ROOT
65 %defattr(644,root,root,755)
67 %{perl_vendorlib}/PDFLib.pm