]>
Commit | Line | Data |
---|---|---|
838beb5e ER |
1 | Summary: Anti-Grain Geometry |
2 | Name: agg | |
3 | Version: 2.5 | |
4 | Release: 0.1 | |
5 | License: GPL | |
6 | Group: Libraries | |
7 | URL: http://www.antigrain.com/ | |
8 | Source0: http://www.antigrain.com/%{name}-%{version}.tar.gz | |
9 | # Source0-md5: ddc67cbdc7d51e1ec984c2ac2724c08a | |
10 | Patch0: %{name}-depends.patch | |
11 | BuildRequires: SDL-devel | |
12 | BuildRequires: XFree86-devel | |
13 | BuildRequires: automake | |
14 | BuildRequires: freetype-devel | |
15 | BuildRequires: libtool | |
16 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
17 | ||
18 | %description | |
19 | A High Quality Rendering Engine for C++ | |
20 | ||
21 | %package devel | |
22 | Summary: Support files necessary to compile applications with agg | |
23 | Group: Development/Libraries | |
24 | Requires: %{name} = %{version}-%{release} | |
25 | ||
26 | %description devel | |
27 | Libraries, headers, and support files necessary to compile | |
28 | applications using agg | |
29 | ||
30 | %prep | |
31 | %setup -q | |
32 | %patch0 -p1 | |
33 | ||
34 | %build | |
35 | %{__aclocal} | |
36 | %{__autoheader} | |
37 | %{__autoconf} | |
38 | %{__libtoolize} | |
39 | %{__automake} | |
40 | %configure \ | |
41 | --disable-gpc | |
42 | %{__make} | |
43 | ||
44 | %install | |
45 | rm -rf $RPM_BUILD_ROOT | |
46 | %{__make} install \ | |
47 | DESTDIR=$RPM_BUILD_ROOT | |
48 | ||
49 | rm -f $RPM_BUILD_ROOT%{_libdir}/*.la | |
50 | ||
51 | %post -p /sbin/ldconfig | |
52 | %postun -p /sbin/ldconfig | |
53 | ||
54 | %files | |
55 | %defattr(644,root,root,755) | |
56 | %doc authors copying readme | |
57 | %attr(755,root,root) %{_libdir}/lib*.so.* | |
58 | ||
59 | %files devel | |
60 | %defattr(644,root,root,755) | |
61 | %{_libdir}/*.a | |
62 | %{_libdir}/*.so | |
63 | %{_pkgconfigdir}/libagg.pc | |
64 | %{_includedir}/agg2 | |
65 | %{_aclocaldir}/libagg.m4 | |
66 | ||
67 | %clean | |
68 | rm -r $RPM_BUILD_ROOT |