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