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