]>
Commit | Line | Data |
---|---|---|
211aed8d JB |
1 | # |
2 | # Conditional build: | |
2ba8be83 | 3 | %bcond_without tests # do not perform "make test" |
211aed8d | 4 | # |
ba5b7c5c | 5 | Summary: GD - interface to GD graphics library |
2033f801 | 6 | Summary(pl.UTF-8): GD - interfejs do biblioteki graficznej GD |
a06384d9 | 7 | Name: perl-GD |
32e4a479 | 8 | Version: 2.71 |
92f36ad5 | 9 | Release: 3 |
72eb915b | 10 | License: Artistic |
a06384d9 | 11 | Group: Development/Languages/Perl |
ba237dd5 | 12 | Source0: http://www.cpan.org/modules/by-module/GD/GD-%{version}.tar.gz |
32e4a479 | 13 | # Source0-md5: 1e2534e1d0db57d6aad438f15ca63253 |
9b7e798d | 14 | Patch0: %{name}-paths.patch |
f5b4298b | 15 | URL: http://search.cpan.org/dist/GD/ |
55dea6dc | 16 | BuildRequires: gd-devel >= 2.0.28 |
ccf5c3a9 | 17 | BuildRequires: perl-devel >= 1:5.8.0 |
a8728476 | 18 | BuildRequires: perl-ExtUtils-PkgConfig |
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 | |
e540d463 | 39 | |
a06384d9 | 40 | %build |
582a0b54 | 41 | %{__perl} Makefile.PL </dev/null \ |
6dfd3495 | 42 | INSTALLDIRS=vendor |
839cc8d2 | 43 | %{__make} \ |
5c0cd7ab | 44 | CC="%{__cc}" \ |
12a29f16 | 45 | OPTIMIZE="%{rpmcflags}" |
a06384d9 | 46 | |
2ba8be83 | 47 | %{?with_tests:%{__make} test} |
211aed8d | 48 | |
a06384d9 | 49 | %install |
50 | rm -rf $RPM_BUILD_ROOT | |
582a0b54 | 51 | install -d $RPM_BUILD_ROOT{%{_examplesdir}/%{name}-%{version},%{perl_vendorlib}/GD} |
a06384d9 | 52 | |
5e7b98f6 | 53 | %{__make} pure_install \ |
839cc8d2 | 54 | DESTDIR=$RPM_BUILD_ROOT |
a06384d9 | 55 | |
72eb915b | 56 | cp -fa demos bdf_scripts \ |
215b4307 | 57 | $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} |
a06384d9 | 58 | |
3c9c52fd | 59 | gzip -9nf $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}/bdf_scripts/README |
a06384d9 | 60 | |
61 | %clean | |
62 | rm -rf $RPM_BUILD_ROOT | |
63 | ||
64 | %files | |
65 | %defattr(644,root,root,755) | |
3c9c52fd | 66 | %doc ChangeLog README* |
593d536c | 67 | %attr(755,root,root) %{_bindir}/bdf2gdfont.pl |
582a0b54 | 68 | %{perl_vendorarch}/GD.pm |
69 | %{perl_vendorarch}/GD | |
582a0b54 | 70 | %dir %{perl_vendorarch}/auto/GD |
71 | %{perl_vendorarch}/auto/GD/autosplit.ix | |
582a0b54 | 72 | %attr(755,root,root) %{perl_vendorarch}/auto/GD/GD.so |
73 | %dir %{perl_vendorlib}/GD | |
593d536c | 74 | %{_mandir}/man1/bdf2gdfont.pl.1* |
5e7b98f6 | 75 | %{_mandir}/man3/GD*.3pm* |
215b4307 | 76 | %{_examplesdir}/%{name}-%{version} |