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