]> git.pld-linux.org Git - packages/perl-Text-PDF.git/blob - perl-Text-PDF.spec
- use the __perl macro
[packages/perl-Text-PDF.git] / perl-Text-PDF.spec
1 #
2 # Conditional build:
3 # _without_tests - do not perform "make test"
4 #
5 %include        /usr/lib/rpm/macros.perl
6 %define         pdir    Text
7 %define         pnam    PDF
8 Summary:        Text::PDF perl module
9 Summary(pl):    Modu³ perla Text::PDF
10 Name:           perl-Text-PDF
11 Version:        0.23
12 Release:        2
13 License:        GPL
14 Group:          Development/Languages/Perl
15 Source0:        http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz
16 Patch0:         %{name}-fix.patch
17 BuildRequires:  perl >= 5.6.1
18 BuildRequires:  perl-Compress-Zlib
19 BuildRequires:  perl-Font-TTF
20 BuildRequires:  rpm-perlprov >= 3.0.3-16
21 BuildArch:      noarch
22 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
23
24 %description
25 Text::PDF - PDF manipulation module.
26
27 %description -l pl
28 Text::PDF umo¿liwia operowanie na plikach PDF.
29
30 %prep
31 %setup -q -n %{pdir}-%{pnam}-%{version}
32 %patch0 -p1
33
34 %build
35 %{__perl} Makefile.PL
36 %{__make}
37 %{!?_without_tests:%{__make} test}
38
39 %install
40 rm -rf $RPM_BUILD_ROOT
41
42 %{__make} install DESTDIR=$RPM_BUILD_ROOT
43
44 %clean
45 rm -rf $RPM_BUILD_ROOT
46
47 %files
48 %defattr(644,root,root,755)
49 %doc *txt lib/Text/PDF/changes
50 %attr(755,root,root) %{_bindir}/*
51 %dir %{perl_sitelib}/Text/PDF
52 %{perl_sitelib}/Text/PDF/*.pm
53 %{_mandir}/man3/*
This page took 0.066334 seconds and 4 git commands to generate.