2 # _without_gif - without GIF support (patch from http://www.rhyme.com.au/gd/)
3 # _without_lzw - without LZW compression in GIF creation functions
4 # _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: de82080fbac781cfcd512c3c299066d7
17 Patch0: http://downloads.rhyme.com.au/gd/patch_gd2.0.12_gif_20030401.gz
18 Patch1: %{name}-gif-am.patch
19 Patch2: %{name}-fontpath.patch
20 Patch3: %{name}-no_ldflags_in_gdlib-config.patch
21 URL: http://www.boutell.com/gd/
22 %{!?_without_xpm:BuildRequires: XFree86-devel}
23 %{?_without_xpm:BuildConflicts: XFree86-devel}
24 BuildRequires: autoconf
25 BuildRequires: automake
26 BuildRequires: freetype-devel >= 2.0
27 BuildRequires: libpng-devel
28 BuildRequires: libjpeg-devel
29 BuildRequires: libtiff-devel
30 BuildRequires: libtool >= 1:1.4.3
31 BuildRequires: zlib-devel
32 %{!?_without_gif:Provides: gd(gif) = %{version}}
33 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
36 gd is the image manipulating library. It was created to allow graphs,
37 charts and the like to be generated on the fly for use on the World
38 wide Web, but is useful for any application in which custom images are
39 useful. It is not a paint program; it is a library. gd library creates
40 PNG, JPEG and WBMP images. This is a good thing. PNG is a more compact
41 format, and full compression is available. JPEG works well with
42 photographic images, and is still more compatible with the major Web
43 browsers than even PNG is. WBMP is intended for wireless devices (not
44 regular web browsers).
45 %{!?_without_gif:This version has additional GIF images support.}
48 Esta es la biblioteca gd para el manejo de imágenes. Fue creada para
49 uso en la Web, creando gráficos automáticamente. Pero es útil para
50 cualquier programa que necesite de imágenes personalizados. No es un
51 programa de dibujo; es una biblioteca.
54 gd to biblioteka do obróbki obrazów. Zosta³a stworzona, aby umo¿liwiæ
55 dynamiczne generowanie wykresów i podobnych rzeczy na potrzeby WWW,
56 ale mo¿e byæ przydatna tak¿e dla ka¿dej aplikacji tworz±cej w³asne
57 obrazy. Biblioteka ta pozwala na tworzenie plików graficznych w
58 formatach PNG, JPEG i WBMP. PNG jest zwartym formatem z bezstratn±
59 kompresj±. JPEG dobrze nadaje siê do obrazów fotograficznych i jest
60 obs³ugiwany nawet przez wiêcej przegl±darek WWW ni¿ PNG. WBMP jest
61 przeznaczony dla urz±dzeñ bezprzewodowych (a nie zwyk³ych przegl±darek
63 %{!?_without_gif:Ta wersja ma dodatkowo obs³ugê formatu GIF.}
66 Esta é a biblioteca gd para manipulação de imagens. Ela foi criada
67 para uso na Web, gerando gráficos automaticamente. Mas é útil para
68 qualquer programa que precise de imagens personalizados. Não é um
69 programa de desenho; é uma biblioteca.
72 Summary: Development part of the GD library
73 Summary(es): Archivos de inclusión y bibliotecas para desarrollar programas usando gd
74 Summary(pl): Czê¶æ biblioteki GD przeznaczona dla developerów
75 Summary(pt_BR): Arquivos de inclusão e bibliotecas para desenvolver programas usando gd
76 Group: Development/Libraries
77 Requires: %{name} = %{version}
78 %{!?_without_xpm:Requires: XFree86-devel}
79 Requires: freetype-devel >= 2.0
80 Requires: libjpeg-devel
81 Requires: libpng-devel
83 %{!?_without_gif:Provides: gd-devel(gif) = %{version}}
86 This package contains the files needed for development of programs
89 %description devel -l es
90 Este paquete contiene los archivos de inclusión y las bibliotecas
91 necesarias para desarrollar programas usando gd.
93 %description devel -l pl
94 Pakiet ten zawiera pliki potrzebne do rozwoju programów korzystaj±cych
97 %description devel -l pt_BR
98 Este pacote contém os arquivos de inclusão e as bibliotecas
99 necessárias para desenvolver programas usando gd.
102 Summary: Static GD library
103 Summary(pl): Statyczna biblioteka GD
104 Summary(pt_BR): Bibliotecas estáticas para desenvolvimento com libgd
105 Group: Development/Libraries
106 Requires: %{name}-devel = %{version}
107 %{!?_without_gif:Provides: gd-static(gif) = %{version}}
110 This package contains static gd library.
112 %description static -l pl
113 Ten pakiet zawiera statyczn± bibliotekê gd.
115 %description static -l pt_BR
116 Este pacote contem bibliotecas estáticas para desenvolvimento com
120 Summary: Utility programs that use libgd
121 Summary(es): Programas utilitarios libgd
122 Summary(pl): Narzêdzia u¿ywaj±ce libgd
123 Summary(pt_BR): Programas utilitários libgd
124 Group: Applications/Graphics
125 Requires: %{name} = %{version}
126 %{!?_without_gif:Provides: gd-progs(gif) = %{version}}
129 These are utility programs supplied with gd, the image manipulation
130 library. The libgd-progs package contains a group of scripts for
131 manipulating the graphics files in formats which are supported by the
134 %description progs -l pl
135 Ten pakiet zawiera programy u¿ywaj±ce biblioteki gd, s³u¿±ce do
136 obróbki plików graficznych w formatach obs³ugiwanych przez libgd.
138 %description progs -l pt_BR
139 Este pacote inclui vários utilitários para manipulação de arquivos gd
140 para uso pelos programas que usam a libgd.
144 %if 0%{!?_without_gif:1}
156 %{!?_without_lzw:CPPFLAGS="-DLZW_LICENCED"}
161 rm -rf $RPM_BUILD_ROOT
164 DESTDIR=$RPM_BUILD_ROOT
167 rm -rf $RPM_BUILD_ROOT
169 %post -p /sbin/ldconfig
170 %postun -p /sbin/ldconfig
173 %defattr(644,root,root,755)
174 %doc COPYING index.html
175 %attr(755,root,root) %{_libdir}/*.so.*.*
178 %defattr(644,root,root,755)
179 %attr(755,root,root) %{_bindir}/gdlib-config
180 %attr(755,root,root) %{_libdir}/*.so
185 %defattr(644,root,root,755)
189 %defattr(644,root,root,755)
190 %attr(755,root,root) %{_bindir}/[!g]*
191 %{!?_without_gif:%attr(755,root,root) %{_bindir}/gif*}
192 %attr(755,root,root) %{_bindir}/gd[!l]*