]>
Commit | Line | Data |
---|---|---|
cb954d5c | 1 | Summary: Library for GIF creation |
2 | Name: gd | |
3 | Version: 1.3 | |
4 | Release: 3 | |
5 | Source: ftp://ftp.boutell.com/pub/boutell/gd/%{name}%{version}.tar.gz | |
6 | URL: http://www.boutell.com/gd/ | |
7 | Patch0: gd-shared.patch | |
8 | Patch1: gd-non-root.patch | |
9 | Copyright: BSD-style | |
10 | Group: Libraries | |
11 | BuildRoot: /tmp/%{name}-%{version}-root | |
12 | ||
13 | %description | |
14 | This library allows you to easily create and manipulate GIF image files | |
15 | from your C programs. | |
16 | ||
17 | %package devel | |
18 | Summary: Development part of the GD library | |
19 | Group: Development/Libraries | |
20 | Requires: %{name} = %{version} | |
21 | ||
22 | %description devel | |
23 | This package contains the files needed for development of programs linked | |
24 | against GD. | |
25 | ||
26 | %prep | |
27 | %setup -q -n %{name}%{version} | |
28 | %patch0 -p1 | |
29 | %patch1 -p1 | |
30 | ||
31 | %build | |
32 | CFLAGS="$RPM_OPT_FLAGS" make | |
33 | ||
34 | %install | |
35 | rm -rf $RPM_BUILD_ROOT | |
36 | install -d $RPM_BUILD_ROOT/usr/{include,lib} | |
37 | ||
38 | install {gd,gdfontg,gdfontl,gdfontmb,gdfonts,gdfontt}.h $RPM_BUILD_ROOT/usr/include | |
39 | install -s libgd.so* $RPM_BUILD_ROOT/usr/lib | |
40 | ||
41 | %clean | |
42 | rm -rf $RPM_BUILD_ROOT | |
43 | ||
44 | %post -p /sbin/ldconfig | |
45 | %postun -p /sbin/ldconfig | |
46 | ||
47 | %files | |
48 | /usr/lib/*.so.* | |
49 | ||
50 | %files devel | |
51 | %doc readme.txt index.html | |
52 | /usr/lib/*.so | |
53 | /usr/include/* | |
54 | ||
55 | %changelog | |
56 |