File agg.spec of Package agg

#
# spec file for package agg (Version 2.5)
#
# Copyright (c) 2008 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via http://bugs.opensuse.org/
#

# norootforbuild


Name:           agg
BuildRequires:  SDL-devel freetype2-devel gcc-c++ libbz2-devel xorg-x11-devel
License:        GPL v2 or later
Group:          Development/Libraries/C and C++
Summary:        C++ SVG Rendering Library
Version:        2.5
Release:        157
Url:            http://antigrain.com
%if 0
Source:         %{name}-%{version}.tar.bz2
%else
# WARNING: This is not a comment, but the real command to repack souce:
#%(sh %{_sourcedir}/%{name}-patch-source %{name}-%{version}.tar.bz2)
Source:         %{name}-%{version}-patched.tar.bz2
%endif
Source1:        %{name}-patch-source
Patch:          agg-automake-fix.diff
Patch1:         agg-gpc.patch
Patch2:         agg-2.5.dif
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
Very fast and complete library to render SVG graphics. It provides a
C++ interface.



Authors:
--------
    Maxim Shemanarev (McSeem)

%package devel
License:        GPL v2 or later
Summary:        C++ SVG rendering library
Group:          Development/Libraries/C and C++
Requires:       agg = %{version}
Requires:       xorg-x11-libX11-devel xorg-x11-libxcb-devel xorg-x11-libXau-devel

%description devel
Very fast and complete library to render SVG graphics. It provides a
C++ interface.



Authors:
--------
    Maxim Shemanarev (McSeem)

%prep
%setup -q
%patch
%patch1
%patch2 -p0

%build
autoreconf -fi
%configure
make

%install
%makeinstall
rm -f $RPM_BUILD_ROOT%{_libdir}/lib*.la
rm -f $RPM_BUILD_ROOT%{_libdir}/lib*.a

%post -p /sbin/ldconfig

%postun -p /sbin/ldconfig

%files
%defattr(-,root,root)
%_libdir/lib*.so.*

%files devel
%defattr(-,root,root)
%doc authors ChangeLog copying news readme
%{_includedir}/*
%{_libdir}/lib*.so
%{_libdir}/pkgconfig/*.pc
%{_datadir}/aclocal/*.m4

%changelog
* Tue Sep 30 2008 kukuk@suse.de
- Adjust configure script for new libtool
* Mon Sep 10 2007 sbrabec@suse.cz
- Added a script for automatic stripping of gpc on submit,
  removed unusable header related to gpc (#286682).
* Tue Sep 04 2007 adrian@suse.de
- remove gpc/ directory in tar ball due to its license #286682
* Thu Jun 21 2007 tiwai@suse.de
- updated to version 2.5:
  * released under GPL
  * many improvements and fixes since 2.2, see
  http://antigrain.com/news/
- enabled SDL
* Mon Apr 02 2007 adrian@suse.de
- add libbz2-devel to BuildRequires
- fix -devel package Requires
* Wed Jan 25 2006 mls@suse.de
- converted neededforbuild to BuildRequires
* Mon Nov 15 2004 adrian@suse.de
- make gpc support optional and disable it by default.
  This solves a license issue and make this library GPL compliant again.
* Tue Oct 26 2004 adrian@suse.de
- initial package of version 2.2
- X11 only package, no SDL library yet
openSUSE Build Service is sponsored by