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