3 %bcond_without fontconfig # without fontconfig support
4 %bcond_without xpm # without XPM support (requires X11 libs)
7 Summary: Library for PNG, JPEG creation
8 Summary(es.UTF-8): Biblioteca para manipulación de imágenes
9 Summary(pl.UTF-8): Biblioteka do tworzenia grafiki w formacie PNG, JPEG
10 Summary(pt_BR.UTF-8): Biblioteca para manipulação de imagens
16 Source0: https://bitbucket.org/libgd/gd-libgd/downloads/libgd-%{version}.tar.xz
17 # Source0-md5: 03588159bf4faab9079849c8d709acc6
18 Patch0: %{name}-fontpath.patch
19 Patch1: %{name}-2.0.33-BoxBound.patch
20 Patch2: %{name}-loop.patch
21 URL: http://www.libgd.org/
22 BuildRequires: autoconf >= 2.54
23 BuildRequires: automake
24 %{?with_fontconfig:BuildRequires: fontconfig-devel}
25 BuildRequires: freetype-devel >= 2.1.10
26 BuildRequires: gettext-devel
27 BuildRequires: libjpeg-devel
28 BuildRequires: libpng-devel >= 2:1.4.0
29 BuildRequires: libtiff-devel >= 4
30 BuildRequires: libtool >= 2:2
31 BuildRequires: libvpx-devel
32 BuildRequires: pkgconfig
33 BuildRequires: sed >= 4
34 BuildRequires: tar >= 1:1.22
35 %{?with_xpm:BuildRequires: xorg-lib-libXpm-devel}
37 BuildRequires: zlib-devel
38 Requires: freetype >= 2.1.10
39 Provides: gd(gif) = %{version}-%{release}
40 # versioned by php version rotate_from_php code comes from
41 Provides: gd(imagerotate) = 5.2.0
42 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
45 gd is the image manipulating library. It was created to allow graphs,
46 charts and the like to be generated on the fly for use on the World
47 wide Web, but is useful for any application in which custom images are
48 useful. It is not a paint program; it is a library. gd library creates
49 PNG, JPEG, GIF and WBMP images. PNG is a more compact format, and full
50 compression is available. JPEG works well with photographic images,
51 and is still more compatible with the major Web browsers than even PNG
52 is. WBMP is intended for wireless devices (not regular web browsers).
54 %description -l es.UTF-8
55 Esta es la biblioteca gd para el manejo de imágenes. Fue creada para
56 uso en la Web, creando gráficos automáticamente. Pero es útil para
57 cualquier programa que necesite de imágenes personalizados. No es un
58 programa de dibujo; es una biblioteca.
60 %description -l pl.UTF-8
61 gd to biblioteka do obróbki obrazów. Została stworzona, aby umożliwić
62 dynamiczne generowanie wykresów i podobnych rzeczy na potrzeby WWW,
63 ale może być przydatna także dla każdej aplikacji tworzącej własne
64 obrazy. Biblioteka ta pozwala na tworzenie plików graficznych w
65 formatach PNG, JPEG, GIF i WBMP. PNG jest zwartym formatem z
66 bezstratną kompresją. JPEG dobrze nadaje się do obrazów
67 fotograficznych i jest obsługiwany nawet przez więcej przeglądarek WWW
68 niż PNG. WBMP jest przeznaczony dla urządzeń bezprzewodowych (a nie
69 zwykłych przeglądarek WWW).
71 %description -l pt_BR.UTF-8
72 Esta é a biblioteca gd para manipulação de imagens. Ela foi criada
73 para uso na Web, gerando gráficos automaticamente. Mas é útil para
74 qualquer programa que precise de imagens personalizados. Não é um
75 programa de desenho; é uma biblioteca.
78 Summary: Development part of the GD library
79 Summary(es.UTF-8): Archivos de inclusión y bibliotecas para desarrollar programas usando gd
80 Summary(pl.UTF-8): Część biblioteki GD przeznaczona dla developerów
81 Summary(pt_BR.UTF-8): Arquivos de inclusão e bibliotecas para desenvolver programas usando gd
82 Group: Development/Libraries
83 Requires: %{name} = %{version}-%{release}
84 Requires: fontconfig-devel
85 Requires: freetype-devel >= 2.1.10
86 Requires: libjpeg-devel
87 Requires: libpng-devel
88 Requires: libtiff-devel >= 4
89 Requires: libvpx-devel
90 %{?with_xpm:Requires: xorg-lib-libXpm-devel}
92 Provides: gd-devel(gif) = %{version}-%{release}
93 Provides: gd-devel(imagerotate) = 5.2.0
96 This package contains the files needed for development of programs
99 %description devel -l es.UTF-8
100 Este paquete contiene los archivos de inclusión y las bibliotecas
101 necesarias para desarrollar programas usando gd.
103 %description devel -l pl.UTF-8
104 Pakiet ten zawiera pliki potrzebne do rozwoju programów korzystających
107 %description devel -l pt_BR.UTF-8
108 Este pacote contém os arquivos de inclusão e as bibliotecas
109 necessárias para desenvolver programas usando gd.
112 Summary: Static GD library
113 Summary(pl.UTF-8): Statyczna biblioteka GD
114 Summary(pt_BR.UTF-8): Bibliotecas estáticas para desenvolvimento com libgd
115 Group: Development/Libraries
116 Requires: %{name}-devel = %{version}-%{release}
117 Provides: gd-static(gif) = %{version}-%{release}
118 Provides: gd-static(imagerotate) = 5.2.0
121 This package contains static gd library.
123 %description static -l pl.UTF-8
124 Ten pakiet zawiera statyczną bibliotekę gd.
126 %description static -l pt_BR.UTF-8
127 Este pacote contem bibliotecas estáticas para desenvolvimento com
131 Summary: Utility programs that use libgd
132 Summary(es.UTF-8): Programas utilitarios libgd
133 Summary(pl.UTF-8): Narzędzia używające libgd
134 Summary(pt_BR.UTF-8): Programas utilitários libgd
135 Group: Applications/Graphics
136 Requires: %{name} = %{version}-%{release}
139 These are utility programs supplied with gd, the image manipulation
140 library. The libgd-progs package contains a group of scripts for
141 manipulating the graphics files in formats which are supported by the
144 %description progs -l pl.UTF-8
145 Ten pakiet zawiera programy używające biblioteki gd, służące do
146 obróbki plików graficznych w formatach obsługiwanych przez libgd.
148 %description progs -l pt_BR.UTF-8
149 Este pacote inclui vários utilitários para manipulação de arquivos gd
150 para uso pelos programas que usam a libgd.
153 %setup -q -n libgd-%{version}
158 # hack to avoid inclusion of -s in --ldflags
159 %{__sed} -i -e 's,@LDFLAGS@,,g' config/gdlib-config.in
160 # disable error caused by subdir-objects warning in automake 1.14
161 %{__sed} -i -e '/AM_INIT_AUTOMAKE/s/-Werror//' configure.ac
170 %{!?with_fontconfig:--without-fontconfig} \
171 %{!?with_xpm:--without-xpm}
175 # https://bitbucket.org/libgd/gd-libgd/issue/72/gdimagestringft_bbox-test-fails-on-old
176 export XFAIL_TESTS=gdimagestringft/gdimagestringft_bbox
181 rm -rf $RPM_BUILD_ROOT
184 DESTDIR=$RPM_BUILD_ROOT
187 rm -rf $RPM_BUILD_ROOT
189 %post -p /sbin/ldconfig
190 %postun -p /sbin/ldconfig
193 %defattr(644,root,root,755)
194 %doc COPYING ChangeLog NEWS
195 %attr(755,root,root) %{_libdir}/libgd.so.*.*.*
196 %attr(755,root,root) %ghost %{_libdir}/libgd.so.3
199 %defattr(644,root,root,755)
200 %attr(755,root,root) %{_bindir}/gdlib-config
201 %attr(755,root,root) %{_libdir}/libgd.so
203 %{_includedir}/entities.h
205 %{_pkgconfigdir}/gdlib.pc
208 %defattr(644,root,root,755)
212 %defattr(644,root,root,755)
213 %attr(755,root,root) %{_bindir}/annotate
214 %attr(755,root,root) %{_bindir}/bdftogd
215 %attr(755,root,root) %{_bindir}/gd2copypal
216 %attr(755,root,root) %{_bindir}/gd2togif
217 %attr(755,root,root) %{_bindir}/gd2topng
218 %attr(755,root,root) %{_bindir}/gdcmpgif
219 %attr(755,root,root) %{_bindir}/gdparttopng
220 %attr(755,root,root) %{_bindir}/gdtopng
221 %attr(755,root,root) %{_bindir}/giftogd2
222 %attr(755,root,root) %{_bindir}/pngtogd
223 %attr(755,root,root) %{_bindir}/pngtogd2
224 %attr(755,root,root) %{_bindir}/webpng