]>
Commit | Line | Data |
---|---|---|
1 | # | |
2 | # Conditional build: | |
3 | %bcond_without fontconfig # without fontconfig support | |
4 | %bcond_without xpm # without XPM support (requires X11 libs) | |
5 | # | |
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 | |
10 | Name: gd | |
11 | Version: 2.0.35 | |
12 | Release: 1 | |
13 | License: BSD-like | |
14 | Group: Libraries | |
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) | |
35 | ||
36 | %description | |
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). | |
45 | ||
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. | |
51 | ||
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). | |
62 | ||
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. | |
68 | ||
69 | %package devel | |
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} | |
81 | Requires: zlib-devel | |
82 | Provides: gd-devel(gif) = %{version}-%{release} | |
83 | Provides: gd-devel(imagerotate) = 5.2.0 | |
84 | ||
85 | %description devel | |
86 | This package contains the files needed for development of programs | |
87 | linked against GD. | |
88 | ||
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. | |
92 | ||
93 | %description devel -l pl.UTF-8 | |
94 | Pakiet ten zawiera pliki potrzebne do rozwoju programów korzystających | |
95 | z biblioteki GD. | |
96 | ||
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. | |
100 | ||
101 | %package static | |
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 | |
109 | ||
110 | %description static | |
111 | This package contains static gd library. | |
112 | ||
113 | %description static -l pl.UTF-8 | |
114 | Ten pakiet zawiera statyczną bibliotekę gd. | |
115 | ||
116 | %description static -l pt_BR.UTF-8 | |
117 | Este pacote contem bibliotecas estáticas para desenvolvimento com | |
118 | libgd. | |
119 | ||
120 | %package progs | |
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} | |
127 | ||
128 | %description progs | |
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 | |
132 | libgd library. | |
133 | ||
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. | |
137 | ||
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. | |
141 | ||
142 | %prep | |
143 | %setup -q | |
144 | %patch0 -p1 | |
145 | %patch1 -p1 | |
146 | ||
147 | # hack to avoid inclusion of -s in --ldflags | |
148 | %{__perl} -pi -e 's,\@LDFLAGS\@,,g' config/gdlib-config.in | |
149 | ||
150 | %build | |
151 | %{__libtoolize} | |
152 | %{__aclocal} | |
153 | %{__automake} | |
154 | %{__autoheader} | |
155 | %{__autoconf} | |
156 | %configure \ | |
157 | %{!?with_fontconfig:--without-fontconfig} \ | |
158 | %{!?with_xpm:--without-xpm} | |
159 | %{__make} | |
160 | ||
161 | %install | |
162 | rm -rf $RPM_BUILD_ROOT | |
163 | ||
164 | %{__make} install \ | |
165 | DESTDIR=$RPM_BUILD_ROOT | |
166 | ||
167 | %clean | |
168 | rm -rf $RPM_BUILD_ROOT | |
169 | ||
170 | %post -p /sbin/ldconfig | |
171 | %postun -p /sbin/ldconfig | |
172 | ||
173 | %files | |
174 | %defattr(644,root,root,755) | |
175 | %doc COPYING index.html | |
176 | %attr(755,root,root) %{_libdir}/libgd.so.*.*.* | |
177 | ||
178 | %files devel | |
179 | %defattr(644,root,root,755) | |
180 | %attr(755,root,root) %{_bindir}/gdlib-config | |
181 | %attr(755,root,root) %{_libdir}/libgd.so | |
182 | %{_libdir}/libgd.la | |
183 | %{_includedir}/*.h | |
184 | ||
185 | %files static | |
186 | %defattr(644,root,root,755) | |
187 | %{_libdir}/libgd.a | |
188 | ||
189 | %files progs | |
190 | %defattr(644,root,root,755) | |
191 | %attr(755,root,root) %{_bindir}/* | |
192 | %exclude %{_bindir}/gdlib-config |