%define module PDF-API2 %define name perl-%{module} %define version 0.46 %define release 1mdk Name: %{name} Version: %{version} Release: %{release} Summary: PDF-API2 Perl module License: Artistic Group: Development/Perl Source: http://search.cpan.org/CPAN/authors/id/A/AR/AREIBENS/%{module}-%{version}.tar.bz2 Patch: %{name}-%{version}.Makefile.patch.bz2 BuildRoot: %{_tmppath}/%{name}-%{version} URL: http://search.cpan.org/dist/%{module} Buildarch: noarch %description This module is 'The Next Generation' of Text::PDF::API which initially provided a nice API around the Text::PDF::* modules created by Martin Hosken. %prep %setup -q -n %{module}-%{version} %patch find contrib -type f | xargs perl -pi -e 's|^#!/usr/local/bin/perl|#!/usr/bin/perl|' perl -pi -e 'tr/\r//d' CHANGELOG LICENSE contrib/pdf-deoptimize.pl %build %{__perl} Makefile.PL INSTALLDIRS=vendor make %check make test %install rm -rf %{buildroot} %makeinstall_std rm -f %{buildroot}/%{perl_vendorlib}/PDF/API2/TTF/Win32.pm %clean rm -rf %{buildroot} %files %defattr(-, root, root) %doc AUTHORS CHANGELOG CONTACT COPYING INSTALL LICENSE README TODO VERSION contrib examples %{perl_vendorlib}/PDF %{_mandir}/*/* %changelog * Fri Sep 23 2005 Guillaume Rousse <guillomovitch@mandriva.org> 0.46-1mdk - new version - rpmbuildupdate aware - spec cleanup - fix directory ownership - enable tests - better url - fix doc files list - force man page generation - fix some perms and encoding * Mon Mar 01 2004 Michael Scherer <misc@mandrake.org> 0.3r77-2mdk - remove useless Requires on win32 * Tue Feb 17 2004 Lenny Cartier <lenny@mandrakesoft.com> 0.3r77-1mdk - 0.3r77 * Thu Sep 05 2002 Daniel Lacroix <dlacroix@erasme.org> - generated by cpan2rpm version 0.1 for Mandrake 9.0