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