]> git.pld-linux.org Git - packages/gd.git/blob - gd.spec
- added BR gettext-devel
[packages/gd.git] / gd.spec
1 #
2 # Conditional build:
3 %bcond_without  fontconfig      # without fontconfig support
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.33
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:  be0a6d326cd8567e736fbc75df0a5c45
17 Patch0:         %{name}-fontpath.patch
18 Patch1:         %{name}-rotate_from_php.patch
19 URL:            http://www.boutell.com/gd/
20 %{?with_xpm:BuildRequires:      XFree86-devel}
21 BuildRequires:  autoconf >= 2.54
22 BuildRequires:  automake
23 %{?with_fontconfig:BuildRequires:       fontconfig-devel}
24 BuildRequires:  freetype-devel >= 2.0
25 BuildRequires:  gettext-devel
26 BuildRequires:  libpng-devel
27 BuildRequires:  libjpeg-devel
28 BuildRequires:  libtiff-devel
29 BuildRequires:  libtool >= 1:1.4.3
30 BuildRequires:  zlib-devel
31 Provides:       gd(gif) = %{version}-%{release}
32 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
33
34 %description
35 gd is the image manipulating library. It was created to allow graphs,
36 charts and the like to be generated on the fly for use on the World
37 wide Web, but is useful for any application in which custom images are
38 useful. It is not a paint program; it is a library. gd library creates
39 PNG, JPEG, GIF and WBMP images. PNG is a more compact format, and full
40 compression is available. JPEG works well with photographic images,
41 and is still more compatible with the major Web browsers than even PNG
42 is. WBMP is intended for wireless devices (not regular web browsers).
43
44 %description -l es
45 Esta es la biblioteca gd para el manejo de imágenes. Fue creada para
46 uso en la Web, creando gráficos automáticamente. Pero es útil para
47 cualquier programa que necesite de imágenes personalizados. No es un
48 programa de dibujo; es una biblioteca.
49
50 %description -l pl
51 gd to biblioteka do obróbki obrazów. Zosta³a stworzona, aby umo¿liwiæ
52 dynamiczne generowanie wykresów i podobnych rzeczy na potrzeby WWW,
53 ale mo¿e byæ przydatna tak¿e dla ka¿dej aplikacji tworz±cej w³asne
54 obrazy. Biblioteka ta pozwala na tworzenie plików graficznych w
55 formatach PNG, JPEG, GIF i WBMP. PNG jest zwartym formatem z
56 bezstratn± kompresj±. JPEG dobrze nadaje siê do obrazów
57 fotograficznych i jest obs³ugiwany nawet przez wiêcej przegl±darek WWW
58 ni¿ PNG. WBMP jest przeznaczony dla urz±dzeñ bezprzewodowych (a nie
59 zwyk³ych przegl±darek WWW).
60
61 %description -l pt_BR
62 Esta é a biblioteca gd para manipulação de imagens. Ela foi criada
63 para uso na Web, gerando gráficos automaticamente. Mas é útil para
64 qualquer programa que precise de imagens personalizados. Não é um
65 programa de desenho; é uma biblioteca.
66
67 %package devel
68 Summary:        Development part of the GD library
69 Summary(es):    Archivos de inclusión y bibliotecas para desarrollar programas usando gd
70 Summary(pl):    Czê¶æ biblioteki GD przeznaczona dla developerów
71 Summary(pt_BR): Arquivos de inclusão e bibliotecas para desenvolver programas usando gd
72 Group:          Development/Libraries
73 Requires:       %{name} = %{version}-%{release}
74 %{?with_xpm:Requires:   XFree86-devel}
75 Requires:       fontconfig-devel
76 Requires:       freetype-devel >= 2.0
77 Requires:       libjpeg-devel
78 Requires:       libpng-devel
79 Requires:       zlib-devel
80 Provides:       gd-devel(gif) = %{version}-%{release}
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}-%{release}
104 Provides:       gd-static(gif) = %{version}-%{release}
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}-%{release}
123
124 %description progs
125 These are utility programs supplied with gd, the image manipulation
126 library. The libgd-progs package contains a group of scripts for
127 manipulating the graphics files in formats which are supported by the
128 libgd library.
129
130 %description progs -l pl
131 Ten pakiet zawiera programy u¿ywaj±ce biblioteki gd, s³u¿±ce do
132 obróbki plików graficznych w formatach obs³ugiwanych przez libgd.
133
134 %description progs -l pt_BR
135 Este pacote inclui vários utilitários para manipulação de arquivos gd
136 para uso pelos programas que usam a libgd.
137
138 %prep
139 %setup -q
140 %patch0 -p1
141 %patch1 -p1
142
143 # hack to avoid inclusion of -s or -L/usr/%{_lib} in --ldflags
144 %{__perl} -pi -e 's,\@LDFLAGS\@,-L/usr/X11R6/%{_lib},g' config/gdlib-config.in
145
146 %build
147 %{__libtoolize}
148 %{__aclocal}
149 %{__automake}
150 %{__autoheader}
151 %{__autoconf}
152 %configure \
153         %{!?with_fontconfig:--without-fontconfig} \
154         %{!?with_xpm:--without-xpm}
155 %{__make}
156
157 %install
158 rm -rf $RPM_BUILD_ROOT
159
160 %{__make} install \
161         DESTDIR=$RPM_BUILD_ROOT
162
163 %clean
164 rm -rf $RPM_BUILD_ROOT
165
166 %post   -p /sbin/ldconfig
167 %postun -p /sbin/ldconfig
168
169 %files
170 %defattr(644,root,root,755)
171 %doc COPYING index.html
172 %attr(755,root,root) %{_libdir}/*.so.*.*
173
174 %files devel
175 %defattr(644,root,root,755)
176 %attr(755,root,root) %{_bindir}/gdlib-config
177 %attr(755,root,root) %{_libdir}/*.so
178 %{_libdir}/*.la
179 %{_includedir}/*
180
181 %files static
182 %defattr(644,root,root,755)
183 %{_libdir}/lib*.a
184
185 %files progs
186 %defattr(644,root,root,755)
187 %attr(755,root,root) %{_bindir}/*
188 %exclude %{_bindir}/gdlib-config
This page took 0.041726 seconds and 3 git commands to generate.