123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338 |
- %bcond_with libvpx
- %define build_compat32 %{?_with_compat32:1}%{!?_with_compat32:0}
- Summary: A graphics library for drawing .png files.
- Summary(ja): PNGイメージファイルを描写するためのグラフィックライブラリ
- Name: gd
- Version: 2.1.0
- Release: 2%{_dist_release}
- Source0: https://bitbucket.org/libgd/gd-libgd/downloads/libgd-%{version}.tar.xz
- Patch0: gd-2.1.0-multilib.patch
- Patch1: gd-fixautoconf.patch
- Patch100: gd-2.1.0-fonts-vine.patch
- License: BSD-style
- URL: http://www.libgd.org/
- Group: System Environment/Libraries
- BuildRoot: %{_tmppath}/%{name}-%{version}-root
- BuildRequires: freetype2-devel
- BuildRequires: fontconfig-devel
- BuildRequires: gettext-devel
- BuildRequires: libjpeg-turbo-devel
- BuildRequires: libpng-devel
- BuildRequires: libtiff-devel
- %if %{with libvpx}
- BuildRequires: libvpx-devel
- %endif
- BuildRequires: libX11-devel
- BuildRequires: libXpm-devel
- BuildRequires: zlib-devel
- BuildRequires: pkgconfig
- Vendor: Project Vine
- Distribution: Vine Linux
- Packager: daisuke
- %description
- Gd is a graphics library for drawing .png files. Gd allows your code to
- quickly draw images (lines, arcs, text, multiple colors, cutting and
- pasting from other images, flood fills) and write out the result as a
- .png file. Gd is particularly useful in web applications, where .pngs
- are commonly used as inline images. Note, however, that gd is not a
- paint program.
- Install gd if you are developing applications which need to draw .png
- files. If you install gd, you'll also need to install the gd-devel
- package.
- %description -l ja
- GdはPNGファイルを描写するためのグラフックライブラリです。 Gdを使って、
- 画像(線や弧, テキスト, カラー, 他の画像からのカット&ペースト等々)を
- 簡単に描写して、PNGファイルへ結果を出力することができます。
- Gdは特に、一般にPNG画像を埋め込む必要のあるウェブアプリケーションで
- 便利です。ただし、注意して欲しいのは, Gdはペイントツールではありませ
- ん。
- PNGファイルを描写する必要のあるアプリケーションを開発する場合、
- Gdをインストールしてください。gdをインストールした場合、gd-devel
- パッケージも必要になります。
- %package progs
- Summary: Utility programs that use libgd.
- Summary(ja): libgd を用いたユーティリティプログラム
- Group: Applications/Graphics
- Requires: gd = %{version}, perl
- %description progs
- These are utility programs supplied with gd, the .png graphics library.
- If you install these, you must install gd.
- %description progs -l ja
- これは PNG グラフィックライブラリ gd によって提供されるユーティリティ
- プログラムです。これをインストールするには, gdをインストールする必要
- があります。
- %package devel
- Summary: The development libraries and header files for gd.
- Summary(ja): gd用の開発ライブラリとヘッダファイル
- Group: Development/Libraries
- Requires: gd = %{version}
- Requires: freetype-devel
- Requires: fontconfig-devel
- Requires: libjpeg-turbo-devel
- Requires: libpng-devel
- Requires: libtiff-devel
- %if %{with libvpx}
- Requires: libvpx-devel
- %endif
- Requires: libX11-devel
- Requires: libXpm-devel
- Requires: zlib-devel
- %description devel
- These are the development libraries and header files for gd, the .png
- graphics library.
- If you're installing the gd graphics library, you must install gd-devel.
- %description devel -l ja
- これらは開発ライブラリです。
- PNGグラフィックライブラリ gd 用の開発ライブラリおよびヘッダファイル
- です。
- gdをインストールした場合、gd-develパッケージも必要になります。
- ## to build compat32 for x86_64 architecture support
- %package -n compat32-%{name}
- Summary: A graphics library for drawing .png files.
- Group: System Environment/Libraries
- %description -n compat32-%{name}
- Gd is a graphics library for drawing .png files. Gd allows your code to
- quickly draw images (lines, arcs, text, multiple colors, cutting and
- pasting from other images, flood fills) and write out the result as a
- .png file. Gd is particularly useful in web applications, where .pngs
- are commonly used as inline images. Note, however, that gd is not a
- paint program.
- Install gd if you are developing applications which need to draw .png
- files. If you install gd, you'll also need to install the gd-devel
- package.
- %package -n compat32-%{name}-devel
- Summary: The development libraries and header files for gd.
- Group: Development/Libraries
- Requires: compat32-freetype-devel
- Requires: compat32-fontconfig-devel
- Requires: compat32-libjpeg-turbo-devel
- Requires: compat32-libpng-devel
- Requires: compat32-libtiff-devel
- %if %{with libvpx}
- Requires: compat32-libvpx-devel
- %endif
- Requires: compat32-libX11-devel
- Requires: compat32-libXpm-devel
- Requires: compat32-zlib-devel
- %description -n compat32-%{name}-devel
- These are the development libraries and header files for gd, the .png
- graphics library.
- If you're installing the gd graphics library, you must install gd-devel.
- %prep
- %setup -q -n libgd-%{version}
- %patch0 -p1 -b .mlib
- %patch1 -p1 -b .automake
- %patch100 -p1 -b .fonts-vine
- # https://bitbucket.org/libgd/gd-libgd/issue/77
- sed -e '/GD_VERSION_STRING/s/-alpha//' \
- -e '/GD_EXTRA_VERSION/s/alpha//' \
- -i src/gd.h
- grep VERSION src/gd.h
- : regenerate autotool stuff
- if [ -f configure ]; then
- libtoolize --copy --force
- autoreconf -vif
- else
- ./bootstrap.sh
- fi
- %build
- # Provide a correct default font search path
- CFLAGS="$RPM_OPT_FLAGS -DDEFAULT_FONTPATH='\"\
- /usr/share/fonts/TrueType-vlgothic:\
- /usr/share/fonts/bitstream-vera:\
- /usr/share/fonts/dejavu:\
- /usr/share/fonts/default/Type1:\
- /usr/share/X11/fonts/Type1:\
- /usr/share/fonts/liberation\"'"
- %configure CPPFLAGS="-DHAVE_ICONV -DHAVE_STDARG_H -DHAVE_ERRNO_H" \
- --with-tiff=%{_prefix} \
- %if %{with libvpx}
- --with-vpx=%{_prefix} \
- %endif
- --disable-rpath
- make %{?_smp_mflags}
- %install
- [ "$RPM_BUILD_ROOT" != "/" ] && rm -fr $RPM_BUILD_ROOT
- make DESTDIR=$RPM_BUILD_ROOT install
- ## remove unuse files
- rm -rf $RPM_BUILD_ROOT%{_libdir}/*.{a,la}
- %clean
- [ "$RPM_BUILD_ROOT" != "/" ] && rm -fr $RPM_BUILD_ROOT
- %post -p /sbin/ldconfig
- %postun -p /sbin/ldconfig
- %if %{build_compat32}
- %post -n compat32-%{name} -p /sbin/ldconfig
- %postun -n compat32-%{name} -p /sbin/ldconfig
- %endif
- %files
- %defattr(-,root,root)
- %doc ChangeLog COPYING NEWS docs/*
- %{_libdir}/*.so.*
- %files progs
- %defattr(-,root,root)
- %{_bindir}/*
- %exclude %{_bindir}/gdlib-config
- %files devel
- %defattr(-,root,root)
- %{_bindir}/gdlib-config
- %{_includedir}/*
- %{_libdir}/*.so
- %{_libdir}/pkgconfig/*.pc
- %if %{build_compat32}
- %files -n compat32-%{name}
- %defattr(-,root,root)
- %{_libdir}/*.so.*
- %files -n compat32-%{name}-devel
- %defattr(-,root,root)
- %{_libdir}/*.so
- %endif
- %changelog
- * Mon Jun 23 2014 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 2.1.0-2
- - fixed version in gd.h.
- - added fontconfig and tiff support.
- * Wed Oct 02 2013 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 2.1.0-1
- - new upstream release.
- - dropped unnecessary patches.
- * Tue Feb 19 2013 Daisuke SUZUKI <daisuke@linux.or.jp> 2.0.35-8
- - import patches from fedora package
- - modified font path patch for Vine Linux
- - drop static library
- - remove "-DJISX0208"
- - add "-DHAVE_ICONV -DHAVE_STDARG_H -DHAVE_ERRNO_H""
- * Fri Mar 09 2012 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 2.0.35-7
- - move gdlib-config from gd-progs subpackage to gd-devel subpackage
- * Thu Apr 14 2011 IWAI, Masaharu <iwai@alib.jp> 2.0.35-6
- - build on current VineSeed
- * Tue Nov 3 2009 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 2.0.35-5
- - fix build_compat32 if-endif sections
- * Sat Oct 31 2009 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 2.0.35-4
- - add patch2 for fix CVE-2009-3546 (_gdGetColors())
- * Wed Apr 8 2009 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 2.0.35-3
- - updated URL
- - changed progs Group to Applications/Graphics
- - added %%postun section
- * Fri Sep 26 2008 Shu KONNO <owa@bg.wakwak.com> 2.0.35-2
- - removed *.la
- - spec in utf-8
- * Sat Apr 05 2008 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 2.0.35-1
- - add patch1 from centos5
- - new versioning policy
- * Wed Feb 14 2007 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 2.0.35-0vl1
- - new upstream release with security fix (CVE-2007-2756)
- * Wed Feb 14 2007 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 2.0.34-0vl1
- - new upstream release with security fix
- - change source tarball format gz -> bz2
- * Fri Mar 17 2006 Shu KONNO <owa@bg.wakwak.com> 2.0.33-0vl2
- - added compat32-* packages for x86_64 architecture support
- * Sat Nov 6 2004 AKIYAMA Kazuhito <akiyama@yb3.so-net.ne.jp> 2.0.33-0vl1
- - source upgrade
- * Wed Jul 14 2004 KOBAYASHI R. Taizo <tkoba@vinelinux.org> 2.0.27-0vl1
- - source update
- - added -DJISX0208 flag
- * Thu Jun 17 2004 AKIYAMA Kazuhito <akiyama@yb3.so-net.ne.jp> 2.0.26-0vl1
- - source upgrade
- - BuildPrereq: XOrg-devel instead of XFree86-devel
- * Wed Mar 31 2004 AKIYAMA Kazuhito <akiyama@yb3.so-net.ne.jp> 2.0.22-0vl1
- - source upgrade
- - remove patch0 (no need for freetype2-2.1.7)
- * Wed Nov 19 2003 AKIYAMA Kazuhito <akiyama@yb3.so-net.ne.jp> 2.0.15-0vl2
- - add patch0 to build against freetype2-2.1.7
- * Sat Jun 7 2003 AKIYAMA Kazuhito <akiyama@yb3.so-net.ne.jp> 2.0.15-0vl1
- - source upgrade
- - add URL
- - remove all patches
- - use %%configure script
- - add BuildPrereq: freetype2-devel XFree86-devel
- - remove BuildPrereq: VFlib-devel
- - update %%files
- - update Requires:
- - use License tag instead of Copyright
- * Fri Apr 18 2003 AKIYAMA Kazuhito <akiyama@yb3.so-net.ne.jp> 1.8.3-0vl4
- - rebuild with libpng-devel-1.2.5-0vl1
- * Sun Apr 13 2003 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.8.3-0vl3
- - rebuild with new toolchain
- * Sat Sep 02 2000 MATSUBAYASHI 'Shaolin' Kohji <shaolin@rhythmaning.org>
- - 1.8.3-0vl2
- - symlink to libgd.so.1 (for backward compatibility)
- * Tue Jun 6 2000 Yasuyuki Furukawa <furukawa@vinelinux.org>
- - first gd 1.8.x release for Vine from rawhide.
- - enable freetype support and defined JISX208 macro.
- * Mon May 22 2000 Nalin Dahyabhai <nalin@redhat.com>
- - break out a -progs subpackage
- - disable freetype support
- * Fri May 19 2000 Nalin Dahyabhai <nalin@redhat.com>
- - update to latest version (1.8.2)
- - disable xpm support
- * Thu Feb 03 2000 Nalin Dahyabhai <nalin@redhat.com>
- - auto rebuild in the new build environment (release 6)
- * Sun Mar 21 1999 Cristian Gafton <gafton@redhat.com>
- - auto rebuild in the new build environment (release 5)
- * Thu Dec 17 1998 Cristian Gafton <gafton@redhat.com>
- - buiuld for glibc 2.1
- * Fri Sep 11 1998 Cristian Gafton <gafton@redhat.com>
- - built for 5.2
|