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.UTF-8): Biblioteca para manipulación de imágenes
8 Summary(pl.UTF-8): Biblioteka do tworzenia grafiki w formacie PNG, JPEG
9 Summary(pt_BR.UTF-8): Biblioteca para manipulação de imagens
15 Source0: http://www.libgd.org/releases/%{name}-%{version}.tar.bz2
16 # Source0-md5: 6c6c3dbb7bf079e0bb5fbbfd3bb8a71c
17 Patch0: %{name}-fontpath.patch
18 Patch1: %{name}-rotate_from_php.patch
19 URL: http://www.libgd.org/
20 BuildRequires: autoconf >= 2.54
21 BuildRequires: automake
22 %{?with_fontconfig:BuildRequires: fontconfig-devel}
23 BuildRequires: freetype-devel >= 2.0
24 BuildRequires: gettext-devel
25 BuildRequires: libpng-devel
26 BuildRequires: libjpeg-devel
27 BuildRequires: libtiff-devel
28 BuildRequires: libtool >= 1:1.4.3
29 %{?with_xpm:BuildRequires: xorg-lib-libXpm}
30 BuildRequires: zlib-devel
31 Provides: gd(gif) = %{version}-%{release}
32 # versioned by php version rotate_from_php code comes from
33 Provides: gd(imagerotate) = 5.2.0
34 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
37 gd is the image manipulating library. It was created to allow graphs,
38 charts and the like to be generated on the fly for use on the World
39 wide Web, but is useful for any application in which custom images are
40 useful. It is not a paint program; it is a library. gd library creates
41 PNG, JPEG, GIF and WBMP images. PNG is a more compact format, and full
42 compression is available. JPEG works well with photographic images,
43 and is still more compatible with the major Web browsers than even PNG
44 is. WBMP is intended for wireless devices (not regular web browsers).
46 %description -l es.UTF-8
47 Esta es la biblioteca gd para el manejo de imágenes. Fue creada para
48 uso en la Web, creando gráficos automáticamente. Pero es útil para
49 cualquier programa que necesite de imágenes personalizados. No es un
50 programa de dibujo; es una biblioteca.
52 %description -l pl.UTF-8
53 gd to biblioteka do obróbki obrazów. Została stworzona, aby umożliwić
54 dynamiczne generowanie wykresów i podobnych rzeczy na potrzeby WWW,
55 ale może być przydatna także dla każdej aplikacji tworzącej własne
56 obrazy. Biblioteka ta pozwala na tworzenie plików graficznych w
57 formatach PNG, JPEG, GIF i WBMP. PNG jest zwartym formatem z
58 bezstratną kompresją. JPEG dobrze nadaje się do obrazów
59 fotograficznych i jest obsługiwany nawet przez więcej przeglądarek WWW
60 niż PNG. WBMP jest przeznaczony dla urządzeń bezprzewodowych (a nie
61 zwykłych przeglądarek WWW).
63 %description -l pt_BR.UTF-8
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.UTF-8): Archivos de inclusión y bibliotecas para desarrollar programas usando gd
72 Summary(pl.UTF-8): Część biblioteki GD przeznaczona dla developerów
73 Summary(pt_BR.UTF-8): Arquivos de inclusão e bibliotecas para desenvolver programas usando gd
74 Group: Development/Libraries
75 Requires: %{name} = %{version}-%{release}
76 Requires: fontconfig-devel
77 Requires: freetype-devel >= 2.0
78 Requires: libjpeg-devel
79 Requires: libpng-devel
80 %{?with_xpm:Requires: xorg-lib-libXpm}
82 Provides: gd-devel(gif) = %{version}-%{release}
83 Provides: gd-devel(imagerotate) = 5.2.0
86 This package contains the files needed for development of programs
89 %description devel -l es.UTF-8
90 Este paquete contiene los archivos de inclusión y las bibliotecas
91 necesarias para desarrollar programas usando gd.
93 %description devel -l pl.UTF-8
94 Pakiet ten zawiera pliki potrzebne do rozwoju programów korzystających
97 %description devel -l pt_BR.UTF-8
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.UTF-8): Statyczna biblioteka GD
104 Summary(pt_BR.UTF-8): Bibliotecas estáticas para desenvolvimento com libgd
105 Group: Development/Libraries
106 Requires: %{name}-devel = %{version}-%{release}
107 Provides: gd-static(gif) = %{version}-%{release}
108 Provides: gd-static(imagerotate) = 5.2.0
111 This package contains static gd library.
113 %description static -l pl.UTF-8
114 Ten pakiet zawiera statyczną bibliotekę gd.
116 %description static -l pt_BR.UTF-8
117 Este pacote contem bibliotecas estáticas para desenvolvimento com
121 Summary: Utility programs that use libgd
122 Summary(es.UTF-8): Programas utilitarios libgd
123 Summary(pl.UTF-8): Narzędzia używające libgd
124 Summary(pt_BR.UTF-8): Programas utilitários libgd
125 Group: Applications/Graphics
126 Requires: %{name} = %{version}-%{release}
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.UTF-8
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.UTF-8
139 Este pacote inclui vários utilitários para manipulação de arquivos gd
140 para uso pelos programas que usam a libgd.
147 # hack to avoid inclusion of -s in --ldflags
148 %{__perl} -pi -e 's,\@LDFLAGS\@,,g' config/gdlib-config.in
157 %{!?with_fontconfig:--without-fontconfig} \
158 %{!?with_xpm:--without-xpm}
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}/libgd.so.*.*.*
179 %defattr(644,root,root,755)
180 %attr(755,root,root) %{_bindir}/gdlib-config
181 %attr(755,root,root) %{_libdir}/libgd.so
186 %defattr(644,root,root,755)
190 %defattr(644,root,root,755)
191 %attr(755,root,root) %{_bindir}/*
192 %exclude %{_bindir}/gdlib-config