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