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