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