geos/geos.spec

Name: geos
Summary: GEOS (Geometry Engine, Open Source) topology library
Version: 3.2.2
Release: 1
License: LGPL
Group: System Environment/Libraries
URL: http://geos.refractions.net/
Description: GEOS is a complete C++ implementation of the functions and predicates defined in the OpenGIS "Simple Features for SQL" specification. It includes high quality implementations of all the important spatial relationships and operations, robust versions of all functions in the dimensionally extended 9 intersection predicate model, implementations of the operators, Buffer(), Union(), and Intersection(), and all other SFSQL functions including Area(), Length(), Centroid(), etc.

CentOS 7 x86_64

The build was not successful.

Build Status

CentOS 6 x86_64

The build was succesful. The following RPMs were generated:

Build Status

Contents

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

# $Id$
# Authority: dries
# Upstream: Paul Ramsey <pramsey$refractions,net>

Summary: GEOS (Geometry Engine, Open Source) topology library
Name: geos
Version: 3.2.2
Release: 1%{?dist}
License: LGPL
Group: System Environment/Libraries
URL: http://geos.refractions.net/

Source: http://download.osgeo.org/geos/geos-%{version}.tar.bz2
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root

BuildRequires: gcc-c++

%description
GEOS is a complete C++ implementation of the functions and predicates defined 
in the OpenGIS "Simple Features for SQL" specification. It includes high 
quality implementations of all the important spatial relationships and 
operations, robust versions of all functions in the dimensionally extended 
9 intersection predicate model, implementations of the operators, Buffer(), 
Union(), and Intersection(), and all other SFSQL functions including Area(), 
Length(), Centroid(), etc.

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

%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

%build
%configure
%{__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 TODO
%{_libdir}/libgeos*.so.*

%files devel
%{_bindir}/geos-config
#%{_bindir}/XMLTester
%{_includedir}/geos*.h
%{_includedir}/geos/
%{_libdir}/libgeos*.so
%exclude %{_libdir}/libgeos*.a
%exclude %{_libdir}/libgeos*.la

%changelog
* Wed Sep 08 2010 Steve Huff <shuff@vecna.org> - 3.2.2-1
- Updated to release 3.2.2.

* Mon Mar 23 2009 Dries Verachtert <dries@ulyssis.org> - 3.1.0-1
- Updated to release 3.1.0.

* Sun Jan  6 2008 Dries Verachtert <dries@ulyssis.org> - 3.0.0-1
- Updated to release 3.0.0.

* Mon Jul 23 2007 Dayne Broderson <dayne@alaska.edu> - 2.2.3-1
- Initial package, based on a spec file made by Mapping Hacks.