]> git.pld-linux.org Git - packages/gd.git/blob - gd.spec
- Updated to 2.0.22
[packages/gd.git] / gd.spec
1 #
2 %bcond_without  gif     # without GIF support (patch from http://www.rhyme.com.au/gd/)
3 %bcond_without  lzw     # without LZW compression in GIF creation functions
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.22
12 Release:        1
13 License:        BSD-like
14 Group:          Libraries
15 Source0:        http://www.boutell.com/gd/http/%{name}-%{version}.tar.gz
16 # Source0-md5:  e1a41daf3bfc221afaf56751dc506f95
17 # based on:
18 #Patch0:                http://downloads.rhyme.com.au/gd/patch_gd2.0.15_gif_030801.gz
19 Patch0:         %{name}-gif.patch
20 Patch1:         %{name}-fontpath.patch
21 Patch2:         %{name}-no_ldflags_in_gdlib-config.patch
22 URL:            http://www.boutell.com/gd/
23 %{?with_xpm:BuildRequires:      XFree86-devel}
24 %{!?with_xpm:BuildConflicts:    XFree86-devel}
25 BuildRequires:  autoconf >= 2.54
26 BuildRequires:  automake
27 BuildRequires:  freetype-devel >= 2.0
28 BuildRequires:  libpng-devel
29 BuildRequires:  libjpeg-devel
30 BuildRequires:  libtiff-devel
31 BuildRequires:  libtool >= 1:1.4.3
32 BuildRequires:  zlib-devel
33 %{?with_gif:Provides:   gd(gif) = %{version}}
34 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
35
36 %description
37 gd is the image manipulating library. It was created to allow graphs,
38 charts and the like to be generated on the fly for use on the World
39 wide Web, but is useful for any application in which custom images are
40 useful. It is not a paint program; it is a library. gd library creates
41 PNG, JPEG and WBMP images. This is a good thing. PNG is a more compact
42 format, and full compression is available. JPEG works well with
43 photographic images, and is still more compatible with the major Web
44 browsers than even PNG is. WBMP is intended for wireless devices (not
45 regular web browsers).
46 %{?with_gif:This version has additional GIF images support.}
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 i WBMP. PNG jest zwartym formatem z bezstratn±
60 kompresj±. JPEG dobrze nadaje siê do obrazów fotograficznych i jest
61 obs³ugiwany nawet przez wiêcej przegl±darek WWW ni¿ PNG. WBMP jest
62 przeznaczony dla urz±dzeñ bezprzewodowych (a nie zwyk³ych przegl±darek
63 WWW).
64 %{?with_gif:Ta wersja ma dodatkowo obs³ugê formatu GIF.}
65
66 %description -l pt_BR
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):    Archivos de inclusión y bibliotecas para desarrollar programas usando gd
75 Summary(pl):    Czê¶æ biblioteki GD przeznaczona dla developerów
76 Summary(pt_BR): Arquivos de inclusão e bibliotecas para desenvolver programas usando gd
77 Group:          Development/Libraries
78 Requires:       %{name} = %{version}
79 %{?with_xpm:Requires:   XFree86-devel}
80 Requires:       freetype-devel >= 2.0
81 Requires:       libjpeg-devel
82 Requires:       libpng-devel
83 Requires:       zlib-devel
84 %{?with_gif:Provides:   gd-devel(gif) = %{version}-%{release}}
85
86 %description devel
87 This package contains the files needed for development of programs
88 linked against GD.
89
90 %description devel -l es
91 Este paquete contiene los archivos de inclusión y las bibliotecas
92 necesarias para desarrollar programas usando gd.
93
94 %description devel -l pl
95 Pakiet ten zawiera pliki potrzebne do rozwoju programów korzystaj±cych
96 z biblioteki GD.
97
98 %description devel -l pt_BR
99 Este pacote contém os arquivos de inclusão e as bibliotecas
100 necessárias para desenvolver programas usando gd.
101
102 %package static
103 Summary:        Static GD library
104 Summary(pl):    Statyczna biblioteka GD
105 Summary(pt_BR): Bibliotecas estáticas para desenvolvimento com libgd
106 Group:          Development/Libraries
107 Requires:       %{name}-devel = %{version}
108 %{?with_gif:Provides:   gd-static(gif) = %{version}-%{release}}
109
110 %description static
111 This package contains static gd library.
112
113 %description static -l pl
114 Ten pakiet zawiera statyczn± bibliotekê gd.
115
116 %description static -l pt_BR
117 Este pacote contem bibliotecas estáticas para desenvolvimento com
118 libgd.
119
120 %package progs
121 Summary:        Utility programs that use libgd
122 Summary(es):    Programas utilitarios libgd
123 Summary(pl):    Narzêdzia u¿ywaj±ce libgd
124 Summary(pt_BR): Programas utilitários libgd
125 Group:          Applications/Graphics
126 Requires:       %{name} = %{version}
127 %{?with_gif:Provides:   gd-progs(gif) = %{version}-%{release}}
128
129 %description progs
130 These are utility programs supplied with gd, the image manipulation
131 library. The libgd-progs package contains a group of scripts for
132 manipulating the graphics files in formats which are supported by the
133 libgd library.
134
135 %description progs -l pl
136 Ten pakiet zawiera programy u¿ywaj±ce biblioteki gd, s³u¿±ce do
137 obróbki plików graficznych w formatach obs³ugiwanych przez libgd.
138
139 %description progs -l pt_BR
140 Este pacote inclui vários utilitários para manipulação de arquivos gd
141 para uso pelos programas que usam a libgd.
142
143 %prep
144 %setup -q
145 %{?with_gif:%patch0 -p1}
146 %patch1 -p1
147 %patch2 -p1
148
149 %build
150 %{__libtoolize}
151 %{__aclocal}
152 %{__automake}
153 %{__autoconf}
154 %{?with_lzw:CPPFLAGS="-DLZW_LICENCED"}
155 %configure
156 %{__make}
157
158 %install
159 rm -rf $RPM_BUILD_ROOT
160
161 %{__make} install \
162         DESTDIR=$RPM_BUILD_ROOT
163
164 %clean
165 rm -rf $RPM_BUILD_ROOT
166
167 %post   -p /sbin/ldconfig
168 %postun -p /sbin/ldconfig
169
170 %files
171 %defattr(644,root,root,755)
172 %doc COPYING index.html
173 %attr(755,root,root) %{_libdir}/*.so.*.*
174
175 %files devel
176 %defattr(644,root,root,755)
177 %attr(755,root,root) %{_bindir}/gdlib-config
178 %attr(755,root,root) %{_libdir}/*.so
179 %{_libdir}/*.la
180 %{_includedir}/*
181
182 %files static
183 %defattr(644,root,root,755)
184 %{_libdir}/lib*.a
185
186 %files progs
187 %defattr(644,root,root,755)
188 %attr(755,root,root) %{_bindir}/[!g]*
189 %{?with_gif:%attr(755,root,root) %{_bindir}/gif*}
190 %attr(755,root,root) %{_bindir}/gd[!l]*
This page took 0.081386 seconds and 4 git commands to generate.