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