2015-02-03 12:24:59 +00:00
|
|
|
#
|
|
|
|
# spec file for package geos
|
|
|
|
#
|
2015-05-08 07:50:00 +00:00
|
|
|
# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
|
2015-02-03 12:24:59 +00:00
|
|
|
#
|
|
|
|
# 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: geos
|
|
|
|
Version: 3.4.2
|
|
|
|
Release: 0
|
|
|
|
Summary: Geometry Engine - Open Source
|
2015-02-04 09:43:33 +00:00
|
|
|
License: LGPL-2.1
|
2015-02-03 12:24:59 +00:00
|
|
|
Group: Development/Libraries/C and C++
|
|
|
|
Url: http://trac.osgeo.org/geos/
|
|
|
|
Source0: http://download.osgeo.org/%{name}/%{name}-%{version}.tar.bz2
|
|
|
|
Source1: %{name}-config.1
|
|
|
|
Source2: %{name}.ini
|
|
|
|
Patch0: libruby.patch
|
|
|
|
BuildRequires: doxygen
|
|
|
|
BuildRequires: gcc-c++
|
2015-05-08 07:50:00 +00:00
|
|
|
BuildRequires: libtool
|
2015-02-03 12:24:59 +00:00
|
|
|
BuildRequires: python-devel
|
|
|
|
BuildRequires: swig
|
|
|
|
Provides: libgeos = %{version}
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
%if 0%{?suse_version} > 1210
|
|
|
|
BuildRequires: ruby
|
|
|
|
BuildRequires: ruby-devel
|
|
|
|
%endif
|
2015-02-03 13:45:15 +00:00
|
|
|
# Dependencies for opensuse but not for SLE-12
|
|
|
|
%if 0%{?suse_version} >= 1210 && 0%{?suse_version} != 1315
|
2015-05-08 07:50:00 +00:00
|
|
|
BuildRequires: chrpath
|
2015-02-03 13:45:15 +00:00
|
|
|
BuildRequires: php-devel
|
|
|
|
BuildRequires: php5-pear-phpunit
|
|
|
|
%endif
|
2015-02-03 12:24:59 +00:00
|
|
|
|
|
|
|
%description
|
|
|
|
GEOS (Geometry Engine - Open Source) is a C++ port of the Java Topology
|
|
|
|
Suite (JTS). As such, it aims to contain the complete functionality of JTS
|
|
|
|
in C++. This includes all the OpenGIS "Simple Features for SQL" spatial
|
|
|
|
predicate functions and spatial operators, as well as specific JTS topology
|
|
|
|
functions such as IsValid().
|
|
|
|
|
|
|
|
%package -n python-%{name}
|
|
|
|
Summary: Python bindings for Geometry Engine
|
|
|
|
Group: Development/Libraries/Python
|
|
|
|
Requires: %{name} = %{version}
|
|
|
|
%if 0%{?suse_version} > 1210
|
|
|
|
%py_requires
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%description -n python-%{name}
|
|
|
|
GEOS (Geometry Engine - Open Source) is a C++ port of the Java Topology
|
|
|
|
Suite (JTS). As such, it aims to contain the complete functionality of
|
|
|
|
JTS in C++. This includes all the OpenGIS "Simple Features for SQL" spatial
|
|
|
|
predicate functions and spatial operators, as well as specific JTS topology
|
|
|
|
functions such as IsValid()
|
|
|
|
|
2015-02-04 09:43:33 +00:00
|
|
|
This package contains python bindings for Geometry Engine.
|
2015-02-03 12:24:59 +00:00
|
|
|
|
2015-02-03 13:45:15 +00:00
|
|
|
%if 0%{?suse_version} >= 1210 && 0%{?suse_version} != 1315
|
2015-02-03 12:24:59 +00:00
|
|
|
%package -n php5-%{name}
|
|
|
|
Summary: PHP bindings for Geometry Engine
|
|
|
|
Group: Development/Libraries/Other
|
|
|
|
Requires: %{name} = %{version}
|
2015-05-08 07:50:00 +00:00
|
|
|
Requires: php5 >= %{phpversion}
|
2015-02-03 12:24:59 +00:00
|
|
|
|
|
|
|
%description -n php5-%{name}
|
|
|
|
GEOS (Geometry Engine - Open Source) is a C++ port of the Java Topology
|
|
|
|
Suite (JTS). As such, it aims to contain the complete functionality of
|
|
|
|
JTS in C++. This includes all the OpenGIS "Simple Features for SQL" spatial
|
|
|
|
predicate functions and spatial operators, as well as specific JTS topology
|
|
|
|
functions such as IsValid()
|
|
|
|
|
|
|
|
This package contains php bindings for Geometry Engine.
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%if 0%{?suse_version} > 1210
|
|
|
|
%package -n ruby-%{name}
|
|
|
|
Summary: Ruby bindings for Geometry Engine
|
|
|
|
Group: Development/Libraries/Other
|
|
|
|
Requires: %{name} = %{version}
|
|
|
|
Requires: ruby(abi) >= %{rb_ver}
|
|
|
|
|
|
|
|
%description -n ruby-%{name}
|
|
|
|
GEOS (Geometry Engine - Open Source) is a C++ port of the Java Topology
|
|
|
|
Suite (JTS). As such, it aims to contain the complete functionality of
|
|
|
|
JTS in C++. This includes all the OpenGIS "Simple Features for SQL" spatial
|
|
|
|
predicate functions and spatial operators, as well as specific JTS topology
|
|
|
|
functions such as IsValid()
|
|
|
|
|
|
|
|
This package contains ruby bindings for Geometry Engine.
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%package devel
|
|
|
|
Summary: Development files for GEOS
|
|
|
|
Group: Development/Libraries/C and C++
|
|
|
|
Requires: %{name} = %{version}
|
|
|
|
Provides: lib%{name}-devel = %{version}
|
|
|
|
|
|
|
|
%description devel
|
|
|
|
GEOS (Geometry Engine - Open Source) is a C++ port of the Java Topology
|
|
|
|
Suite (JTS). As such, it aims to contain the complete functionality of
|
|
|
|
JTS in C++. This includes all the OpenGIS "Simple Features for SQL" spatial
|
|
|
|
predicate functions and spatial operators, as well as specific JTS topology
|
|
|
|
functions such as IsValid()
|
|
|
|
|
|
|
|
This package contains the development files to build applications that
|
|
|
|
use GEOS.
|
|
|
|
|
|
|
|
%package doc
|
|
|
|
Summary: Development documentation for GEOS
|
|
|
|
Group: Development/Libraries/C and C++
|
|
|
|
%if 0%{?suse_version} > 1210
|
|
|
|
BuildArch: noarch
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%description doc
|
|
|
|
GEOS (Geometry Engine - Open Source) is a C++ port of the Java Topology
|
|
|
|
Suite (JTS). As such, it aims to contain the complete functionality of
|
|
|
|
JTS in C++. This includes all the OpenGIS "Simple Features for SQL" spatial
|
|
|
|
predicate functions and spatial operators, as well as specific JTS topology
|
|
|
|
functions such as IsValid()
|
|
|
|
|
|
|
|
This package contains the development documentation for GEOS.
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q
|
|
|
|
%patch0 -p1
|
|
|
|
|
|
|
|
%build
|
|
|
|
# disable internal libtool to avoid hardcoded r-path
|
|
|
|
%if 0%{?suse_version} > 1210
|
|
|
|
for makefile in `find . -type f -name 'Makefile.in'`; do
|
|
|
|
sed -i 's|@LIBTOOL@|%{_bindir}/libtool|g' $makefile
|
|
|
|
done
|
|
|
|
%endif
|
|
|
|
|
2015-05-08 07:50:00 +00:00
|
|
|
%configure \
|
|
|
|
--disable-static \
|
|
|
|
%if 0%{?suse_version} > 1210
|
|
|
|
--enable-ruby \
|
|
|
|
%endif
|
|
|
|
%if 0%{?suse_version} >= 1210 && 0%{?suse_version} != 1315
|
|
|
|
--enable-php \
|
|
|
|
%endif
|
|
|
|
--enable-python
|
2015-02-03 12:24:59 +00:00
|
|
|
|
|
|
|
make %{?_smp_mflags}
|
|
|
|
|
|
|
|
# Make doxygen documentation files
|
|
|
|
cd doc
|
|
|
|
make %{?_smp_mflags} doxygen-html
|
|
|
|
|
2015-05-16 08:53:20 +00:00
|
|
|
# tests fail with older releases and non-intel architectures
|
2015-05-08 07:50:00 +00:00
|
|
|
# while this was reported to upstream, there has been no reply
|
2015-02-03 12:24:59 +00:00
|
|
|
%if 0%{?suse_version} > 1210
|
2015-05-16 08:53:20 +00:00
|
|
|
%ifarch %ix86 x86_64
|
2015-02-03 12:24:59 +00:00
|
|
|
%check
|
|
|
|
make %{?_smp_mflags} check
|
|
|
|
%endif
|
2015-05-08 07:50:00 +00:00
|
|
|
%endif
|
2015-02-03 12:24:59 +00:00
|
|
|
|
|
|
|
%install
|
|
|
|
make DESTDIR=%{buildroot} install %{?_smp_mflags}
|
|
|
|
|
|
|
|
install -d -m 0755 %{buildroot}%{_mandir}/man1
|
|
|
|
install -D -m 0644 %{SOURCE1} %{buildroot}%{_mandir}/man1/
|
|
|
|
|
2015-02-03 13:45:15 +00:00
|
|
|
%if 0%{?suse_version} >= 1210 && 0%{?suse_version} != 1315
|
2015-02-03 12:24:59 +00:00
|
|
|
install -d -m 0755 %{buildroot}%{_sysconfdir}/php.d
|
|
|
|
install -D -m 0644 %{SOURCE2} %{buildroot}%{_sysconfdir}/php.d/
|
|
|
|
%endif
|
|
|
|
|
2015-05-16 08:53:20 +00:00
|
|
|
# do not ship static libraries or la files
|
2015-02-03 12:24:59 +00:00
|
|
|
rm -rf %{buildroot}/%{_libdir}/*.a
|
2015-05-08 07:50:00 +00:00
|
|
|
rm -rf %{buildroot}/%{_libdir}/*.la
|
2015-02-03 12:24:59 +00:00
|
|
|
rm -rf %{buildroot}/%{python_sitearch}/%{name}/*.a
|
2015-05-08 07:50:00 +00:00
|
|
|
rm -rf %{buildroot}/%{python_sitearch}/%{name}/*.la
|
2015-02-03 12:24:59 +00:00
|
|
|
rm -rf %{buildroot}/%{rb_vendorarchdir}/*.a
|
2015-05-08 07:50:00 +00:00
|
|
|
rm -rf %{buildroot}/%{rb_vendorarchdir}/*.la
|
2015-02-03 12:24:59 +00:00
|
|
|
|
2015-02-03 13:45:15 +00:00
|
|
|
%if 0%{?suse_version} >= 1210 && 0%{?suse_version} != 1315
|
2015-02-03 12:24:59 +00:00
|
|
|
chrpath --delete %{buildroot}%{_libdir}/php5/extensions/%{name}.so
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%post -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%postun -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%doc AUTHORS COPYING NEWS README TODO
|
|
|
|
%{_libdir}/lib%{name}-%{version}.so*
|
|
|
|
%{_libdir}/lib%{name}_c.so.*
|
|
|
|
|
|
|
|
%files -n python-%{name}
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%doc AUTHORS COPYING NEWS README TODO
|
|
|
|
%{python_sitelib}/*
|
|
|
|
%{python_sitearch}/*
|
|
|
|
|
2015-02-03 13:45:15 +00:00
|
|
|
%if 0%{?suse_version} >= 1210 && 0%{?suse_version} != 1315
|
2015-02-03 12:24:59 +00:00
|
|
|
%files -n php5-%{name}
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%doc AUTHORS COPYING NEWS README TODO
|
|
|
|
%dir %{_sysconfdir}/php.d
|
|
|
|
%config %{_sysconfdir}/php.d/%{name}.ini
|
|
|
|
%{_libdir}/php5/extensions/%{name}.so
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%if 0%{?suse_version} > 1210
|
|
|
|
%files -n ruby-%{name}
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%doc AUTHORS COPYING NEWS README TODO
|
|
|
|
%{rb_vendorarchdir}/%{name}.so
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%files -n %{name}-devel
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%doc AUTHORS COPYING NEWS README TODO
|
2015-05-08 07:50:00 +00:00
|
|
|
%{_mandir}/man1/%{name}-config.1.gz
|
2015-02-03 12:24:59 +00:00
|
|
|
%{_bindir}/%{name}-config
|
|
|
|
%{_includedir}/*
|
|
|
|
%{_libdir}/lib%{name}.so
|
|
|
|
%{_libdir}/lib%{name}_c.so
|
|
|
|
|
|
|
|
%files -n %{name}-doc
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%doc AUTHORS COPYING NEWS README TODO
|
|
|
|
%doc doc/doxygen_docs
|
|
|
|
|
|
|
|
%changelog
|