]>
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 |
e2fa0ae5 | 11 | Version: 2.0.35 |
37c1c7ed | 12 | Release: 2 |
f5fd6f82 | 13 | License: BSD-like |
bf525458 | 14 | Group: Libraries |
41392427 AG |
15 | Source0: http://www.libgd.org/releases/%{name}-%{version}.tar.bz2 |
16 | # Source0-md5: 6c6c3dbb7bf079e0bb5fbbfd3bb8a71c | |
f0e7dffb | 17 | Patch0: %{name}-fontpath.patch |
e2fa0ae5 AM |
18 | Patch1: %{name}-rotate_from_php.patch |
19 | URL: http://www.libgd.org/ | |
91cfdb36 | 20 | BuildRequires: autoconf >= 2.54 |
b2f653fd | 21 | BuildRequires: automake |
2d7c1ea5 | 22 | %{?with_fontconfig:BuildRequires: fontconfig-devel} |
96d1fc3c | 23 | BuildRequires: freetype-devel >= 2.0 |
b099b9cd | 24 | BuildRequires: gettext-devel |
b7b66453 | 25 | BuildRequires: libpng-devel |
c0a00bcf | 26 | BuildRequires: libjpeg-devel |
2aa7d3df | 27 | BuildRequires: libtiff-devel |
6e5b17d6 | 28 | BuildRequires: libtool >= 1:1.4.3 |
6eb2ae1b | 29 | %{?with_xpm:BuildRequires: xorg-lib-libXpm} |
96d1fc3c | 30 | BuildRequires: zlib-devel |
f0e7dffb | 31 | Provides: gd(gif) = %{version}-%{release} |
04a4831a JB |
32 | # versioned by php version rotate_from_php code comes from |
33 | Provides: gd(imagerotate) = 5.2.0 | |
60d61c9a | 34 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
64f72052 | 35 | |
cb954d5c | 36 | %description |
0fe9ae1e JB |
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 | |
f0e7dffb JB |
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). | |
cb954d5c | 45 | |
0a1333ac JR |
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 | |
b2f4bbcd | 50 | programa de dibujo; es una biblioteca. |
51 | ||
0a1333ac JR |
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 | |
f0e7dffb | 57 | formatach PNG, JPEG, GIF i WBMP. PNG jest zwartym formatem z |
0a1333ac JR |
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). | |
10511b86 | 62 | |
0a1333ac JR |
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. | |
b2f4bbcd | 68 | |
cb954d5c | 69 | %package devel |
bf525458 | 70 | Summary: Development part of the GD library |
276f8082 ER |
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 | |
bf525458 | 74 | Group: Development/Libraries |
f50b7aa0 | 75 | Requires: %{name} = %{version}-%{release} |
5dc4c1e0 | 76 | Requires: fontconfig-devel |
0fe9ae1e JB |
77 | Requires: freetype-devel >= 2.0 |
78 | Requires: libjpeg-devel | |
bd2f5b37 | 79 | Requires: libpng-devel |
6eb2ae1b | 80 | %{?with_xpm:Requires: xorg-lib-libXpm} |
bd2f5b37 | 81 | Requires: zlib-devel |
f0e7dffb | 82 | Provides: gd-devel(gif) = %{version}-%{release} |
04a4831a | 83 | Provides: gd-devel(imagerotate) = 5.2.0 |
cb954d5c | 84 | |
85 | %description devel | |
ad076400 | 86 | This package contains the files needed for development of programs |
87 | linked against GD. | |
cb954d5c | 88 | |
0a1333ac JR |
89 | %description devel -l es.UTF-8 |
90 | Este paquete contiene los archivos de inclusión y las bibliotecas | |
b2f4bbcd | 91 | necesarias para desarrollar programas usando gd. |
92 | ||
0a1333ac JR |
93 | %description devel -l pl.UTF-8 |
94 | Pakiet ten zawiera pliki potrzebne do rozwoju programów korzystających | |
76d4466d | 95 | z biblioteki GD. |
10511b86 | 96 | |
0a1333ac JR |
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. | |
b2f4bbcd | 100 | |
e4dcaf92 | 101 | %package static |
76d4466d | 102 | Summary: Static GD library |
276f8082 ER |
103 | Summary(pl.UTF-8): Statyczna biblioteka GD |
104 | Summary(pt_BR.UTF-8): Bibliotecas estáticas para desenvolvimento com libgd | |
76d4466d | 105 | Group: Development/Libraries |
f50b7aa0 | 106 | Requires: %{name}-devel = %{version}-%{release} |
f0e7dffb | 107 | Provides: gd-static(gif) = %{version}-%{release} |
04a4831a | 108 | Provides: gd-static(imagerotate) = 5.2.0 |
cb954d5c | 109 | |
777cca0f | 110 | %description static |
0fe9ae1e | 111 | This package contains static gd library. |
b2f4bbcd | 112 | |
0a1333ac JR |
113 | %description static -l pl.UTF-8 |
114 | Ten pakiet zawiera statyczną bibliotekę gd. | |
e4dcaf92 | 115 | |
0a1333ac JR |
116 | %description static -l pt_BR.UTF-8 |
117 | Este pacote contem bibliotecas estáticas para desenvolvimento com | |
b2f4bbcd | 118 | libgd. |
119 | ||
e81f3f85 | 120 | %package progs |
121 | Summary: Utility programs that use libgd | |
276f8082 ER |
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 | |
e81f3f85 | 125 | Group: Applications/Graphics |
f50b7aa0 | 126 | Requires: %{name} = %{version}-%{release} |
e81f3f85 | 127 | |
128 | %description progs | |
0fe9ae1e | 129 | These are utility programs supplied with gd, the image manipulation |
26e69c10 | 130 | library. The libgd-progs package contains a group of scripts for |
131 | manipulating the graphics files in formats which are supported by the | |
132 | libgd library. | |
b2f4bbcd | 133 | |
0a1333ac JR |
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. | |
e81f3f85 | 137 | |
0a1333ac JR |
138 | %description progs -l pt_BR.UTF-8 |
139 | Este pacote inclui vários utilitários para manipulação de arquivos gd | |
b2f4bbcd | 140 | para uso pelos programas que usam a libgd. |
141 | ||
e4dcaf92 | 142 | %prep |
41392427 | 143 | %setup -q |
f0e7dffb | 144 | %patch0 -p1 |
91cfdb36 | 145 | %patch1 -p1 |
11a3aa5c | 146 | |
6eb2ae1b | 147 | # hack to avoid inclusion of -s in --ldflags |
148 | %{__perl} -pi -e 's,\@LDFLAGS\@,,g' config/gdlib-config.in | |
5c31e4cb | 149 | |
e4dcaf92 | 150 | %build |
dfe01bee | 151 | %{__libtoolize} |
6de95af7 | 152 | %{__aclocal} |
1b927a19 | 153 | %{__automake} |
f0e7dffb | 154 | %{__autoheader} |
1b927a19 | 155 | %{__autoconf} |
2d7c1ea5 JB |
156 | %configure \ |
157 | %{!?with_fontconfig:--without-fontconfig} \ | |
158 | %{!?with_xpm:--without-xpm} | |
b7b66453 | 159 | %{__make} |
1bb411e9 | 160 | |
cb954d5c | 161 | %install |
b7b66453 | 162 | rm -rf $RPM_BUILD_ROOT |
ad076400 | 163 | |
2260ee2f | 164 | %{__make} install \ |
e87e503b | 165 | DESTDIR=$RPM_BUILD_ROOT |
ad076400 | 166 | |
cb954d5c | 167 | %clean |
d2ddf380 | 168 | rm -rf $RPM_BUILD_ROOT |
cb954d5c | 169 | |
e87e503b | 170 | %post -p /sbin/ldconfig |
cb954d5c | 171 | %postun -p /sbin/ldconfig |
172 | ||
173 | %files | |
e4dcaf92 | 174 | %defattr(644,root,root,755) |
bd13356b | 175 | %doc COPYING index.html |
04a4831a | 176 | %attr(755,root,root) %{_libdir}/libgd.so.*.*.* |
cb954d5c | 177 | |
178 | %files devel | |
bf525458 | 179 | %defattr(644,root,root,755) |
bd13356b | 180 | %attr(755,root,root) %{_bindir}/gdlib-config |
04a4831a JB |
181 | %attr(755,root,root) %{_libdir}/libgd.so |
182 | %{_libdir}/libgd.la | |
183 | %{_includedir}/*.h | |
e4dcaf92 | 184 | |
b2f653fd | 185 | %files static |
186 | %defattr(644,root,root,755) | |
04a4831a | 187 | %{_libdir}/libgd.a |
e81f3f85 | 188 | |
189 | %files progs | |
190 | %defattr(644,root,root,755) | |
5dc4c1e0 JB |
191 | %attr(755,root,root) %{_bindir}/* |
192 | %exclude %{_bindir}/gdlib-config |