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