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