File agg.spec of Package agg
#
# spec file for package agg
#
# Copyright (c) 2015 SUSE LINUX 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/
#
Name:           agg
Version:        2.5
Release:        0
Summary:        C++ SVG Rendering Library
License:        GPL-2.0+
Group:          Development/Libraries/C and C++
Url:            http://antigrain.com
BuildRequires:  SDL-devel
BuildRequires:  freetype2-devel
BuildRequires:  gcc-c++
BuildRequires:  libbz2-devel
BuildRequires:  libtool
BuildRequires:  xorg-x11-devel
%if 0
Source:         agg-%{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:         agg-%{version}-patched.tar.bz2
%endif
Source1000:     baselibs.conf
Source1:        agg-patch-source
Patch0:         agg-automake-fix.diff
Patch1:         agg-gpc.patch
Patch2:         agg-2.5.dif
Patch3:         agg-remove-const-violation.patch
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
%description
Very fast and complete library to render SVG graphics. It provides a
C++ interface.
%package -n libagg2
Summary:        C++ SVG rendering library
Group:          Development/Libraries/C and C++
%description -n libagg2
Very fast and complete library to render SVG graphics. It provides a
C++ interface.
%package devel
Summary:        C++ SVG rendering library
Group:          Development/Libraries/C and C++
Requires:       freetype2-devel
Requires:       glibc-devel
Requires:       libagg2 = %{version}
%description devel
Very fast and complete library to render SVG graphics. It provides a
C++ interface.
%prep
%setup -q
%patch0
%patch1
%patch2 -p0
%patch3 -p1
%build
mkdir m4
autoreconf -fiv
%configure --disable-static
make -j1
%install
%make_install
rm -f %{buildroot}%{_libdir}/lib*.la
%post -n libagg2 -p /sbin/ldconfig
%postun -n libagg2 -p /sbin/ldconfig
%files -n libagg2
%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