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