2 %bcond_without gif # without GIF support (patch from http://www.rhyme.com.au/gd/)
3 %bcond_without lzw # without LZW compression in GIF creation functions
4 %bcond_without xpm # without XPM support (requires X11 libs)
6 Summary: Library for PNG, JPEG creation
7 Summary(es): Biblioteca para manipulación de imágenes
8 Summary(pl): Biblioteka do tworzenia grafiki w formacie PNG, JPEG
9 Summary(pt_BR): Biblioteca para manipulação de imagens
15 Source0: http://www.boutell.com/gd/http/%{name}-%{version}.tar.gz
16 # Source0-md5: a1c0b12e69df63c22c7f90a4e8618c83
18 #Patch0: http://downloads.rhyme.com.au/gd/patch_gd2.0.15_gif_030801.gz
19 Patch0: %{name}-gif.patch
20 Patch1: %{name}-fontpath.patch
21 Patch2: %{name}-no_ldflags_in_gdlib-config.patch
22 Patch3: %{name}-FreeFontCache-alias.patch
23 URL: http://www.boutell.com/gd/
24 %{?with_xpm:BuildRequires: XFree86-devel}
25 %{!?with_xpm:BuildConflicts: XFree86-devel}
26 BuildRequires: autoconf >= 2.54
27 BuildRequires: automake
28 BuildRequires: freetype-devel >= 2.0
29 BuildRequires: libpng-devel
30 BuildRequires: libjpeg-devel
31 BuildRequires: libtiff-devel
32 BuildRequires: libtool >= 1:1.4.3
33 BuildRequires: zlib-devel
34 %{?with_gif:Provides: gd(gif) = %{version}}
35 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
38 gd is the image manipulating library. It was created to allow graphs,
39 charts and the like to be generated on the fly for use on the World
40 wide Web, but is useful for any application in which custom images are
41 useful. It is not a paint program; it is a library. gd library creates
42 PNG, JPEG and WBMP images. This is a good thing. PNG is a more compact
43 format, and full compression is available. JPEG works well with
44 photographic images, and is still more compatible with the major Web
45 browsers than even PNG is. WBMP is intended for wireless devices (not
46 regular web browsers).
47 %{?with_gif:This version has additional GIF images support.}
50 Esta es la biblioteca gd para el manejo de imágenes. Fue creada para
51 uso en la Web, creando gráficos automáticamente. Pero es útil para
52 cualquier programa que necesite de imágenes personalizados. No es un
53 programa de dibujo; es una biblioteca.
56 gd to biblioteka do obróbki obrazów. Zosta³a stworzona, aby umo¿liwiæ
57 dynamiczne generowanie wykresów i podobnych rzeczy na potrzeby WWW,
58 ale mo¿e byæ przydatna tak¿e dla ka¿dej aplikacji tworz±cej w³asne
59 obrazy. Biblioteka ta pozwala na tworzenie plików graficznych w
60 formatach PNG, JPEG i WBMP. PNG jest zwartym formatem z bezstratn±
61 kompresj±. JPEG dobrze nadaje siê do obrazów fotograficznych i jest
62 obs³ugiwany nawet przez wiêcej przegl±darek WWW ni¿ PNG. WBMP jest
63 przeznaczony dla urz±dzeñ bezprzewodowych (a nie zwyk³ych przegl±darek
65 %{?with_gif:Ta wersja ma dodatkowo obs³ugê formatu GIF.}
68 Esta é a biblioteca gd para manipulação de imagens. Ela foi criada
69 para uso na Web, gerando gráficos automaticamente. Mas é útil para
70 qualquer programa que precise de imagens personalizados. Não é um
71 programa de desenho; é uma biblioteca.
74 Summary: Development part of the GD library
75 Summary(es): Archivos de inclusión y bibliotecas para desarrollar programas usando gd
76 Summary(pl): Czê¶æ biblioteki GD przeznaczona dla developerów
77 Summary(pt_BR): Arquivos de inclusão e bibliotecas para desenvolver programas usando gd
78 Group: Development/Libraries
79 Requires: %{name} = %{version}
80 %{?with_xpm:Requires: XFree86-devel}
81 Requires: freetype-devel >= 2.0
82 Requires: libjpeg-devel
83 Requires: libpng-devel
85 %{?with_gif:Provides: gd-devel(gif) = %{version}-%{release}}
88 This package contains the files needed for development of programs
91 %description devel -l es
92 Este paquete contiene los archivos de inclusión y las bibliotecas
93 necesarias para desarrollar programas usando gd.
95 %description devel -l pl
96 Pakiet ten zawiera pliki potrzebne do rozwoju programów korzystaj±cych
99 %description devel -l pt_BR
100 Este pacote contém os arquivos de inclusão e as bibliotecas
101 necessárias para desenvolver programas usando gd.
104 Summary: Static GD library
105 Summary(pl): Statyczna biblioteka GD
106 Summary(pt_BR): Bibliotecas estáticas para desenvolvimento com libgd
107 Group: Development/Libraries
108 Requires: %{name}-devel = %{version}
109 %{?with_gif:Provides: gd-static(gif) = %{version}-%{release}}
112 This package contains static gd library.
114 %description static -l pl
115 Ten pakiet zawiera statyczn± bibliotekê gd.
117 %description static -l pt_BR
118 Este pacote contem bibliotecas estáticas para desenvolvimento com
122 Summary: Utility programs that use libgd
123 Summary(es): Programas utilitarios libgd
124 Summary(pl): Narzêdzia u¿ywaj±ce libgd
125 Summary(pt_BR): Programas utilitários libgd
126 Group: Applications/Graphics
127 Requires: %{name} = %{version}
128 %{?with_gif:Provides: gd-progs(gif) = %{version}-%{release}}
131 These are utility programs supplied with gd, the image manipulation
132 library. The libgd-progs package contains a group of scripts for
133 manipulating the graphics files in formats which are supported by the
136 %description progs -l pl
137 Ten pakiet zawiera programy u¿ywaj±ce biblioteki gd, s³u¿±ce do
138 obróbki plików graficznych w formatach obs³ugiwanych przez libgd.
140 %description progs -l pt_BR
141 Este pacote inclui vários utilitários para manipulação de arquivos gd
142 para uso pelos programas que usam a libgd.
146 %if 0%{!?_without_gif:1}
158 %{?with_lzw:CPPFLAGS="-DLZW_LICENCED"}
163 rm -rf $RPM_BUILD_ROOT
166 DESTDIR=$RPM_BUILD_ROOT
169 rm -rf $RPM_BUILD_ROOT
171 %post -p /sbin/ldconfig
172 %postun -p /sbin/ldconfig
175 %defattr(644,root,root,755)
176 %doc COPYING index.html
177 %attr(755,root,root) %{_libdir}/*.so.*.*
180 %defattr(644,root,root,755)
181 %attr(755,root,root) %{_bindir}/gdlib-config
182 %attr(755,root,root) %{_libdir}/*.so
187 %defattr(644,root,root,755)
191 %defattr(644,root,root,755)
192 %attr(755,root,root) %{_bindir}/[!g]*
193 %{!?_without_gif:%attr(755,root,root) %{_bindir}/gif*}
194 %attr(755,root,root) %{_bindir}/gd[!l]*