|
@@ -1,26 +1,33 @@
|
|
-%define perl_vendorarch %(eval "`perl -V:installvendorarch`"; echo $installvendorarch)
|
|
|
|
-
|
|
|
|
-Summary: A perl5 interface to Thomas Boutell's gd library
|
|
|
|
-Summary(ja): GD ライブラリの Perl 用インターフェイス
|
|
|
|
-Name: perl-GD
|
|
|
|
-Version: 2.35
|
|
|
|
-Release: 2%{?_dist_release}
|
|
|
|
-License: distributable
|
|
|
|
-Group: Development/Libraries
|
|
|
|
-Source0: http://search.cpan.org/CPAN/authors/id/L/LD/LDS/GD-%{version}.tar.gz
|
|
|
|
-Url: http://search.cpan.org/dist/GD/
|
|
|
|
-BuildRoot: %{_tmppath}/perl-GD-buildroot/
|
|
|
|
-BuildRequires: perl >= 5.6.0, gd-devel >= 2.0.20, libjpeg-devel
|
|
|
|
-BuildRequires: freetype2-devel, libpng-devel, zlib-devel
|
|
|
|
-BuildRequires: libX11-devel
|
|
|
|
-BuildRequires: libXpm-devel
|
|
|
|
-Requires: perl >= 5.6.0, gd >= 2.0.12, libjpeg, freetype2
|
|
|
|
-Requires: libpng, zlib
|
|
|
|
|
|
+Name: perl-GD
|
|
|
|
+Version: 2.44
|
|
|
|
+Release: 1%{?_dist_release}
|
|
|
|
+Summary: Perl interface to the GD graphics library
|
|
|
|
+Summary(ja): GD ライブラリの Perl 用インターフェイス
|
|
|
|
+
|
|
|
|
+Group: Development/Libraries
|
|
|
|
+License: GPL+ or Artistic
|
|
|
|
+URL: http://search.cpan.org/dist/GD/
|
|
|
|
+Source0: http://www.cpan.org/authors/id/L/LD/LDS/GD-%{version}.tar.gz
|
|
|
|
+Patch0: perl-GD-2.41-Group.patch
|
|
|
|
+Patch1: perl-GD-skip-3.patch
|
|
|
|
+# see http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=628522
|
|
|
|
+# and https://rt.cpan.org/Public/Bug/Display.html?id=67990
|
|
|
|
+Patch2: perl-GD-ccflags.patch
|
|
|
|
+
|
|
|
|
+BuildRequires: gd-devel >= 2.0.28
|
|
|
|
+BuildRequires: perl(ExtUtils::MakeMaker)
|
|
|
|
+BuildRequires: freetype2-devel, libpng-devel, zlib-devel
|
|
|
|
+BuildRequires: libX11-devel
|
|
|
|
+BuildRequires: libXpm-devel
|
|
|
|
+Requires: gd >= 2.0.28, libjpeg, freetype2
|
|
|
|
+Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
|
|
|
|
+
|
|
|
|
+%{?perl_default_filter}
|
|
|
|
|
|
%description
|
|
%description
|
|
-This is a autoloadable interface module for libgd, a popular library
|
|
|
|
|
|
+This is a autoloadable interface module for GD, a popular library
|
|
for creating and manipulating PNG files. With this library you can
|
|
for creating and manipulating PNG files. With this library you can
|
|
-create PNG images on the fly or modify existing files. Features
|
|
|
|
|
|
+create PNG images on the fly or modify existing files. Features
|
|
include:
|
|
include:
|
|
|
|
|
|
a. lines, polygons, rectangles and arcs, both filled and unfilled
|
|
a. lines, polygons, rectangles and arcs, both filled and unfilled
|
|
@@ -33,68 +40,211 @@ f. support for transparency and interlacing
|
|
For full information on usage, see the accompanying man and html
|
|
For full information on usage, see the accompanying man and html
|
|
documentation.
|
|
documentation.
|
|
|
|
|
|
-# Provide perl-specific find-{provides,requires}.
|
|
|
|
-%define __find_provides /usr/lib/rpm/find-provides.perl
|
|
|
|
-%define __find_requires /usr/lib/rpm/find-requires.perl
|
|
|
|
|
|
|
|
%prep
|
|
%prep
|
|
%setup -q -n GD-%{version}
|
|
%setup -q -n GD-%{version}
|
|
|
|
+%patch0 -p1
|
|
|
|
+%ifarch %{ix86}
|
|
|
|
+%patch1 -p1
|
|
|
|
+%endif
|
|
|
|
+%patch2 -p1
|
|
|
|
+%{__perl} -pi -e 's|/usr/local/bin/perl\b|%{__perl}|' \
|
|
|
|
+ qd.pl demos/{*.{pl,cgi},truetype_test}
|
|
|
|
+chmod -c 644 bdf_scripts/* demos/*
|
|
|
|
+chmod -c 755 qd.pl
|
|
|
|
|
|
-%build
|
|
|
|
-CFLAGS="$RPM_OPT_FLAGS" \
|
|
|
|
-perl Makefile.PL --lib_gd_path=%{_libdir} INSTALLDIRS="vendor" << _OPT_
|
|
|
|
-y
|
|
|
|
-_OPT_
|
|
|
|
-make
|
|
|
|
-make test
|
|
|
|
|
|
|
|
-%clean
|
|
|
|
|
|
+%build
|
|
rm -rf %{buildroot}
|
|
rm -rf %{buildroot}
|
|
|
|
+%{__perl} Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}"
|
|
|
|
+make %{?_smp_mflags} OPTIMIZE="%{optflags}"
|
|
|
|
+
|
|
|
|
|
|
%install
|
|
%install
|
|
-rm -rf %{buildroot}
|
|
|
|
-make DESTDIR=%{buildroot} install
|
|
|
|
|
|
+make pure_install PERL_INSTALL_ROOT=%{buildroot}
|
|
|
|
+find %{buildroot} -type f -name .packlist -exec rm -f {} ';'
|
|
|
|
+find %{buildroot} -type f -name '*.bs' -empty -exec rm -f {} ';'
|
|
|
|
+find %{buildroot} -type d -depth -exec rmdir {} 2>/dev/null ';'
|
|
|
|
+chmod -R u+w %{buildroot}/*
|
|
|
|
|
|
-[ -x /usr/lib/rpm/brp-compress ] && /usr/lib/rpm/brp-compress
|
|
|
|
|
|
|
|
-find %{buildroot}%{_prefix} -type f -print |
|
|
|
|
- sed "s@^%{buildroot}@@g" |
|
|
|
|
- grep -v perllocal.pod |
|
|
|
|
- grep -v "\.packlist" > %{name}-filelist
|
|
|
|
-if [ "$(cat %{name}-filelist)X" = "X" ] ; then
|
|
|
|
- echo "ERROR: EMPTY FILE LIST"
|
|
|
|
- exit -1
|
|
|
|
-fi
|
|
|
|
|
|
+%check
|
|
|
|
+%ifarch ppc
|
|
|
|
+# testsuite fails on ppc
|
|
|
|
+%else
|
|
|
|
+make test
|
|
|
|
+%endif
|
|
|
|
+%ifarch %{ix86}
|
|
|
|
+perl t/GD.t --write
|
|
|
|
+: This is the file that should contain some blue color:
|
|
|
|
+base64 t/test.out.3.png_new
|
|
|
|
+%endif
|
|
|
|
|
|
-find demos -type f | xargs perl -pi -e "s|^#!(\s)?/usr/local/bin/perl|#!/usr/bin/perl|g"
|
|
|
|
-find bdf_scripts -type f | xargs perl -pi -e "s|^#!(\s)?/usr/local/bin/perl|#!/usr/bin/perl|g"
|
|
|
|
|
|
|
|
-%files -f %{name}-filelist
|
|
|
|
-%defattr(-,root,root)
|
|
|
|
-%doc ChangeLog README* demos bdf_scripts
|
|
|
|
-%dir %{perl_vendorarch}/GD
|
|
|
|
-%dir %{perl_vendorarch}/auto/GD
|
|
|
|
|
|
+%files
|
|
|
|
+%defattr(-,root,root,-)
|
|
|
|
+%doc ChangeLog README* demos/ bdf_scripts
|
|
|
|
+%{_bindir}/*
|
|
|
|
+%{perl_vendorarch}/auto/GD
|
|
|
|
+%{perl_vendorarch}/GD*
|
|
|
|
+%{perl_vendorarch}/qd.pl
|
|
|
|
+%{_mandir}/man1/*.1*
|
|
|
|
+%{_mandir}/man3/*.3pm*
|
|
|
|
+
|
|
|
|
|
|
%changelog
|
|
%changelog
|
|
-* Sat Apr 30 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.35-2
|
|
|
|
-- rebuild with perl-5.12.3
|
|
|
|
-- add BuildRequires: libX11-devel, libXpm-devel
|
|
|
|
|
|
+* Fri Mar 09 2012 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 2.44-1
|
|
|
|
+- updated to 2.44
|
|
|
|
+- spec revamped based on Fedora's 2.44-10
|
|
|
|
+- previous Vine changelogs as follows:
|
|
|
|
+
|
|
|
|
+ - Sat Apr 30 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.35-2
|
|
|
|
+ - rebuild with perl-5.12.3
|
|
|
|
+ - add BuildRequires: libX11-devel, libXpm-devel
|
|
|
|
+
|
|
|
|
+ - Sat Sep 20 2008 Shu KONNO <owa@bg.wakwak.com> 2.35-1vl5
|
|
|
|
+ - applied new versioning policy, spec in utf-8
|
|
|
|
+ - built with perl-5.10.0
|
|
|
|
+
|
|
|
|
+ - Sun Sep 3 2006 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 2.35-0vl1
|
|
|
|
+ - new upstream release
|
|
|
|
+ - changed Group to Development/Libraries
|
|
|
|
+
|
|
|
|
+ - Sat Sep 17 2005 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 2.28-0vl1
|
|
|
|
+ - new upstream release
|
|
|
|
+ - added Japanese summary
|
|
|
|
+
|
|
|
|
+ - Sun Jan 2 2005 IWAI, Masaharu <iwai@alib.jp> 2.19-0vl1
|
|
|
|
+ - new upstream release
|
|
|
|
+ - update {Build,}Requires
|
|
|
|
+
|
|
|
|
+ - Tue Nov 11 2003 IWAI, Masaharu <iwai@alib.jp> 2.11-0vl1
|
|
|
|
+ - initial build
|
|
|
|
+
|
|
|
|
+* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.44-10
|
|
|
|
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
|
|
|
|
+
|
|
|
|
+* Thu Nov 10 2011 Iain Arnell <iarnell@gmail.com> 2.44-9
|
|
|
|
+- Rebuild for libpng 1.5
|
|
|
|
+
|
|
|
|
+* Sat Jun 18 2011 Iain Arnell <iarnell@gmail.com> 2.44-8
|
|
|
|
+- patch to avoid issue with ExtUtils::MakeMaker and CCFLAGS
|
|
|
|
+ see http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=628522
|
|
|
|
+- clean up spec for modern rpmbuild
|
|
|
|
+- use perl_default_filter
|
|
|
|
+
|
|
|
|
+* Wed Jun 15 2011 Marcela Mašláňová <mmaslano@redhat.com> - 2.44-7
|
|
|
|
+- Perl mass rebuild
|
|
|
|
+
|
|
|
|
+* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.44-6
|
|
|
|
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
|
|
|
|
+
|
|
|
|
+* Thu Dec 16 2010 Marcela Maslanova <mmaslano@redhat.com> - 2.44-5
|
|
|
|
+- 661697 rebuild for fixing problems with vendorach/lib
|
|
|
|
+
|
|
|
|
+* Sun May 02 2010 Marcela Maslanova <mmaslano@redhat.com> - 2.44-4
|
|
|
|
+- Mass rebuild with perl-5.12.0
|
|
|
|
+
|
|
|
|
+* Fri Dec 4 2009 Stepan Kasal <skasal@redhat.com> - 2.44-3
|
|
|
|
+- rebuild against perl 5.10.1
|
|
|
|
+
|
|
|
|
+* Thu Oct 29 2009 Stepan Kasal <skasal@redhat.com> - 2.44-2
|
|
|
|
+- give up tests on ppc
|
|
|
|
+
|
|
|
|
+* Mon Oct 5 2009 Stepan Kasal <skasal@redhat.com> - 2.44-1
|
|
|
|
+- new upstream version
|
|
|
|
+- run tests always
|
|
|
|
+- do not add bdf_scripts/ to docs
|
|
|
|
+- switch off the test that fails in i686 koji
|
|
|
|
+
|
|
|
|
+* Sat Jul 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.41-3
|
|
|
|
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
|
|
|
|
+
|
|
|
|
+* Mon Mar 16 2009 Tom "spot" Callaway <tcallawa@redhat.com> - 2.41-2
|
|
|
|
+- fix Makefile.PL to install GD/Group.pm (bz 490429)
|
|
|
|
+
|
|
|
|
+* Fri Mar 13 2009 Tom "spot" Callaway <tcallawa@redhat.com> - 2.41-1
|
|
|
|
+- update to 2.41
|
|
|
|
+
|
|
|
|
+* Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.39-2
|
|
|
|
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
|
|
|
|
+
|
|
|
|
+* Mon Jul 21 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 2.39-1
|
|
|
|
+- update to 2.39
|
|
|
|
+
|
|
|
|
+* Fri Apr 4 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 2.35-7
|
|
|
|
+- tests work fine locally, one fails in mock, maybe needs a desktop?
|
|
|
|
+ conditionalized them, default off.
|
|
|
|
+
|
|
|
|
+* Fri Apr 4 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 2.35-6
|
|
|
|
+- license fix
|
|
|
|
+
|
|
|
|
+* Wed Feb 27 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 2.35-5
|
|
|
|
+- Rebuild for perl 5.10 (again)
|
|
|
|
+
|
|
|
|
+* Tue Feb 19 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 2.35-4
|
|
|
|
+- Autorebuild for GCC 4.3
|
|
|
|
+
|
|
|
|
+* Thu Jan 24 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 2.35-3
|
|
|
|
+- rebuild for new perl
|
|
|
|
+
|
|
|
|
+* Mon Oct 15 2007 Tom "spot" Callaway <tcallawa@redhat.com> - 2.35-2.1
|
|
|
|
+- add BR: perl(ExtUtils::MakeMaker)
|
|
|
|
+
|
|
|
|
+* Sun Oct 8 2006 Jose Pedro Oliveira <jpo at di.uminho.pt> - 2.35-2
|
|
|
|
+- Removed a duplicate file (bdf_scripts/bdf2gdfont.PLS).
|
|
|
|
+
|
|
|
|
+* Tue Sep 5 2006 Jose Pedro Oliveira <jpo at di.uminho.pt> - 2.35-1
|
|
|
|
+- Update to 2.35.
|
|
|
|
+
|
|
|
|
+* Sat Jun 3 2006 Jose Pedro Oliveira <jpo at di.uminho.pt> - 2.34-1
|
|
|
|
+- Update to 2.34.
|
|
|
|
+
|
|
|
|
+* Wed Mar 8 2006 Jose Pedro Oliveira <jpo at di.uminho.pt> - 2.32-1
|
|
|
|
+- Update to 2.32.
|
|
|
|
+
|
|
|
|
+* Tue Feb 21 2006 Jose Pedro Oliveira <jpo at di.uminho.pt> - 2.31-1
|
|
|
|
+- Update to 2.31.
|
|
|
|
+
|
|
|
|
+* Wed Feb 15 2006 Jose Pedro Oliveira <jpo at di.uminho.pt> - 2.30-3
|
|
|
|
+- Missing BR: fontconfig-devel.
|
|
|
|
+
|
|
|
|
+* Mon Feb 13 2006 Jose Pedro Oliveira <jpo at di.uminho.pt> - 2.30-2
|
|
|
|
+- Modular X (libX11-devel, libXpm-devel).
|
|
|
|
+
|
|
|
|
+* Fri Oct 21 2005 Jose Pedro Oliveira <jpo at di.uminho.pt> - 2.30-1
|
|
|
|
+- Update to 2.30.
|
|
|
|
+
|
|
|
|
+* Mon Aug 8 2005 Jose Pedro Oliveira <jpo at di.uminho.pt> - 2.28-1
|
|
|
|
+- Update to 2.28.
|
|
|
|
+
|
|
|
|
+* Tue Jul 19 2005 Jose Pedro Oliveira <jpo at di.uminho.pt> - 2.25-1
|
|
|
|
+- Update to 2.25.
|
|
|
|
+
|
|
|
|
+* Fri Apr 7 2005 Michael Schwendt <mschwendt[AT]users.sf.net> - 2.23-2
|
|
|
|
+- rebuilt
|
|
|
|
+
|
|
|
|
+* Wed Mar 9 2005 Jose Pedro Oliveira <jpo at di.uminho.pt> - 2.23-1
|
|
|
|
+- Update to 2.23.
|
|
|
|
+
|
|
|
|
+* Thu Dec 09 2004 Jose Pedro Oliveira <jpo at di.uminho.pt> - 0:2.19-1
|
|
|
|
+- Update to 2.19.
|
|
|
|
+- GIF support has been restored in gd 2.0.28.
|
|
|
|
+- Module autoconfigures itself with the gdlib-config program.
|
|
|
|
|
|
-* Sat Sep 20 2008 Shu KONNO <owa@bg.wakwak.com> 2.35-1vl5
|
|
|
|
-- applied new versioning policy, spec in utf-8
|
|
|
|
-- built with perl-5.10.0
|
|
|
|
|
|
+* Mon Jun 28 2004 Jose Pedro Oliveira <jpo at di.uminho.pt> - 0:2.12-0.fdr.3
|
|
|
|
+- Avoid RPATH problem in FC1 (bug 1756).
|
|
|
|
+- Replaced hardcoded value by rpmmacro (%%{__perl}) (bug 1756).
|
|
|
|
|
|
-* Sun Sep 3 2006 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 2.35-0vl1
|
|
|
|
-- new upstream release
|
|
|
|
-- changed Group to Development/Libraries
|
|
|
|
|
|
+* Mon Jun 14 2004 Jose Pedro Oliveira <jpo at di.uminho.pt> - 0:2.12-0.fdr.2
|
|
|
|
+- Bring up to date with current fedora.us perl spec template.
|
|
|
|
|
|
-* Sat Sep 17 2005 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 2.28-0vl1
|
|
|
|
-- new upstream release
|
|
|
|
-- added Japanese summary
|
|
|
|
|
|
+* Sat Feb 7 2004 Ville Skyttä <ville.skytta at iki.fi> - 0:2.12-0.fdr.1
|
|
|
|
+- Update to 2.12.
|
|
|
|
+- Reduce directory ownership bloat.
|
|
|
|
|
|
-* Sun Jan 2 2005 IWAI, Masaharu <iwai@alib.jp> 2.19-0vl1
|
|
|
|
-- new upstream release
|
|
|
|
-- update {Build,}Requires
|
|
|
|
|
|
+* Tue Nov 18 2003 Ville Skyttä <ville.skytta at iki.fi> - 0:2.11-0.fdr.1
|
|
|
|
+- Update to 2.11.
|
|
|
|
|
|
-* Tue Nov 11 2003 IWAI, Masaharu <iwai@alib.jp> 2.11-0vl1
|
|
|
|
-- initial build
|
|
|
|
|
|
+* Sat Oct 11 2003 Ville Skyttä <ville.skytta at iki.fi> - 0:1.41-0.fdr.1
|
|
|
|
+- First build.
|