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