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