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