]> git.pld-linux.org Git - packages/perl-Text-PDF.git/blob - perl-Text-PDF.spec
- new bconds
[packages/perl-Text-PDF.git] / perl-Text-PDF.spec
1 #
2 # Conditional build:
3 %bcond_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.25
12 Release:        1
13 License:        GPL
14 Group:          Development/Languages/Perl
15 Source0:        http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz
16 # Source0-md5:  8b120662c4c59154967908159156a83e
17 Patch0:         %{name}-fix.patch
18 BuildRequires:  perl-devel >= 5.6.1
19 BuildRequires:  perl-Compress-Zlib
20 BuildRequires:  perl-Font-TTF
21 BuildRequires:  rpm-perlprov >= 4.1-13
22 BuildArch:      noarch
23 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
24
25 %description
26 Text::PDF - PDF manipulation module.
27
28 %description -l pl
29 Text::PDF umo¿liwia operowanie na plikach PDF.
30
31 %prep
32 %setup -q -n %{pdir}-%{pnam}-%{version}
33 %patch0 -p1
34
35 %build
36 %{__perl} Makefile.PL \
37         INSTALLDIRS=vendor
38 %{__make}
39
40 %{?with_tests:%{__make} test}
41
42 %install
43 rm -rf $RPM_BUILD_ROOT
44
45 %{__make} install \
46         DESTDIR=$RPM_BUILD_ROOT
47
48 %clean
49 rm -rf $RPM_BUILD_ROOT
50
51 %files
52 %defattr(644,root,root,755)
53 %doc *txt lib/Text/PDF/changes
54 %attr(755,root,root) %{_bindir}/*
55 %dir %{perl_vendorlib}/Text/PDF
56 %{perl_vendorlib}/Text/PDF/*.pm
57 %{_mandir}/man3/*
This page took 0.065517 seconds and 4 git commands to generate.