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