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