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