]>
Commit | Line | Data |
---|---|---|
211aed8d JB |
1 | # |
2 | # Conditional build: | |
2ba8be83 | 3 | %bcond_without tests # do not perform "make test" |
211aed8d | 4 | # |
cb9838a0 | 5 | %include /usr/lib/rpm/macros.perl |
ba5b7c5c | 6 | Summary: GD - interface to GD graphics library |
2033f801 | 7 | Summary(pl.UTF-8): GD - interfejs do biblioteki graficznej GD |
a06384d9 | 8 | Name: perl-GD |
c2de57d6 | 9 | Version: 2.34 |
2e4987e3 | 10 | Release: 2 |
72eb915b | 11 | License: Artistic |
a06384d9 | 12 | Group: Development/Languages/Perl |
ba237dd5 | 13 | Source0: http://www.cpan.org/modules/by-module/GD/GD-%{version}.tar.gz |
c2de57d6 | 14 | # Source0-md5: f52ff87ff95a1e5cf42a8ffa08cc3663 |
9b7e798d | 15 | Patch0: %{name}-paths.patch |
f5b4298b | 16 | URL: http://search.cpan.org/dist/GD/ |
55dea6dc | 17 | BuildRequires: gd-devel >= 2.0.28 |
ccf5c3a9 | 18 | BuildRequires: perl-devel >= 1:5.8.0 |
582a0b54 | 19 | BuildRequires: rpm-perlprov >= 4.1-13 |
55dea6dc JB |
20 | Requires: gd >= 2.0.28 |
21 | Provides: perl-GD(gif) = %{version}-%{release} | |
c0a3b8cf | 22 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
a06384d9 | 23 | |
24 | %description | |
ba5b7c5c | 25 | GD.pm is a Perl interface to Thomas Boutell's GD graphics library. GD |
55dea6dc JB |
26 | allows you to create color drawings using a large number of graphics |
27 | primitives, and emit the drawings as PNG files. | |
a06384d9 | 28 | |
6ba8fb42 | 29 | %description -l pl.UTF-8 |
ba5b7c5c | 30 | GD.pm jest perlowym interfejsem do biblioteki graficznej GD Thomasa |
6ba8fb42 JR |
31 | Boutella. GD pozwala na tworzenie kolorowych rysunków przy użyciu |
32 | dużej liczby graficznych prymitywów oraz zapisywanie ich w formacie | |
55dea6dc | 33 | PNG. |
a06384d9 | 34 | |
35 | %prep | |
36 | %setup -q -n GD-%{version} | |
cb9838a0 | 37 | %patch0 -p1 |
a06384d9 | 38 | |
39 | %build | |
582a0b54 | 40 | %{__perl} Makefile.PL </dev/null \ |
6dfd3495 | 41 | INSTALLDIRS=vendor |
839cc8d2 | 42 | %{__make} \ |
5c0cd7ab | 43 | CC="%{__cc}" \ |
839cc8d2 | 44 | OPTIMIZE="%{rpmcflags}" |
a06384d9 | 45 | |
2ba8be83 | 46 | %{?with_tests:%{__make} test} |
211aed8d | 47 | |
a06384d9 | 48 | %install |
49 | rm -rf $RPM_BUILD_ROOT | |
582a0b54 | 50 | install -d $RPM_BUILD_ROOT{%{_examplesdir}/%{name}-%{version},%{perl_vendorlib}/GD} |
a06384d9 | 51 | |
839cc8d2 JB |
52 | %{__make} install \ |
53 | DESTDIR=$RPM_BUILD_ROOT | |
a06384d9 | 54 | |
72eb915b | 55 | cp -fa demos bdf_scripts \ |
215b4307 | 56 | $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} |
a06384d9 | 57 | |
3c9c52fd | 58 | gzip -9nf $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}/bdf_scripts/README |
a06384d9 | 59 | |
60 | %clean | |
61 | rm -rf $RPM_BUILD_ROOT | |
62 | ||
63 | %files | |
64 | %defattr(644,root,root,755) | |
3c9c52fd | 65 | %doc ChangeLog README* |
593d536c | 66 | %attr(755,root,root) %{_bindir}/bdf2gdfont.pl |
582a0b54 | 67 | %{perl_vendorarch}/GD.pm |
68 | %{perl_vendorarch}/GD | |
69 | %{perl_vendorarch}/qd.pl | |
70 | %dir %{perl_vendorarch}/auto/GD | |
71 | %{perl_vendorarch}/auto/GD/autosplit.ix | |
72 | %{perl_vendorarch}/auto/GD/GD.bs | |
73 | %attr(755,root,root) %{perl_vendorarch}/auto/GD/GD.so | |
74 | %dir %{perl_vendorlib}/GD | |
593d536c | 75 | %{_mandir}/man1/bdf2gdfont.pl.1* |
a06384d9 | 76 | %{_mandir}/man3/* |
215b4307 | 77 | %{_examplesdir}/%{name}-%{version} |