]> git.pld-linux.org Git - packages/gd.git/blame - gd.spec
- added -q %setup parameter,
[packages/gd.git] / gd.spec
CommitLineData
cb954d5c 1Summary: Library for GIF creation
2Name: gd
3Version: 1.3
4Release: 3
5Source: ftp://ftp.boutell.com/pub/boutell/gd/%{name}%{version}.tar.gz
6URL: http://www.boutell.com/gd/
7Patch0: gd-shared.patch
8Patch1: gd-non-root.patch
9Copyright: BSD-style
10Group: Libraries
11BuildRoot: /tmp/%{name}-%{version}-root
12
13%description
14This library allows you to easily create and manipulate GIF image files
15from your C programs.
16
17%package devel
18Summary: Development part of the GD library
19Group: Development/Libraries
20Requires: %{name} = %{version}
21
22%description devel
23This package contains the files needed for development of programs linked
24against GD.
25
26%prep
27%setup -q -n %{name}%{version}
28%patch0 -p1
29%patch1 -p1
30
31%build
32CFLAGS="$RPM_OPT_FLAGS" make
33
34%install
35rm -rf $RPM_BUILD_ROOT
36install -d $RPM_BUILD_ROOT/usr/{include,lib}
37
38install {gd,gdfontg,gdfontl,gdfontmb,gdfonts,gdfontt}.h $RPM_BUILD_ROOT/usr/include
39install -s libgd.so* $RPM_BUILD_ROOT/usr/lib
40
41%clean
42rm -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