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