agg/agg.spec

Name: agg
Summary: Anti-Grain Geometry, a rendering engine
Version: 2.5
Release: 1
License: GPL
Group: System Environment/Libraries
URL: http://www.antigrain.com/
Description: Anti-Grain Geometry is a high quality rendering engine for C++.

CentOS 7 x86_64

The build was not successful.

Build Status

CentOS 6 x86_64

The build was not successful.

Build Status

Contents

The spec file used by the build system currently has the following contents:

# $Id$
# Authority: dag

### EL5 ships with agg-2.4-2.1
# ExclusiveDist: el2 el3 el4 el6

%{?el4:%define _without_modxorg 1}
%{?el3:%define _without_modxorg 1}
%{?el2:%define _without_modxorg 1}

Summary: Anti-Grain Geometry, a rendering engine
Name: agg
Version: 2.5
Release: 1%{?dist}
License: GPL
Group: System Environment/Libraries
URL: http://www.antigrain.com/

Source: http://www.antigrain.com/agg-%{version}.tar.gz
Patch0: agg-2.4-depends.patch
Patch1: agg-2.5-pkgconfig.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root

BuildRequires: automake, libtool, freetype-devel, SDL-devel
%{!?_without_modxorg:BuildRequires: libX11-devel}
%{?_without_modxorg:BuildRequires: XFree86-devel}

%description
Anti-Grain Geometry is a high quality rendering engine for C++.

%package devel
Summary: Header files, libraries and development documentation for %{name}.
Group: Development/Libraries
Requires: %{name} = %{version}-%{release}
Requires: freetype-devel

%description devel
This package contains the header files, static libraries and development
documentation for %{name}. If you like to develop programs using %{name},
you will need to install %{name}-devel.

%prep
%setup
%patch0 -p1 -b .agg-2.4-depends
%patch1 -p1 -b .agg-2.5-pkgconfig.patch

%build
sh autogen.sh
%configure \
    --disable-gpc \
    --disable-static
%{__make} %{?_smp_mflags}

%install
%{__rm} -rf %{buildroot}
%{__make} install DESTDIR="%{buildroot}"

%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig

%clean
%{__rm} -rf %{buildroot}

%files
%defattr(-, root, root, 0755)
%doc authors ChangeLog copying install news readme
%{_libdir}/libagg*.so.*

%files devel
%defattr(-, root, root, 0755)
%{_datadir}/aclocal/libagg.m4
%{_includedir}/agg2/
%{_libdir}/libagg*.so
%{_libdir}/pkgconfig/libagg.pc
%exclude %{_libdir}/libagg*.la

%changelog
* Mon Sep 24 2007 Dag Wieers <dag@wieers.com> - 2.5-1
- Initial package. (using DAR)