]>
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 |
605a25df | 9 | Version: 2.50 |
db2f1071 | 10 | Release: 3 |
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 |
605a25df | 14 | # Source0-md5: b2f1e47dfc1c4e4fdda3277f165d36e5 |
9b7e798d | 15 | Patch0: %{name}-paths.patch |
9c450683 | 16 | Patch1: %{name}-make.patch |
f5b4298b | 17 | URL: http://search.cpan.org/dist/GD/ |
55dea6dc | 18 | BuildRequires: gd-devel >= 2.0.28 |
ccf5c3a9 | 19 | BuildRequires: perl-devel >= 1:5.8.0 |
582a0b54 | 20 | BuildRequires: rpm-perlprov >= 4.1-13 |
55dea6dc JB |
21 | Requires: gd >= 2.0.28 |
22 | Provides: perl-GD(gif) = %{version}-%{release} | |
c0a3b8cf | 23 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
a06384d9 | 24 | |
25 | %description | |
ba5b7c5c | 26 | GD.pm is a Perl interface to Thomas Boutell's GD graphics library. GD |
55dea6dc JB |
27 | allows you to create color drawings using a large number of graphics |
28 | primitives, and emit the drawings as PNG files. | |
a06384d9 | 29 | |
6ba8fb42 | 30 | %description -l pl.UTF-8 |
ba5b7c5c | 31 | GD.pm jest perlowym interfejsem do biblioteki graficznej GD Thomasa |
6ba8fb42 JR |
32 | Boutella. GD pozwala na tworzenie kolorowych rysunków przy użyciu |
33 | dużej liczby graficznych prymitywów oraz zapisywanie ich w formacie | |
55dea6dc | 34 | PNG. |
a06384d9 | 35 | |
36 | %prep | |
37 | %setup -q -n GD-%{version} | |
cb9838a0 | 38 | %patch0 -p1 |
9c450683 | 39 | %patch1 -p0 |
a06384d9 | 40 | |
e540d463 JB |
41 | # temporarily disable test10 (resulting image differs when from.jpg is read with libjpeg8) |
42 | %{__perl} -pi -e "s/GD::Image->can\('newFromJpeg'\)/0/" t/GD.t | |
43 | ||
a06384d9 | 44 | %build |
582a0b54 | 45 | %{__perl} Makefile.PL </dev/null \ |
6dfd3495 | 46 | INSTALLDIRS=vendor |
839cc8d2 | 47 | %{__make} \ |
5c0cd7ab | 48 | CC="%{__cc}" \ |
12a29f16 | 49 | OPTIMIZE="%{rpmcflags}" |
a06384d9 | 50 | |
2ba8be83 | 51 | %{?with_tests:%{__make} test} |
211aed8d | 52 | |
a06384d9 | 53 | %install |
54 | rm -rf $RPM_BUILD_ROOT | |
582a0b54 | 55 | install -d $RPM_BUILD_ROOT{%{_examplesdir}/%{name}-%{version},%{perl_vendorlib}/GD} |
a06384d9 | 56 | |
5e7b98f6 | 57 | %{__make} pure_install \ |
839cc8d2 | 58 | DESTDIR=$RPM_BUILD_ROOT |
a06384d9 | 59 | |
72eb915b | 60 | cp -fa demos bdf_scripts \ |
215b4307 | 61 | $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} |
a06384d9 | 62 | |
3c9c52fd | 63 | gzip -9nf $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}/bdf_scripts/README |
a06384d9 | 64 | |
65 | %clean | |
66 | rm -rf $RPM_BUILD_ROOT | |
67 | ||
68 | %files | |
69 | %defattr(644,root,root,755) | |
3c9c52fd | 70 | %doc ChangeLog README* |
593d536c | 71 | %attr(755,root,root) %{_bindir}/bdf2gdfont.pl |
582a0b54 | 72 | %{perl_vendorarch}/GD.pm |
73 | %{perl_vendorarch}/GD | |
74 | %{perl_vendorarch}/qd.pl | |
75 | %dir %{perl_vendorarch}/auto/GD | |
76 | %{perl_vendorarch}/auto/GD/autosplit.ix | |
77 | %{perl_vendorarch}/auto/GD/GD.bs | |
78 | %attr(755,root,root) %{perl_vendorarch}/auto/GD/GD.so | |
79 | %dir %{perl_vendorlib}/GD | |
593d536c | 80 | %{_mandir}/man1/bdf2gdfont.pl.1* |
5e7b98f6 | 81 | %{_mandir}/man3/GD*.3pm* |
215b4307 | 82 | %{_examplesdir}/%{name}-%{version} |