]> git.pld-linux.org Git - packages/perl-Template-GD.git/blob - perl-Template-GD.spec
- converted to UTF-8
[packages/perl-Template-GD.git] / perl-Template-GD.spec
1 #
2 # Conditional build:
3 %bcond_without  autodeps        # don't BR packages needed only for resolving deps
4 %bcond_without  tests           # do not perform "make test"
5 #
6 %include        /usr/lib/rpm/macros.perl
7 %define         pdir    Template
8 %define         pnam    GD
9 Summary:        GD plugins for Template Toolkit - graphics operations
10 Summary(pl.UTF-8):   Wtyczki GD dla pakietu Template Toolkit - operacje graficzne
11 Name:           perl-Template-GD
12 Version:        2.66
13 Release:        1
14 # same as perl
15 License:        GPL v1+ or or Artistic
16 Group:          Development/Languages/Perl
17 Source0:        http://www.cpan.org/modules/by-module/Template/%{pdir}-%{pnam}-%{version}.tar.gz
18 # Source0-md5:  9052bef9bd799e143990e67422c14b81
19 URL:            http://search.cpan.org/dist/Template-GD/
20 BuildRequires:  perl-devel >= 1:5.8.0
21 BuildRequires:  perl(File::Spec) >= 0.6
22 BuildRequires:  perl-AppConfig >= 1.52
23 %if %{with autodeps} || %{with tests}
24 BuildRequires:  perl-GD >= 1.32
25 BuildRequires:  perl-GD-Graph >= 1.33
26 BuildRequires:  perl-GD-Graph3d >= 0.55
27 BuildRequires:  perl-GD-TextUtil >= 0.80
28 BuildRequires:  perl-Pod-POM >= 0.1
29 BuildRequires:  perl-Template-Toolkit >= 2.15
30 BuildRequires:  perl-Text-Autoformat >= 1.03
31 %endif
32 BuildRequires:  rpm-perlprov >= 4.1-13
33 Requires:       perl-Template-Toolkit >= 2.15
34 Obsoletes:      perl-Template-Toolkit-Plugin-GD
35 BuildArch:      noarch
36 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
37
38 %description
39 GD plugins for Template Toolkit - interface to GD graphics library.
40
41 %description -l pl.UTF-8
42 Wtyczki GD dla pakietu Template Tookit. StanowiÄ… one interfejs do
43 biblioteki graficznej GD.
44
45 %prep
46 %setup -q -n %{pdir}-%{pnam}-%{version}
47
48 %build
49 echo "n" | %{__perl} Makefile.PL \
50         INSTALLDIRS=vendor
51 %{__make}
52
53 %{?with_tests:%{__make} test}
54
55 %install
56 rm -rf $RPM_BUILD_ROOT
57
58 %{__make} install \
59         DESTDIR=$RPM_BUILD_ROOT
60
61 %clean
62 rm -rf $RPM_BUILD_ROOT
63
64 %files
65 %defattr(644,root,root,755)
66 %{perl_vendorlib}/Template/Plugin/GD.pm
67 %{perl_vendorlib}/Template/Plugin/GD
68 %{_mandir}/man3/*
This page took 0.04505 seconds and 4 git commands to generate.