[521] | 1 | %define perl_vendorarch %(eval "`perl -V:installvendorarch`"; echo $installvendorarch) |
---|
| 2 | |
---|
| 3 | Summary: A perl5 interface to Thomas Boutell's gd library |
---|
| 4 | Summary(ja): GD ライブラリの Perl 用インターフェイス |
---|
| 5 | Name: perl-GD |
---|
| 6 | Version: 2.35 |
---|
[3736] | 7 | Release: 2%{?_dist_release} |
---|
[521] | 8 | License: distributable |
---|
| 9 | Group: Development/Libraries |
---|
| 10 | Source0: http://search.cpan.org/CPAN/authors/id/L/LD/LDS/GD-%{version}.tar.gz |
---|
| 11 | Url: http://search.cpan.org/dist/GD/ |
---|
| 12 | BuildRoot: %{_tmppath}/perl-GD-buildroot/ |
---|
| 13 | BuildRequires: perl >= 5.6.0, gd-devel >= 2.0.20, libjpeg-devel |
---|
| 14 | BuildRequires: freetype2-devel, libpng-devel, zlib-devel |
---|
[3736] | 15 | BuildRequires: libX11-devel |
---|
| 16 | BuildRequires: libXpm-devel |
---|
[521] | 17 | Requires: perl >= 5.6.0, gd >= 2.0.12, libjpeg, freetype2 |
---|
| 18 | Requires: libpng, zlib |
---|
| 19 | |
---|
| 20 | %description |
---|
| 21 | This is a autoloadable interface module for libgd, a popular library |
---|
| 22 | for creating and manipulating PNG files. With this library you can |
---|
| 23 | create PNG images on the fly or modify existing files. Features |
---|
| 24 | include: |
---|
| 25 | |
---|
| 26 | a. lines, polygons, rectangles and arcs, both filled and unfilled |
---|
| 27 | b. flood fills |
---|
| 28 | c. the use of arbitrary images as brushes and as tiled fill patterns |
---|
| 29 | d. line styling (dashed lines and the like) |
---|
| 30 | e. horizontal and vertical text rendering |
---|
| 31 | f. support for transparency and interlacing |
---|
| 32 | |
---|
| 33 | For full information on usage, see the accompanying man and html |
---|
| 34 | documentation. |
---|
| 35 | |
---|
| 36 | # Provide perl-specific find-{provides,requires}. |
---|
| 37 | %define __find_provides /usr/lib/rpm/find-provides.perl |
---|
| 38 | %define __find_requires /usr/lib/rpm/find-requires.perl |
---|
| 39 | |
---|
| 40 | %prep |
---|
| 41 | %setup -q -n GD-%{version} |
---|
| 42 | |
---|
| 43 | %build |
---|
| 44 | CFLAGS="$RPM_OPT_FLAGS" \ |
---|
| 45 | perl Makefile.PL --lib_gd_path=%{_libdir} INSTALLDIRS="vendor" << _OPT_ |
---|
| 46 | y |
---|
| 47 | _OPT_ |
---|
| 48 | make |
---|
| 49 | make test |
---|
| 50 | |
---|
| 51 | %clean |
---|
| 52 | rm -rf %{buildroot} |
---|
| 53 | |
---|
| 54 | %install |
---|
| 55 | rm -rf %{buildroot} |
---|
| 56 | make DESTDIR=%{buildroot} install |
---|
| 57 | |
---|
| 58 | [ -x /usr/lib/rpm/brp-compress ] && /usr/lib/rpm/brp-compress |
---|
| 59 | |
---|
| 60 | find %{buildroot}%{_prefix} -type f -print | |
---|
| 61 | sed "s@^%{buildroot}@@g" | |
---|
| 62 | grep -v perllocal.pod | |
---|
| 63 | grep -v "\.packlist" > %{name}-filelist |
---|
| 64 | if [ "$(cat %{name}-filelist)X" = "X" ] ; then |
---|
| 65 | echo "ERROR: EMPTY FILE LIST" |
---|
| 66 | exit -1 |
---|
| 67 | fi |
---|
| 68 | |
---|
| 69 | find demos -type f | xargs perl -pi -e "s|^#!(\s)?/usr/local/bin/perl|#!/usr/bin/perl|g" |
---|
| 70 | find bdf_scripts -type f | xargs perl -pi -e "s|^#!(\s)?/usr/local/bin/perl|#!/usr/bin/perl|g" |
---|
| 71 | |
---|
| 72 | %files -f %{name}-filelist |
---|
| 73 | %defattr(-,root,root) |
---|
| 74 | %doc ChangeLog README* demos bdf_scripts |
---|
| 75 | %dir %{perl_vendorarch}/GD |
---|
| 76 | %dir %{perl_vendorarch}/auto/GD |
---|
| 77 | |
---|
| 78 | %changelog |
---|
[3736] | 79 | * Sat Apr 30 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.35-2 |
---|
| 80 | - rebuild with perl-5.12.3 |
---|
| 81 | - add BuildRequires: libX11-devel, libXpm-devel |
---|
| 82 | |
---|
[521] | 83 | * Sat Sep 20 2008 Shu KONNO <owa@bg.wakwak.com> 2.35-1vl5 |
---|
| 84 | - applied new versioning policy, spec in utf-8 |
---|
| 85 | - built with perl-5.10.0 |
---|
| 86 | |
---|
| 87 | * Sun Sep 3 2006 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 2.35-0vl1 |
---|
| 88 | - new upstream release |
---|
| 89 | - changed Group to Development/Libraries |
---|
| 90 | |
---|
| 91 | * Sat Sep 17 2005 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 2.28-0vl1 |
---|
| 92 | - new upstream release |
---|
| 93 | - added Japanese summary |
---|
| 94 | |
---|
| 95 | * Sun Jan 2 2005 IWAI, Masaharu <iwai@alib.jp> 2.19-0vl1 |
---|
| 96 | - new upstream release |
---|
| 97 | - update {Build,}Requires |
---|
| 98 | |
---|
| 99 | * Tue Nov 11 2003 IWAI, Masaharu <iwai@alib.jp> 2.11-0vl1 |
---|
| 100 | - initial build |
---|