File agg.spec of Package agg

#
# spec file for package agg
#
# Copyright (c) 2011 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
BuildRequires:  libtool
License:        GPLv2+
Group:          Development/Libraries/C and C++
Summary:        C++ SVG Rendering Library
Version:        2.5
Release:        170
Url:            http://antigrain.com
Provides:       agg = %version
Obsoletes:      agg <= 2.5
%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
Source1:        agg-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.

%package -n libagg2
License:        GPLv2+
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
License:        GPLv2+
Summary:        C++ SVG rendering library
Group:          Development/Libraries/C and C++
Requires:       libagg2 = %{version}
Requires:       freetype2-devel 
Requires:       glibc-devel

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

%prep
%setup -q -n agg-%version
%patch
%patch1
%patch2 -p0

%build
mkdir m4
autoreconf -fiv
%configure --disable-static
%{__make} %{?_smp_mflags}

%install
%makeinstall
rm -f $RPM_BUILD_ROOT%{_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
openSUSE Build Service is sponsored by