[521] | 1 | %define build_compat32 %{?_with_compat32:1}%{!?_with_compat32:0} |
---|
| 2 | Summary: A graphics library for drawing .png files. |
---|
| 3 | Summary(ja): PNGイメージファイルを描写するためのグラフィックライブラリ |
---|
| 4 | Name: gd |
---|
| 5 | Version: 2.0.35 |
---|
| 6 | Release: 5%{_dist_release} |
---|
| 7 | Source0: http://www.libgd.org/releases/gd-%{version}.tar.bz2 |
---|
| 8 | Patch1: gd-2.0.35-overflow.patch |
---|
| 9 | Patch2: gd-2.0.35-CVE-2009-3546.diff |
---|
| 10 | License: BSD-style |
---|
| 11 | URL: http://www.libgd.org/ |
---|
| 12 | Group: System Environment/Libraries |
---|
| 13 | |
---|
| 14 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
---|
| 15 | BuildRequires: libjpeg-devel zlib-devel freetype2-devel |
---|
| 16 | BuildRequires: libpng-devel >= 2:1.2.5 |
---|
| 17 | BuildRequires: libX11-devel libXpm-devel |
---|
| 18 | |
---|
| 19 | Vendor: Project Vine |
---|
| 20 | Distribution: Vine Linux |
---|
| 21 | |
---|
| 22 | %description |
---|
| 23 | Gd is a graphics library for drawing .png files. Gd allows your code to |
---|
| 24 | quickly draw images (lines, arcs, text, multiple colors, cutting and |
---|
| 25 | pasting from other images, flood fills) and write out the result as a |
---|
| 26 | .png file. Gd is particularly useful in web applications, where .pngs |
---|
| 27 | are commonly used as inline images. Note, however, that gd is not a |
---|
| 28 | paint program. |
---|
| 29 | |
---|
| 30 | Install gd if you are developing applications which need to draw .png |
---|
| 31 | files. If you install gd, you'll also need to install the gd-devel |
---|
| 32 | package. |
---|
| 33 | |
---|
| 34 | %description -l ja |
---|
| 35 | GdはPNGファイルを描写するためのグラフックライブラリです。 Gdを使って、 |
---|
| 36 | 画像(線や弧, テキスト, カラー, 他の画像からのカット&ペースト等々)を |
---|
| 37 | 簡単に描写して、PNGファイルへ結果を出力することができます。 |
---|
| 38 | Gdは特に、一般にPNG画像を埋め込む必要のあるウェブアプリケーションで |
---|
| 39 | 便利です。ただし、注意して欲しいのは, Gdはペイントツールではありませ |
---|
| 40 | ん。 |
---|
| 41 | |
---|
| 42 | PNGファイルを描写する必要のあるアプリケーションを開発する場合、 |
---|
| 43 | Gdをインストールしてください。gdをインストールした場合、gd-devel |
---|
| 44 | パッケージも必要になります。 |
---|
| 45 | |
---|
| 46 | %package progs |
---|
| 47 | Summary: Utility programs that use libgd. |
---|
| 48 | Summary(ja): libgd を用いたユーティリティプログラム |
---|
| 49 | Group: Applications/Graphics |
---|
| 50 | Requires: gd = %{version}, perl |
---|
| 51 | |
---|
| 52 | %description progs |
---|
| 53 | These are utility programs supplied with gd, the .png graphics library. |
---|
| 54 | If you install these, you must install gd. |
---|
| 55 | |
---|
| 56 | %description progs -l ja |
---|
| 57 | これは PNG グラフィックライブラリ gd によって提供されるユーティリティ |
---|
| 58 | プログラムです。これをインストールするには, gdをインストールする必要 |
---|
| 59 | があります。 |
---|
| 60 | |
---|
| 61 | %package devel |
---|
| 62 | Requires: gd = %{version} |
---|
| 63 | Summary: The development libraries and header files for gd. |
---|
| 64 | Summary(ja): gd用の開発ライブラリとヘッダファイル |
---|
| 65 | Group: Development/Libraries |
---|
| 66 | |
---|
| 67 | %description devel |
---|
| 68 | These are the development libraries and header files for gd, the .png |
---|
| 69 | graphics library. |
---|
| 70 | |
---|
| 71 | If you're installing the gd graphics library, you must install gd-devel. |
---|
| 72 | |
---|
| 73 | %description devel -l ja |
---|
| 74 | これらは開発ライブラリです。 |
---|
| 75 | PNGグラフィックライブラリ gd 用の開発ライブラリおよびヘッダファイル |
---|
| 76 | です。 |
---|
| 77 | |
---|
| 78 | gdをインストールした場合、gd-develパッケージも必要になります。 |
---|
| 79 | |
---|
| 80 | |
---|
| 81 | ## to build compat32 for x86_64 architecture support |
---|
| 82 | %package -n compat32-%{name} |
---|
| 83 | Summary: A graphics library for drawing .png files. |
---|
| 84 | Group: System Environment/Libraries |
---|
| 85 | %description -n compat32-%{name} |
---|
| 86 | Gd is a graphics library for drawing .png files. Gd allows your code to |
---|
| 87 | quickly draw images (lines, arcs, text, multiple colors, cutting and |
---|
| 88 | pasting from other images, flood fills) and write out the result as a |
---|
| 89 | .png file. Gd is particularly useful in web applications, where .pngs |
---|
| 90 | are commonly used as inline images. Note, however, that gd is not a |
---|
| 91 | paint program. |
---|
| 92 | |
---|
| 93 | Install gd if you are developing applications which need to draw .png |
---|
| 94 | files. If you install gd, you'll also need to install the gd-devel |
---|
| 95 | package. |
---|
| 96 | |
---|
| 97 | %package -n compat32-%{name}-devel |
---|
| 98 | Summary: The development libraries and header files for gd. |
---|
| 99 | Group: Development/Libraries |
---|
| 100 | %description -n compat32-%{name}-devel |
---|
| 101 | These are the development libraries and header files for gd, the .png |
---|
| 102 | graphics library. |
---|
| 103 | |
---|
| 104 | If you're installing the gd graphics library, you must install gd-devel. |
---|
| 105 | |
---|
| 106 | |
---|
| 107 | %prep |
---|
| 108 | %setup -q |
---|
| 109 | %patch1 -p1 -b .overflow |
---|
| 110 | %patch2 -p0 -b .CVE-2009-3546 |
---|
| 111 | |
---|
| 112 | %build |
---|
| 113 | # %if %{build_compat32} |
---|
| 114 | # export CC='gcc -m32' |
---|
| 115 | # %configure CPPFLAGS="-DJISX0208" |
---|
| 116 | # make %{?_smp_mflags} LDFLAGS='-L/usr/lib -Wl,-rpath,/usr/lib -L/usr/X11R6/lib' |
---|
| 117 | # %else |
---|
| 118 | %configure CPPFLAGS="-DJISX0208" |
---|
| 119 | make %{?_smp_mflags} |
---|
| 120 | # %endif |
---|
| 121 | |
---|
| 122 | %install |
---|
| 123 | [ "$RPM_BUILD_ROOT" != "/" ] && rm -fr $RPM_BUILD_ROOT |
---|
| 124 | make DESTDIR=$RPM_BUILD_ROOT install |
---|
| 125 | ## remove unuse files |
---|
| 126 | rm -rf $RPM_BUILD_ROOT%{_libdir}/*.la |
---|
| 127 | |
---|
| 128 | %clean |
---|
| 129 | [ "$RPM_BUILD_ROOT" != "/" ] && rm -fr $RPM_BUILD_ROOT |
---|
| 130 | |
---|
| 131 | %post -p /sbin/ldconfig |
---|
| 132 | %postun -p /sbin/ldconfig |
---|
| 133 | |
---|
| 134 | %if %{build_compat32} |
---|
| 135 | %post -n compat32-%{name} -p /sbin/ldconfig |
---|
| 136 | %postun -n compat32-%{name} -p /sbin/ldconfig |
---|
| 137 | %endif |
---|
| 138 | |
---|
| 139 | # %if !%{build_compat32} |
---|
| 140 | %files |
---|
| 141 | %defattr(-,root,root) |
---|
| 142 | %doc COPYING README* |
---|
| 143 | %{_libdir}/*.so.* |
---|
| 144 | |
---|
| 145 | %files progs |
---|
| 146 | %defattr(-,root,root) |
---|
| 147 | %{_bindir}/* |
---|
| 148 | |
---|
| 149 | %files devel |
---|
| 150 | %defattr(-,root,root) |
---|
| 151 | %{_includedir}/* |
---|
| 152 | %{_libdir}/*.so |
---|
| 153 | %{_libdir}/*.a |
---|
| 154 | #%{_libdir}/*.la |
---|
| 155 | # %endif |
---|
| 156 | |
---|
| 157 | %if %{build_compat32} |
---|
| 158 | %files -n compat32-%{name} |
---|
| 159 | %defattr(-,root,root) |
---|
| 160 | %{_libdir}/*.so.* |
---|
| 161 | %files -n compat32-%{name}-devel |
---|
| 162 | %defattr(-,root,root) |
---|
| 163 | %{_libdir}/*.so |
---|
| 164 | %{_libdir}/*.a |
---|
| 165 | #%{_libdir}/*.la |
---|
| 166 | %endif |
---|
| 167 | |
---|
| 168 | %changelog |
---|
| 169 | * Tue Nov 3 2009 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 2.0.35-5 |
---|
| 170 | - fix build_compat32 if-endif sections |
---|
| 171 | |
---|
| 172 | * Sat Oct 31 2009 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 2.0.35-4 |
---|
| 173 | - add patch2 for fix CVE-2009-3546 (_gdGetColors()) |
---|
| 174 | |
---|
| 175 | * Wed Apr 8 2009 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 2.0.35-3 |
---|
| 176 | - updated URL |
---|
| 177 | - changed progs Group to Applications/Graphics |
---|
| 178 | - added %%postun section |
---|
| 179 | |
---|
| 180 | * Fri Sep 26 2008 Shu KONNO <owa@bg.wakwak.com> 2.0.35-2 |
---|
| 181 | - removed *.la |
---|
| 182 | - spec in utf-8 |
---|
| 183 | |
---|
| 184 | * Sat Apr 05 2008 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 2.0.35-1 |
---|
| 185 | - add patch1 from centos5 |
---|
| 186 | - new versioning policy |
---|
| 187 | |
---|
| 188 | * Wed Feb 14 2007 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 2.0.35-0vl1 |
---|
| 189 | - new upstream release with security fix (CVE-2007-2756) |
---|
| 190 | |
---|
| 191 | * Wed Feb 14 2007 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 2.0.34-0vl1 |
---|
| 192 | - new upstream release with security fix |
---|
| 193 | - change source tarball format gz -> bz2 |
---|
| 194 | |
---|
| 195 | * Fri Mar 17 2006 Shu KONNO <owa@bg.wakwak.com> 2.0.33-0vl2 |
---|
| 196 | - added compat32-* packages for x86_64 architecture support |
---|
| 197 | |
---|
| 198 | * Sat Nov 6 2004 AKIYAMA Kazuhito <akiyama@yb3.so-net.ne.jp> 2.0.33-0vl1 |
---|
| 199 | - source upgrade |
---|
| 200 | |
---|
| 201 | * Wed Jul 14 2004 KOBAYASHI R. Taizo <tkoba@vinelinux.org> 2.0.27-0vl1 |
---|
| 202 | - source update |
---|
| 203 | - added -DJISX0208 flag |
---|
| 204 | |
---|
| 205 | * Thu Jun 17 2004 AKIYAMA Kazuhito <akiyama@yb3.so-net.ne.jp> 2.0.26-0vl1 |
---|
| 206 | - source upgrade |
---|
| 207 | - BuildPrereq: XOrg-devel instead of XFree86-devel |
---|
| 208 | |
---|
| 209 | * Wed Mar 31 2004 AKIYAMA Kazuhito <akiyama@yb3.so-net.ne.jp> 2.0.22-0vl1 |
---|
| 210 | - source upgrade |
---|
| 211 | - remove patch0 (no need for freetype2-2.1.7) |
---|
| 212 | |
---|
| 213 | * Wed Nov 19 2003 AKIYAMA Kazuhito <akiyama@yb3.so-net.ne.jp> 2.0.15-0vl2 |
---|
| 214 | - add patch0 to build against freetype2-2.1.7 |
---|
| 215 | |
---|
| 216 | * Sat Jun 7 2003 AKIYAMA Kazuhito <akiyama@yb3.so-net.ne.jp> 2.0.15-0vl1 |
---|
| 217 | - source upgrade |
---|
| 218 | - add URL |
---|
| 219 | - remove all patches |
---|
| 220 | - use %%configure script |
---|
| 221 | - add BuildPrereq: freetype2-devel XFree86-devel |
---|
| 222 | - remove BuildPrereq: VFlib-devel |
---|
| 223 | - update %%files |
---|
| 224 | - update Requires: |
---|
| 225 | - use License tag instead of Copyright |
---|
| 226 | |
---|
| 227 | * Fri Apr 18 2003 AKIYAMA Kazuhito <akiyama@yb3.so-net.ne.jp> 1.8.3-0vl4 |
---|
| 228 | - rebuild with libpng-devel-1.2.5-0vl1 |
---|
| 229 | |
---|
| 230 | * Sun Apr 13 2003 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.8.3-0vl3 |
---|
| 231 | - rebuild with new toolchain |
---|
| 232 | |
---|
| 233 | * Sat Sep 02 2000 MATSUBAYASHI 'Shaolin' Kohji <shaolin@rhythmaning.org> |
---|
| 234 | - 1.8.3-0vl2 |
---|
| 235 | - symlink to libgd.so.1 (for backward compatibility) |
---|
| 236 | |
---|
| 237 | * Mon Jun 6 2000 Yasuyuki Furukawa <furukawa@vinelinux.org> |
---|
| 238 | - first gd 1.8.x release for Vine from rawhide. |
---|
| 239 | - enable freetype support and defined JISX208 macro. |
---|
| 240 | |
---|
| 241 | * Mon May 22 2000 Nalin Dahyabhai <nalin@redhat.com> |
---|
| 242 | - break out a -progs subpackage |
---|
| 243 | - disable freetype support |
---|
| 244 | |
---|
| 245 | * Fri May 19 2000 Nalin Dahyabhai <nalin@redhat.com> |
---|
| 246 | - update to latest version (1.8.2) |
---|
| 247 | - disable xpm support |
---|
| 248 | |
---|
| 249 | * Thu Feb 03 2000 Nalin Dahyabhai <nalin@redhat.com> |
---|
| 250 | - auto rebuild in the new build environment (release 6) |
---|
| 251 | |
---|
| 252 | * Sun Mar 21 1999 Cristian Gafton <gafton@redhat.com> |
---|
| 253 | - auto rebuild in the new build environment (release 5) |
---|
| 254 | |
---|
| 255 | * Thu Dec 17 1998 Cristian Gafton <gafton@redhat.com> |
---|
| 256 | - buiuld for glibc 2.1 |
---|
| 257 | |
---|
| 258 | * Fri Sep 11 1998 Cristian Gafton <gafton@redhat.com> |
---|
| 259 | - built for 5.2 |
---|