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