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