]>
Commit | Line | Data |
---|---|---|
c33f4989 | 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 | # | |
c33f4989 | 6 | %define pdir Template |
7 | %define pnam GD | |
8 | Summary: GD plugins for Template Toolkit - graphics operations | |
bf4d5c49 | 9 | Summary(pl.UTF-8): Wtyczki GD dla pakietu Template Toolkit - operacje graficzne |
c33f4989 | 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 | |
e33a18a9 | 16 | Source0: http://www.cpan.org/modules/by-module/Template/%{pdir}-%{pnam}-%{version}.tar.gz |
c33f4989 | 17 | # Source0-md5: 9052bef9bd799e143990e67422c14b81 |
e33a18a9 | 18 | URL: http://search.cpan.org/dist/Template-GD/ |
c33f4989 | 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 | ||
211ca045 JR |
40 | %description -l pl.UTF-8 |
41 | Wtyczki GD dla pakietu Template Tookit. Stanowią one interfejs do | |
c33f4989 | 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/* |