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