]>
Commit | Line | Data |
---|---|---|
0fe9ae1e | 1 | # |
f50b7aa0 | 2 | # Conditional build: |
2d7c1ea5 JB |
3 | %bcond_without fontconfig # without fontconfig support |
4 | %bcond_without xpm # without XPM support (requires X11 libs) | |
0fe9ae1e | 5 | # |
a8cb6661 | 6 | Summary: Library for PNG, JPEG creation |
276f8082 ER |
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 | |
bf525458 | 10 | Name: gd |
331e1f00 JB |
11 | Version: 2.1.0 |
12 | Release: 1 | |
f5fd6f82 | 13 | License: BSD-like |
bf525458 | 14 | Group: Libraries |
331e1f00 JB |
15 | Source0: https://bitbucket.org/libgd/gd-libgd/downloads/libgd-%{version}.tar.xz |
16 | # Source0-md5: 03588159bf4faab9079849c8d709acc6 | |
f0e7dffb | 17 | Patch0: %{name}-fontpath.patch |
331e1f00 JB |
18 | Patch1: %{name}-2.0.33-BoxBound.patch |
19 | Patch2: %{name}-loop.patch | |
e2fa0ae5 | 20 | URL: http://www.libgd.org/ |
91cfdb36 | 21 | BuildRequires: autoconf >= 2.54 |
b2f653fd | 22 | BuildRequires: automake |
2d7c1ea5 | 23 | %{?with_fontconfig:BuildRequires: fontconfig-devel} |
331e1f00 | 24 | BuildRequires: freetype-devel >= 2.1.10 |
b099b9cd | 25 | BuildRequires: gettext-devel |
c0a00bcf | 26 | BuildRequires: libjpeg-devel |
0f4482da | 27 | BuildRequires: libpng-devel >= 2:1.4.0 |
331e1f00 JB |
28 | BuildRequires: libtiff-devel >= 4 |
29 | BuildRequires: libtool >= 2:2 | |
30 | BuildRequires: libvpx-devel | |
31 | BuildRequires: pkgconfig | |
32 | BuildRequires: sed >= 4 | |
33 | BuildRequires: tar >= 1:1.22 | |
ab0e31ee | 34 | %{?with_xpm:BuildRequires: xorg-lib-libXpm-devel} |
331e1f00 | 35 | BuildRequires: xz |
96d1fc3c | 36 | BuildRequires: zlib-devel |
331e1f00 | 37 | Requires: freetype >= 2.1.10 |
f0e7dffb | 38 | Provides: gd(gif) = %{version}-%{release} |
04a4831a JB |
39 | # versioned by php version rotate_from_php code comes from |
40 | Provides: gd(imagerotate) = 5.2.0 | |
60d61c9a | 41 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
64f72052 | 42 | |
cb954d5c | 43 | %description |
0fe9ae1e JB |
44 | gd is the image manipulating library. It was created to allow graphs, |
45 | charts and the like to be generated on the fly for use on the World | |
46 | wide Web, but is useful for any application in which custom images are | |
47 | useful. It is not a paint program; it is a library. gd library creates | |
f0e7dffb JB |
48 | PNG, JPEG, GIF and WBMP images. PNG is a more compact format, and full |
49 | compression is available. JPEG works well with photographic images, | |
50 | and is still more compatible with the major Web browsers than even PNG | |
51 | is. WBMP is intended for wireless devices (not regular web browsers). | |
cb954d5c | 52 | |
0a1333ac JR |
53 | %description -l es.UTF-8 |
54 | Esta es la biblioteca gd para el manejo de imágenes. Fue creada para | |
55 | uso en la Web, creando gráficos automáticamente. Pero es útil para | |
56 | cualquier programa que necesite de imágenes personalizados. No es un | |
b2f4bbcd | 57 | programa de dibujo; es una biblioteca. |
58 | ||
0a1333ac JR |
59 | %description -l pl.UTF-8 |
60 | gd to biblioteka do obróbki obrazów. Została stworzona, aby umożliwić | |
61 | dynamiczne generowanie wykresów i podobnych rzeczy na potrzeby WWW, | |
62 | ale może być przydatna także dla każdej aplikacji tworzącej własne | |
63 | obrazy. Biblioteka ta pozwala na tworzenie plików graficznych w | |
f0e7dffb | 64 | formatach PNG, JPEG, GIF i WBMP. PNG jest zwartym formatem z |
0a1333ac JR |
65 | bezstratną kompresją. JPEG dobrze nadaje się do obrazów |
66 | fotograficznych i jest obsługiwany nawet przez więcej przeglądarek WWW | |
67 | niż PNG. WBMP jest przeznaczony dla urządzeń bezprzewodowych (a nie | |
68 | zwykłych przeglądarek WWW). | |
10511b86 | 69 | |
0a1333ac JR |
70 | %description -l pt_BR.UTF-8 |
71 | Esta é a biblioteca gd para manipulação de imagens. Ela foi criada | |
72 | para uso na Web, gerando gráficos automaticamente. Mas é útil para | |
73 | qualquer programa que precise de imagens personalizados. Não é um | |
74 | programa de desenho; é uma biblioteca. | |
b2f4bbcd | 75 | |
cb954d5c | 76 | %package devel |
bf525458 | 77 | Summary: Development part of the GD library |
276f8082 ER |
78 | Summary(es.UTF-8): Archivos de inclusión y bibliotecas para desarrollar programas usando gd |
79 | Summary(pl.UTF-8): Część biblioteki GD przeznaczona dla developerów | |
80 | Summary(pt_BR.UTF-8): Arquivos de inclusão e bibliotecas para desenvolver programas usando gd | |
bf525458 | 81 | Group: Development/Libraries |
f50b7aa0 | 82 | Requires: %{name} = %{version}-%{release} |
5dc4c1e0 | 83 | Requires: fontconfig-devel |
331e1f00 | 84 | Requires: freetype-devel >= 2.1.10 |
0fe9ae1e | 85 | Requires: libjpeg-devel |
bd2f5b37 | 86 | Requires: libpng-devel |
331e1f00 JB |
87 | Requires: libtiff-devel >= 4 |
88 | Requires: libvpx-devel | |
ab0e31ee | 89 | %{?with_xpm:Requires: xorg-lib-libXpm-devel} |
bd2f5b37 | 90 | Requires: zlib-devel |
f0e7dffb | 91 | Provides: gd-devel(gif) = %{version}-%{release} |
04a4831a | 92 | Provides: gd-devel(imagerotate) = 5.2.0 |
cb954d5c | 93 | |
94 | %description devel | |
ad076400 | 95 | This package contains the files needed for development of programs |
96 | linked against GD. | |
cb954d5c | 97 | |
0a1333ac JR |
98 | %description devel -l es.UTF-8 |
99 | Este paquete contiene los archivos de inclusión y las bibliotecas | |
b2f4bbcd | 100 | necesarias para desarrollar programas usando gd. |
101 | ||
0a1333ac JR |
102 | %description devel -l pl.UTF-8 |
103 | Pakiet ten zawiera pliki potrzebne do rozwoju programów korzystających | |
76d4466d | 104 | z biblioteki GD. |
10511b86 | 105 | |
0a1333ac JR |
106 | %description devel -l pt_BR.UTF-8 |
107 | Este pacote contém os arquivos de inclusão e as bibliotecas | |
108 | necessárias para desenvolver programas usando gd. | |
b2f4bbcd | 109 | |
e4dcaf92 | 110 | %package static |
76d4466d | 111 | Summary: Static GD library |
276f8082 ER |
112 | Summary(pl.UTF-8): Statyczna biblioteka GD |
113 | Summary(pt_BR.UTF-8): Bibliotecas estáticas para desenvolvimento com libgd | |
76d4466d | 114 | Group: Development/Libraries |
f50b7aa0 | 115 | Requires: %{name}-devel = %{version}-%{release} |
f0e7dffb | 116 | Provides: gd-static(gif) = %{version}-%{release} |
04a4831a | 117 | Provides: gd-static(imagerotate) = 5.2.0 |
cb954d5c | 118 | |
777cca0f | 119 | %description static |
0fe9ae1e | 120 | This package contains static gd library. |
b2f4bbcd | 121 | |
0a1333ac JR |
122 | %description static -l pl.UTF-8 |
123 | Ten pakiet zawiera statyczną bibliotekę gd. | |
e4dcaf92 | 124 | |
0a1333ac JR |
125 | %description static -l pt_BR.UTF-8 |
126 | Este pacote contem bibliotecas estáticas para desenvolvimento com | |
b2f4bbcd | 127 | libgd. |
128 | ||
e81f3f85 | 129 | %package progs |
130 | Summary: Utility programs that use libgd | |
276f8082 ER |
131 | Summary(es.UTF-8): Programas utilitarios libgd |
132 | Summary(pl.UTF-8): Narzędzia używające libgd | |
133 | Summary(pt_BR.UTF-8): Programas utilitários libgd | |
e81f3f85 | 134 | Group: Applications/Graphics |
f50b7aa0 | 135 | Requires: %{name} = %{version}-%{release} |
e81f3f85 | 136 | |
137 | %description progs | |
0fe9ae1e | 138 | These are utility programs supplied with gd, the image manipulation |
26e69c10 | 139 | library. The libgd-progs package contains a group of scripts for |
140 | manipulating the graphics files in formats which are supported by the | |
141 | libgd library. | |
b2f4bbcd | 142 | |
0a1333ac JR |
143 | %description progs -l pl.UTF-8 |
144 | Ten pakiet zawiera programy używające biblioteki gd, służące do | |
145 | obróbki plików graficznych w formatach obsługiwanych przez libgd. | |
e81f3f85 | 146 | |
0a1333ac JR |
147 | %description progs -l pt_BR.UTF-8 |
148 | Este pacote inclui vários utilitários para manipulação de arquivos gd | |
b2f4bbcd | 149 | para uso pelos programas que usam a libgd. |
150 | ||
e4dcaf92 | 151 | %prep |
331e1f00 | 152 | %setup -q -n libgd-%{version} |
f0e7dffb | 153 | %patch0 -p1 |
91cfdb36 | 154 | %patch1 -p1 |
0f4482da | 155 | %patch2 -p1 |
11a3aa5c | 156 | |
6eb2ae1b | 157 | # hack to avoid inclusion of -s in --ldflags |
331e1f00 JB |
158 | %{__sed} -i -e 's,@LDFLAGS@,,g' config/gdlib-config.in |
159 | # disable error caused by subdir-objects warning in automake 1.14 | |
160 | %{__sed} -i -e '/AM_INIT_AUTOMAKE/s/-Werror//' configure.ac | |
76b282ae | 161 | |
e4dcaf92 | 162 | %build |
dfe01bee | 163 | %{__libtoolize} |
6de95af7 | 164 | %{__aclocal} |
1b927a19 | 165 | %{__automake} |
f0e7dffb | 166 | %{__autoheader} |
1b927a19 | 167 | %{__autoconf} |
2d7c1ea5 JB |
168 | %configure \ |
169 | %{!?with_fontconfig:--without-fontconfig} \ | |
170 | %{!?with_xpm:--without-xpm} | |
b7b66453 | 171 | %{__make} |
1bb411e9 | 172 | |
cb954d5c | 173 | %install |
b7b66453 | 174 | rm -rf $RPM_BUILD_ROOT |
ad076400 | 175 | |
2260ee2f | 176 | %{__make} install \ |
e87e503b | 177 | DESTDIR=$RPM_BUILD_ROOT |
ad076400 | 178 | |
cb954d5c | 179 | %clean |
d2ddf380 | 180 | rm -rf $RPM_BUILD_ROOT |
cb954d5c | 181 | |
e87e503b | 182 | %post -p /sbin/ldconfig |
cb954d5c | 183 | %postun -p /sbin/ldconfig |
184 | ||
185 | %files | |
e4dcaf92 | 186 | %defattr(644,root,root,755) |
331e1f00 | 187 | %doc COPYING ChangeLog NEWS |
04a4831a | 188 | %attr(755,root,root) %{_libdir}/libgd.so.*.*.* |
331e1f00 | 189 | %attr(755,root,root) %ghost %{_libdir}/libgd.so.3 |
cb954d5c | 190 | |
191 | %files devel | |
bf525458 | 192 | %defattr(644,root,root,755) |
bd13356b | 193 | %attr(755,root,root) %{_bindir}/gdlib-config |
04a4831a JB |
194 | %attr(755,root,root) %{_libdir}/libgd.so |
195 | %{_libdir}/libgd.la | |
45d93025 JB |
196 | %{_includedir}/entities.h |
197 | %{_includedir}/gd*.h | |
331e1f00 | 198 | %{_pkgconfigdir}/gdlib.pc |
e4dcaf92 | 199 | |
b2f653fd | 200 | %files static |
201 | %defattr(644,root,root,755) | |
04a4831a | 202 | %{_libdir}/libgd.a |
e81f3f85 | 203 | |
204 | %files progs | |
205 | %defattr(644,root,root,755) | |
45d93025 JB |
206 | %attr(755,root,root) %{_bindir}/annotate |
207 | %attr(755,root,root) %{_bindir}/bdftogd | |
208 | %attr(755,root,root) %{_bindir}/gd2copypal | |
209 | %attr(755,root,root) %{_bindir}/gd2togif | |
210 | %attr(755,root,root) %{_bindir}/gd2topng | |
211 | %attr(755,root,root) %{_bindir}/gdcmpgif | |
212 | %attr(755,root,root) %{_bindir}/gdparttopng | |
213 | %attr(755,root,root) %{_bindir}/gdtopng | |
214 | %attr(755,root,root) %{_bindir}/giftogd2 | |
215 | %attr(755,root,root) %{_bindir}/pngtogd | |
216 | %attr(755,root,root) %{_bindir}/pngtogd2 | |
217 | %attr(755,root,root) %{_bindir}/webpng |