0787c40
Summary: Anti-Grain Geometry graphical rendering engine
705831a
Name:    agg
a8d0904
Version: 2.5
a07f226
Release: 9%{?dist}
705831a
Group:   System Environment/Libraries
705831a
URL:     http://www.antigrain.com
2cb3f7f
License: GPLv2+
0787c40
#Source0:  http://www.antigrain.com/%{name}-%{version}.tar.gz
0787c40
Source0: %{name}-free-%{version}.tar.gz
0787c40
# agg contains gpc.c, 'free for non-commercial use', we cannot ship.
00e46db
# We use this script to remove the non-free code before shipping it.
0787c40
# Download the upstream tarball and invoke this script while in the
0787c40
# tarball's directory:
0787c40
# sh agg-generate-tarball.sh 2.5
0787c40
Source1: agg-generate-tarball.sh
0787c40
0a70b54
Buildroot: %{_tmppath}/%{name}-%{version}-%{release}-root
725dd37
BuildRequires: automake, libtool, libX11-devel, freetype-devel, SDL-devel
0a70b54
0cb80b7
Patch0: agg-2.4-depends.patch
018b46e
Patch1: agg-2.5-pkgconfig.patch
0cb80b7
0a70b54
%description
018b46e
A High Quality Rendering Engine for C++.
0a70b54
0a70b54
%package devel
0a70b54
Summary: Support files necessary to compile applications with agg
0a70b54
Group: Development/Libraries
5fc595a
Requires: agg = %{version}-%{release}, freetype-devel
0787c40
# for _datadir/automake ownership
0787c40
Requires: automake
0a70b54
0a70b54
%description devel
0787c40
Libraries, headers, and support files necessary to compile applications 
0787c40
using agg.
0a70b54
0a70b54
%prep
725dd37
%setup -q
0787c40
%patch0 -p1 -b .depends
0787c40
%patch1 -p1 -b .pkgconfig
0787c40
aclocal
0787c40
autoheader
0787c40
autoconf
0787c40
libtoolize --force
0787c40
automake --foreign --add-missing --ignore-deps
0a70b54
0a70b54
%build
018b46e
%configure --disable-static --disable-gpc
7b66c73
# parallel build fails in examples/ because the .la is in _LDFLAGS instead of
7b66c73
# _LIBADD
7b66c73
make #%%{?_smp_mflags}
0a70b54
0a70b54
%install
0787c40
rm -rf $RPM_BUILD_ROOT
0787c40
make DESTDIR=$RPM_BUILD_ROOT install INSTALL='install -p'
018b46e
rm $RPM_BUILD_ROOT/%{_libdir}/*.la
0a70b54
0787c40
rm -rf __dist_examples __clean_examples
0787c40
cp -a examples __clean_examples
0787c40
make -C __clean_examples distclean
0787c40
rm -rf __clean_examples/Makefile.am __clean_examples/{win32*,macosx*,BeOS}
0787c40
mkdir __dist_examples
0787c40
mv __clean_examples __dist_examples/examples
0787c40
018b46e
%post -p /sbin/ldconfig
0a70b54
018b46e
%postun -p /sbin/ldconfig
0a70b54
0a70b54
%files
0787c40
%defattr(-,root,root,-)
0787c40
%doc authors copying readme news
0a70b54
%{_libdir}/lib*.so.*
0a70b54
0a70b54
%files devel
0787c40
%defattr(-,root,root,-)
0787c40
%doc __dist_examples/examples
0a70b54
%{_libdir}/*.so
0a70b54
%{_libdir}/pkgconfig/libagg.pc
018b46e
%{_includedir}/agg2/
725dd37
%{_datadir}/aclocal/libagg.m4
0a70b54
0a70b54
%clean
0787c40
rm -rf $RPM_BUILD_ROOT
0a70b54
0a70b54
%changelog
a07f226
* Fri Jan 29 2010 Kevin Kofler <Kevin@tigcc.ticalc.org> - 2.5-9
a07f226
- also remove include/agg_conv_gpc.h as it also carries a copy of the non-Free
a07f226
  GPC license (upstream also recommends removing that file under
a07f226
  http://www.antigrain.com/license/index.html#toc0005) (#559611)
a07f226
ea52d58
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.5-8
ea52d58
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
ea52d58
189c52d
* Mon Feb 23 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.5-7
189c52d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
189c52d
7b66c73
* Tue Feb  5 2008 Patrice Dumas <pertusus@free.fr> - 2.5-6
0787c40
- remove non free files
0787c40
- minor cleanups
7b66c73
- parallel build fails
0787c40
2cb3f7f
* Fri Aug 03 2007 Caolan McNamara <caolanm@redhat.com> - 2.5-4
2cb3f7f
- clarify license
c6823f5
- source upstream silently changed even though version remained
c6823f5
  unchanged
2cb3f7f
5fc595a
* Tue Jun 26 2007 Caolan McNamara <caolanm@redhat.com> - 2.5-3
5fc595a
- Resolves: rhbz#245650 -devel Require: freetype-devel
5fc595a
018b46e
* Mon Apr 23 2007 Caolan McNamara <caolanm@redhat.com> - 2.5-2
018b46e
- Resolves: rhbz#237493 misapplied patch
018b46e
a8d0904
* Sat Jan 06 2007 Caolan McNamara <caolanm@redhat.com> - 2.5-1
a8d0904
- bump to 2.5
a8d0904
9d3d2f0
* Fri Nov 10 2006 Caolan McNamara <caolanm@redhat.com> - 2.4-3
9d3d2f0
- Resolves: rhbz#214970 rebuild with new 2.4 sources
9d3d2f0
352eccc
* Wed Jul 12 2006 Jesse Keating <jkeating@redhat.com> - 2.4-2.1
352eccc
- rebuild
352eccc
0cb80b7
* Mon Jul 10 2006 Caolan McNamara <caolanm@redhat.com> - 2.4-2
0cb80b7
- rh#198174# add extra links from libs to their runtime requirements
0cb80b7
725dd37
* Wed May 10 2006 Caolan McNamara <caolanm@redhat.com> - 2.4-1
725dd37
- next version
725dd37
06d124f
* Fri Feb 17 2006 Karsten Hopp <karsten@redhat.de> 2.3-4
06d124f
- add BuildRequires freetype-devel for ft2build.h
06d124f
38cd8ef
* Mon Feb 13 2006 Caolan McNamara <caolanm@redhat.com> - 2.3-3
38cd8ef
- BuildRequires
38cd8ef
313610d
* Fri Feb 10 2006 Jesse Keating <jkeating@redhat.com> - 2.3-2.1
313610d
- bump again for double-long bug on ppc(64)
313610d
558207e
* Wed Feb 08 2006 Caolan McNamara <caolanm@redhat.com> - 2.3-2
558207e
- rh#180341# BuildRequires
558207e
46411e6
* Tue Feb 07 2006 Jesse Keating <jkeating@redhat.com> - 2.3-1.1
46411e6
- rebuilt for new gcc4.1 snapshot and glibc changes
46411e6
0a70b54
* Wed Nov 23 2005 Caolan McNamara <caolanm@redhat.com> 2.3-1
0a70b54
- initial import