3 %bcond_without fontconfig # without fontconfig support
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: be0a6d326cd8567e736fbc75df0a5c45
17 Patch0: %{name}-fontpath.patch
18 Patch1: %{name}-rotate_from_php.patch
19 URL: http://www.boutell.com/gd/
20 %{?with_xpm:BuildRequires: XFree86-devel}
21 BuildRequires: autoconf >= 2.54
22 BuildRequires: automake
23 %{?with_fontconfig:BuildRequires: fontconfig-devel}
24 BuildRequires: freetype-devel >= 2.0
25 BuildRequires: gettext-devel
26 BuildRequires: libpng-devel
27 BuildRequires: libjpeg-devel
28 BuildRequires: libtiff-devel
29 BuildRequires: libtool >= 1:1.4.3
30 BuildRequires: zlib-devel
31 Provides: gd(gif) = %{version}-%{release}
32 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
35 gd is the image manipulating library. It was created to allow graphs,
36 charts and the like to be generated on the fly for use on the World
37 wide Web, but is useful for any application in which custom images are
38 useful. It is not a paint program; it is a library. gd library creates
39 PNG, JPEG, GIF and WBMP images. PNG is a more compact format, and full
40 compression is available. JPEG works well with photographic images,
41 and is still more compatible with the major Web browsers than even PNG
42 is. WBMP is intended for wireless devices (not regular web browsers).
45 Esta es la biblioteca gd para el manejo de imágenes. Fue creada para
46 uso en la Web, creando gráficos automáticamente. Pero es útil para
47 cualquier programa que necesite de imágenes personalizados. No es un
48 programa de dibujo; es una biblioteca.
51 gd to biblioteka do obróbki obrazów. Zosta³a stworzona, aby umo¿liwiæ
52 dynamiczne generowanie wykresów i podobnych rzeczy na potrzeby WWW,
53 ale mo¿e byæ przydatna tak¿e dla ka¿dej aplikacji tworz±cej w³asne
54 obrazy. Biblioteka ta pozwala na tworzenie plików graficznych w
55 formatach PNG, JPEG, GIF i WBMP. PNG jest zwartym formatem z
56 bezstratn± kompresj±. JPEG dobrze nadaje siê do obrazów
57 fotograficznych i jest obs³ugiwany nawet przez wiêcej przegl±darek WWW
58 ni¿ PNG. WBMP jest przeznaczony dla urz±dzeñ bezprzewodowych (a nie
59 zwyk³ych przegl±darek WWW).
62 Esta é a biblioteca gd para manipulação de imagens. Ela foi criada
63 para uso na Web, gerando gráficos automaticamente. Mas é útil para
64 qualquer programa que precise de imagens personalizados. Não é um
65 programa de desenho; é uma biblioteca.
68 Summary: Development part of the GD library
69 Summary(es): Archivos de inclusión y bibliotecas para desarrollar programas usando gd
70 Summary(pl): Czê¶æ biblioteki GD przeznaczona dla developerów
71 Summary(pt_BR): Arquivos de inclusão e bibliotecas para desenvolver programas usando gd
72 Group: Development/Libraries
73 Requires: %{name} = %{version}-%{release}
74 %{?with_xpm:Requires: XFree86-devel}
75 Requires: fontconfig-devel
76 Requires: freetype-devel >= 2.0
77 Requires: libjpeg-devel
78 Requires: libpng-devel
80 Provides: gd-devel(gif) = %{version}-%{release}
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}-%{release}
104 Provides: gd-static(gif) = %{version}-%{release}
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}-%{release}
125 These are utility programs supplied with gd, the image manipulation
126 library. The libgd-progs package contains a group of scripts for
127 manipulating the graphics files in formats which are supported by the
130 %description progs -l pl
131 Ten pakiet zawiera programy u¿ywaj±ce biblioteki gd, s³u¿±ce do
132 obróbki plików graficznych w formatach obs³ugiwanych przez libgd.
134 %description progs -l pt_BR
135 Este pacote inclui vários utilitários para manipulação de arquivos gd
136 para uso pelos programas que usam a libgd.
143 # hack to avoid inclusion of -s or -L/usr/%{_lib} in --ldflags
144 %{__perl} -pi -e 's,\@LDFLAGS\@,-L/usr/X11R6/%{_lib},g' config/gdlib-config.in
153 %{!?with_fontconfig:--without-fontconfig} \
154 %{!?with_xpm:--without-xpm}
158 rm -rf $RPM_BUILD_ROOT
161 DESTDIR=$RPM_BUILD_ROOT
164 rm -rf $RPM_BUILD_ROOT
166 %post -p /sbin/ldconfig
167 %postun -p /sbin/ldconfig
170 %defattr(644,root,root,755)
171 %doc COPYING index.html
172 %attr(755,root,root) %{_libdir}/*.so.*.*
175 %defattr(644,root,root,755)
176 %attr(755,root,root) %{_bindir}/gdlib-config
177 %attr(755,root,root) %{_libdir}/*.so
182 %defattr(644,root,root,755)
186 %defattr(644,root,root,755)
187 %attr(755,root,root) %{_bindir}/*
188 %exclude %{_bindir}/gdlib-config