2 # _without_gif - without GIF support (patch from http://www.rhyme.com.au/gd/)
3 # _without_lzw - without LZW compression in GIF creation functions
5 Summary: Library for PNG, JPEG creation
6 Summary(es): Biblioteca para manipulación de imágenes
7 Summary(pl): Biblioteka do tworzenia grafiki w formacie PNG, JPEG
8 Summary(pt_BR): Biblioteca para manipulação de imagens
14 Source0: http://www.boutell.com/ftp-materials/boutell/gd/%{name}-%{version}.tar.gz
15 #updated from http://downloads.rhyme.com.au/gd/patch_%{name}2.0.7_gif_20021118.gz
16 Patch0: %{name}-gif.patch
17 Patch1: %{name}-fontpath.patch
18 Patch2: %{name}-fixes.patch
19 URL: http://www.boutell.com/gd/
20 BuildRequires: autoconf
21 BuildRequires: automake
22 BuildRequires: freetype-devel >= 2.0
23 BuildRequires: libpng-devel
24 BuildRequires: libjpeg-devel
25 BuildRequires: libtiff-devel
26 BuildRequires: libtool >= 1:1.4.3
27 BuildRequires: zlib-devel
28 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
29 %{!?_without_gif:Provides: gd(gif) = %{version}}
31 %define shlibver %(echo %{version} | cut -f-2 -d.)
34 gd is the image manipulating library. It was created to allow graphs,
35 charts and the like to be generated on the fly for use on the World
36 wide Web, but is useful for any application in which custom images are
37 useful. It is not a paint program; it is a library. gd library creates
38 PNG, JPEG and WBMP images. This is a good thing. PNG is a more compact
39 format, and full compression is available. JPEG works well with
40 photographic images, and is still more compatible with the major Web
41 browsers than even PNG is. WBMP is intended for wireless devices (not
42 regular web browsers).
43 %{!?_without_gif:This version has additional GIF images support.}
46 Esta es la biblioteca gd para el manejo de imágenes. Fue creada para
47 uso en la Web, creando gráficos automáticamente. Pero es útil para
48 cualquier programa que necesite de imágenes personalizados. No es un
49 programa de dibujo; es una biblioteca.
52 gd to biblioteka do obróbki obrazów. Zosta³a stworzona, aby umo¿liwiæ
53 dynamiczne generowanie wykresów i podobnych rzeczy na potrzeby WWW,
54 ale mo¿e byæ przydatna tak¿e dla ka¿dej aplikacji tworz±cej w³asne
55 obrazy. Biblioteka ta pozwala na tworzenie plików graficznych w
56 formatach PNG, JPEG i WBMP. PNG jest zwartym formatem z bezstratn±
57 kompresj±. JPEG dobrze nadaje siê do obrazów fotograficznych i jest
58 obs³ugiwany nawet przez wiêcej przegl±darek WWW ni¿ PNG. WBMP jest
59 przeznaczony dla urz±dzeñ bezprzewodowych (a nie zwyk³ych przegl±darek
61 %{!?_without_gif:Ta wersja ma dodatkowo obs³ugê formatu GIF.}
64 Esta é a biblioteca gd para manipulação de imagens. Ela foi criada
65 para uso na Web, gerando gráficos automaticamente. Mas é útil para
66 qualquer programa que precise de imagens personalizados. Não é um
67 programa de desenho; é uma biblioteca.
70 Summary: Development part of the GD library
71 Summary(es): Archivos de inclusión y bibliotecas para desarrollar programas usando gd
72 Summary(pl): Czê¶æ biblioteki GD przeznaczona dla developerów
73 Summary(pt_BR): Arquivos de inclusão e bibliotecas para desenvolver programas usando gd
74 Group: Development/Libraries
75 Requires: %{name} = %{version}
76 Requires: freetype-devel >= 2.0
77 Requires: libjpeg-devel
78 Requires: libpng-devel
80 %{!?_without_gif:Provides: gd-devel(gif) = %{version}}
83 This package contains the files needed for development of programs
86 %description devel -l es
87 Este paquete contiene los archivos de inclusión y las bibliotecas
88 necesarias para desarrollar programas usando gd.
90 %description devel -l pl
91 Pakiet ten zawiera pliki potrzebne do rozwoju programów korzystaj±cych
94 %description devel -l pt_BR
95 Este pacote contém os arquivos de inclusão e as bibliotecas
96 necessárias para desenvolver programas usando gd.
99 Summary: Static GD library
100 Summary(pl): Statyczna biblioteka GD
101 Summary(pt_BR): Bibliotecas estáticas para desenvolvimento com libgd
102 Group: Development/Libraries
103 Requires: %{name}-devel = %{version}
104 %{!?_without_gif:Provides: gd-static(gif) = %{version}}
107 This package contains static gd library.
109 %description static -l pl
110 Ten pakiet zawiera statyczn± bibliotekê gd.
112 %description static -l pt_BR
113 Este pacote contem bibliotecas estáticas para desenvolvimento com
117 Summary: Utility programs that use libgd
118 Summary(es): Programas utilitarios libgd
119 Summary(pl): Narzêdzia u¿ywaj±ce libgd
120 Summary(pt_BR): Programas utilitários libgd
121 Group: Applications/Graphics
122 Requires: %{name} = %{version}
123 %{!?_without_gif:Provides: gd-progs(gif) = %{version}}
126 These are utility programs supplied with gd, the image manipulation
127 library. The libgd-progs package contains a group of scripts for
128 manipulating the graphics files in formats which are supported by the
131 %description progs -l pl
132 Ten pakiet zawiera programy u¿ywaj±ce biblioteki gd, s³u¿±ce do
133 obróbki plików graficznych w formatach obs³ugiwanych przez libgd.
135 %description progs -l pt_BR
136 Este pacote inclui vários utilitários para manipulação de arquivos gd
137 para uso pelos programas que usam a libgd.
141 %{!?_without_gif:%patch0 -p1}
150 %{!?_without_lzw:CPPFLAGS="-DLZW_LICENCED"}
155 rm -rf $RPM_BUILD_ROOT
158 DESTDIR=$RPM_BUILD_ROOT
161 rm -rf $RPM_BUILD_ROOT
163 %post -p /sbin/ldconfig
164 %postun -p /sbin/ldconfig
167 %defattr(644,root,root,755)
168 %doc COPYING index.html
169 %attr(755,root,root) %{_libdir}/*.so.*.*
172 %defattr(644,root,root,755)
173 %attr(755,root,root) %{_bindir}/gdlib-config
174 %attr(755,root,root) %{_libdir}/*.so
179 %defattr(644,root,root,755)
183 %defattr(644,root,root,755)
184 %attr(755,root,root) %{_bindir}/[!g]*
185 %{!?_without_gif:%attr(755,root,root) %{_bindir}/gif*}
186 %attr(755,root,root) %{_bindir}/gd[!l]*