]> git.pld-linux.org Git - packages/perl-GD.git/blame - perl-GD.spec
rebuild with perl 5.32
[packages/perl-GD.git] / perl-GD.spec
CommitLineData
211aed8d
JB
1#
2# Conditional build:
2ba8be83 3%bcond_without tests # do not perform "make test"
211aed8d 4#
ba5b7c5c 5Summary: GD - interface to GD graphics library
2033f801 6Summary(pl.UTF-8): GD - interfejs do biblioteki graficznej GD
a06384d9 7Name: perl-GD
32e4a479 8Version: 2.71
92f36ad5 9Release: 3
72eb915b 10License: Artistic
a06384d9 11Group: Development/Languages/Perl
ba237dd5 12Source0: http://www.cpan.org/modules/by-module/GD/GD-%{version}.tar.gz
32e4a479 13# Source0-md5: 1e2534e1d0db57d6aad438f15ca63253
9b7e798d 14Patch0: %{name}-paths.patch
f5b4298b 15URL: http://search.cpan.org/dist/GD/
55dea6dc 16BuildRequires: gd-devel >= 2.0.28
ccf5c3a9 17BuildRequires: perl-devel >= 1:5.8.0
a8728476 18BuildRequires: perl-ExtUtils-PkgConfig
582a0b54 19BuildRequires: rpm-perlprov >= 4.1-13
55dea6dc
JB
20Requires: gd >= 2.0.28
21Provides: perl-GD(gif) = %{version}-%{release}
c0a3b8cf 22BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
a06384d9 23
24%description
ba5b7c5c 25GD.pm is a Perl interface to Thomas Boutell's GD graphics library. GD
55dea6dc
JB
26allows you to create color drawings using a large number of graphics
27primitives, and emit the drawings as PNG files.
a06384d9 28
6ba8fb42 29%description -l pl.UTF-8
ba5b7c5c 30GD.pm jest perlowym interfejsem do biblioteki graficznej GD Thomasa
6ba8fb42
JR
31Boutella. GD pozwala na tworzenie kolorowych rysunków przy użyciu
32dużej liczby graficznych prymitywów oraz zapisywanie ich w formacie
55dea6dc 33PNG.
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
50rm -rf $RPM_BUILD_ROOT
582a0b54 51install -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 56cp -fa demos bdf_scripts \
215b4307 57 $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
a06384d9 58
3c9c52fd 59gzip -9nf $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}/bdf_scripts/README
a06384d9 60
61%clean
62rm -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}
This page took 0.070185 seconds and 4 git commands to generate.