]> git.pld-linux.org Git - packages/gd.git/blob - gd.spec
- updated to 2.0.17
[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.17
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:  a1c0b12e69df63c22c7f90a4e8618c83
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 Patch3:         %{name}-FreeFontCache-alias.patch
23 URL:            http://www.boutell.com/gd/
24 %{?with_xpm:BuildRequires:      XFree86-devel}
25 %{!?with_xpm:BuildConflicts:    XFree86-devel}
26 BuildRequires:  autoconf >= 2.54
27 BuildRequires:  automake
28 BuildRequires:  freetype-devel >= 2.0
29 BuildRequires:  libpng-devel
30 BuildRequires:  libjpeg-devel
31 BuildRequires:  libtiff-devel
32 BuildRequires:  libtool >= 1:1.4.3
33 BuildRequires:  zlib-devel
34 %{?with_gif:Provides:   gd(gif) = %{version}}
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 and WBMP images. This is a good thing. PNG is a more compact
43 format, and full compression is available. JPEG works well with
44 photographic images, and is still more compatible with the major Web
45 browsers than even PNG is. WBMP is intended for wireless devices (not
46 regular web browsers).
47 %{?with_gif:This version has additional GIF images support.}
48
49 %description -l es
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
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 i WBMP. PNG jest zwartym formatem z bezstratn±
61 kompresj±. JPEG dobrze nadaje siê do obrazów fotograficznych i jest
62 obs³ugiwany nawet przez wiêcej przegl±darek WWW ni¿ PNG. WBMP jest
63 przeznaczony dla urz±dzeñ bezprzewodowych (a nie zwyk³ych przegl±darek
64 WWW).
65 %{?with_gif:Ta wersja ma dodatkowo obs³ugê formatu GIF.}
66
67 %description -l pt_BR
68 Esta é a biblioteca gd para manipulação de imagens. Ela foi criada
69 para uso na Web, gerando gráficos automaticamente. Mas é útil para
70 qualquer programa que precise de imagens personalizados. Não é um
71 programa de desenho; é uma biblioteca.
72
73 %package devel
74 Summary:        Development part of the GD library
75 Summary(es):    Archivos de inclusión y bibliotecas para desarrollar programas usando gd
76 Summary(pl):    Czê¶æ biblioteki GD przeznaczona dla developerów
77 Summary(pt_BR): Arquivos de inclusão e bibliotecas para desenvolver programas usando gd
78 Group:          Development/Libraries
79 Requires:       %{name} = %{version}
80 %{?with_xpm:Requires:   XFree86-devel}
81 Requires:       freetype-devel >= 2.0
82 Requires:       libjpeg-devel
83 Requires:       libpng-devel
84 Requires:       zlib-devel
85 %{?with_gif:Provides:   gd-devel(gif) = %{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}
109 %{?with_gif:Provides:   gd-static(gif) = %{version}-%{release}}
110
111 %description static
112 This package contains static gd library.
113
114 %description static -l pl
115 Ten pakiet zawiera statyczn± bibliotekê gd.
116
117 %description static -l pt_BR
118 Este pacote contem bibliotecas estáticas para desenvolvimento com
119 libgd.
120
121 %package progs
122 Summary:        Utility programs that use libgd
123 Summary(es):    Programas utilitarios libgd
124 Summary(pl):    Narzêdzia u¿ywaj±ce libgd
125 Summary(pt_BR): Programas utilitários libgd
126 Group:          Applications/Graphics
127 Requires:       %{name} = %{version}
128 %{?with_gif:Provides:   gd-progs(gif) = %{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 %if 0%{!?_without_gif:1}
147 %patch0 -p1
148 %endif
149 %patch1 -p1
150 %patch2 -p1
151 %patch3 -p1
152
153 %build
154 %{__libtoolize}
155 %{__aclocal}
156 %{__automake}
157 %{__autoconf}
158 %{?with_lzw:CPPFLAGS="-DLZW_LICENCED"}
159 %configure
160 %{__make}
161
162 %install
163 rm -rf $RPM_BUILD_ROOT
164
165 %{__make} install \
166         DESTDIR=$RPM_BUILD_ROOT
167
168 %clean
169 rm -rf $RPM_BUILD_ROOT
170
171 %post   -p /sbin/ldconfig
172 %postun -p /sbin/ldconfig
173
174 %files
175 %defattr(644,root,root,755)
176 %doc COPYING index.html
177 %attr(755,root,root) %{_libdir}/*.so.*.*
178
179 %files devel
180 %defattr(644,root,root,755)
181 %attr(755,root,root) %{_bindir}/gdlib-config
182 %attr(755,root,root) %{_libdir}/*.so
183 %{_libdir}/*.la
184 %{_includedir}/*
185
186 %files static
187 %defattr(644,root,root,755)
188 %{_libdir}/lib*.a
189
190 %files progs
191 %defattr(644,root,root,755)
192 %attr(755,root,root) %{_bindir}/[!g]*
193 %{!?_without_gif:%attr(755,root,root) %{_bindir}/gif*}
194 %attr(755,root,root) %{_bindir}/gd[!l]*
This page took 0.049294 seconds and 3 git commands to generate.