]>
Commit | Line | Data |
---|---|---|
51a70055 | 1 | # |
2 | # Conditional build: | |
b065d9f8 | 3 | %bcond_without tests # do not perform "make test" |
39a25875 | 4 | |
4d7a3d0e | 5 | %define pdir Text |
6 | %define pnam PDF | |
d4c5c800 | 7 | Summary: Text::PDF perl module |
9e5f854e | 8 | Summary(pl.UTF-8): Moduł perla Text::PDF |
1ae77168 | 9 | %define base_version 0.29 |
39a25875 | 10 | Name: perl-Text-PDF |
1ae77168 | 11 | Version: %{base_version}a |
74c73c1f | 12 | Release: 1 |
51923aca | 13 | # one module mentions License=Artistic |
14 | License: Artistic | |
2d544272 | 15 | Group: Development/Languages/Perl |
048dd26d | 16 | Source0: http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz |
1ae77168 | 17 | # Source0-md5: 2fdf4c3170e53a083715888237914a9b |
599a26af | 18 | Patch0: %{name}-fix.patch |
39a25875 | 19 | URL: http://search.cpan.org/dist/Text-PDF/ |
2d544272 | 20 | BuildRequires: perl-Compress-Zlib |
cea9f8b0 | 21 | BuildRequires: perl-Font-TTF |
39a25875 | 22 | BuildRequires: perl-devel >= 1:5.8.0 |
c4f1b2e8 | 23 | BuildRequires: rpm-perlprov >= 4.1-13 |
176b8da9 | 24 | BuildArch: noarch |
77ce7f3a | 25 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
2d544272 | 26 | |
27 | %description | |
d4c5c800 | 28 | Text::PDF - PDF manipulation module. |
2d544272 | 29 | |
ed1dd429 JR |
30 | %description -l pl.UTF-8 |
31 | Text::PDF umożliwia operowanie na plikach PDF. | |
2d544272 | 32 | |
33 | %prep | |
1ae77168 | 34 | %setup -q -n %{pdir}-%{pnam}-%{base_version} |
599a26af | 35 | %patch0 -p1 |
2d544272 | 36 | |
37 | %build | |
c4f1b2e8 | 38 | %{__perl} Makefile.PL \ |
79c91147 | 39 | INSTALLDIRS=vendor |
37ef21b4 | 40 | %{__make} |
b065d9f8 | 41 | |
42 | %{?with_tests:%{__make} test} | |
2d544272 | 43 | |
44 | %install | |
45 | rm -rf $RPM_BUILD_ROOT | |
2d544272 | 46 | |
b065d9f8 | 47 | %{__make} install \ |
48 | DESTDIR=$RPM_BUILD_ROOT | |
2d544272 | 49 | |
2d544272 | 50 | %clean |
51 | rm -rf $RPM_BUILD_ROOT | |
52 | ||
53 | %files | |
54 | %defattr(644,root,root,755) | |
51a70055 | 55 | %doc *txt lib/Text/PDF/changes |
15d7b263 | 56 | %attr(755,root,root) %{_bindir}/* |
1ae77168 | 57 | %{perl_vendorlib}/Text/PDF.pm |
c4f1b2e8 | 58 | %dir %{perl_vendorlib}/Text/PDF |
59 | %{perl_vendorlib}/Text/PDF/*.pm | |
2d544272 | 60 | %{_mandir}/man3/* |