f73cb4b
Name:		geos
d84b15b
Version:	3.6.1
e1d9513
Release:	2%{?dist}
f73cb4b
Summary:	GEOS is a C++ port of the Java Topology Suite
f73cb4b
f73cb4b
Group:		Applications/Engineering
f73cb4b
License:	LGPLv2
f73cb4b
URL:		http://trac.osgeo.org/geos/
25e8e69
Source0:	http://download.osgeo.org/%{name}/%{name}-%{version}.tar.bz2
f73cb4b
Patch0:		geos-gcc43.patch
3ad8d92
f73cb4b
BuildRoot:	%{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
f73cb4b
BuildRequires:	doxygen libtool
d84b15b
BuildRequires:	python-devel
Balint Cristian 170900e
d84b15b
%{!?python_sitearch: %global python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")}
Shawn McCann ec62607
Shawn McCann ec62607
%description
30a3c0a
GEOS (Geometry Engine - Open Source) is a C++ port of the Java Topology
30a3c0a
Suite (JTS). As such, it aims to contain the complete functionality of
30a3c0a
JTS in C++. This includes all the OpenGIS "Simple Features for SQL" spatial
30a3c0a
predicate functions and spatial operators, as well as specific JTS topology
Shawn McCann ec62607
functions such as IsValid()
Shawn McCann ec62607
Shawn McCann ec62607
%package devel
f73cb4b
Summary:	Development files for GEOS
f73cb4b
Group:		Development/Libraries
1da1bf3
Requires:	%{name} = %{version}-%{release}
Shawn McCann ec62607
Shawn McCann ec62607
%description devel
30a3c0a
GEOS (Geometry Engine - Open Source) is a C++ port of the Java Topology
30a3c0a
Suite (JTS). As such, it aims to contain the complete functionality of
30a3c0a
JTS in C++. This includes all the OpenGIS "Simple Features for SQL" spatial
30a3c0a
predicate functions and spatial operators, as well as specific JTS topology
30a3c0a
functions such as IsValid().
Shawn McCann ec62607
30a3c0a
This package contains the development files to build applications that
30a3c0a
use GEOS.
Shawn McCann ec62607
Balint Cristian 170900e
%package python
f73cb4b
Summary:	Python modules for GEOS
f73cb4b
Group:		Development/Libraries
1da1bf3
Requires:	%{name} = %{version}-%{release}
30a3c0a
BuildRequires:	swig
Balint Cristian 170900e
Balint Cristian 170900e
%description python
Balint Cristian 170900e
Python module to build applications using GEOS and python
Balint Cristian 170900e
Shawn McCann ec62607
%prep
30a3c0a
%setup -q
Balint Cristian 170900e
%patch0 -p0 -b .gcc43
Shawn McCann ec62607
Shawn McCann ec62607
%build
Balint Cristian 170900e
Balint Cristian 170900e
# fix python path on 64bit
Balint Cristian 170900e
sed -i -e 's|\/lib\/python|$libdir\/python|g' configure
Balint Cristian 170900e
sed -i -e 's|.get_python_lib(0|.get_python_lib(1|g' configure
Balint Cristian 491e50f
sed -i -e 's|find \$i -name libpython|find \$i\/lib*\/ -name libpython|g' configure
Balint Cristian 170900e
6074c51
# isnan is in math.h, std::isnan is in cmath
6074c51
sed -i -e 's|= isnan(|= std::isnan(|g' configure
6074c51
sed -i -e 's|(isnan(|(std::isnan(|g' include/geos/platform.h.in
6074c51
Balint Cristian 170900e
# disable internal libtool to avoid hardcoded r-path
Balint Cristian 170900e
for makefile in `find . -type f -name 'Makefile.in'`; do
Balint Cristian 170900e
sed -i 's|@LIBTOOL@|%{_bindir}/libtool|g' $makefile
Balint Cristian 170900e
done
Balint Cristian 170900e
d84b15b
%configure --disable-static --disable-dependency-tracking --enable-python
79e52f2
79e52f2
# Touch the file, since we are not using ruby bindings anymore:
79e52f2
# Per http://lists.osgeo.org/pipermail/geos-devel/2009-May/004149.html
79e52f2
touch swig/python/geos_wrap.cxx
ff338a3
79e52f2
make %{?_smp_mflags}
Shawn McCann ec62607
Shawn McCann ec62607
# Make doxygen documentation files
Shawn McCann ec62607
cd doc
Shawn McCann ec62607
make doxygen-html
Shawn McCann ec62607
Shawn McCann ec62607
%install
30a3c0a
%{__rm} -rf %{buildroot}
f73cb4b
make DESTDIR=%{buildroot} install
Balint Cristian 170900e
Balint Cristian 170900e
%check
Balint Cristian 170900e
Balint Cristian 170900e
# test module
Balint Cristian 170900e
make %{?_smp_mflags} check || exit 0
Shawn McCann ec62607
Shawn McCann ec62607
%clean
30a3c0a
%{__rm} -rf %{buildroot}
Shawn McCann ec62607
Shawn McCann ec62607
%post -p /sbin/ldconfig
Shawn McCann ec62607
Shawn McCann ec62607
%postun -p /sbin/ldconfig
Shawn McCann ec62607
Shawn McCann ec62607
%files
Shawn McCann ec62607
%doc AUTHORS COPYING NEWS README TODO
25e8e69
%{_libdir}/libgeos-%{version}.so
8d59f26
%{_libdir}/libgeos_c.so.1*
Balint Cristian 170900e
%exclude %{_libdir}/*.a
Shawn McCann ec62607
Shawn McCann ec62607
%files devel
Shawn McCann ec62607
%doc doc/doxygen_docs
Shawn McCann ec62607
%{_bindir}/geos-config
Shawn McCann ec62607
%{_includedir}/*
Balint Cristian 170900e
%{_libdir}/libgeos.so
Balint Cristian 170900e
%{_libdir}/libgeos_c.so
Shawn McCann ec62607
%exclude %{_libdir}/*.la
Balint Cristian 170900e
%exclude %{_libdir}/*.a
Balint Cristian 170900e
Balint Cristian 170900e
%files python
Balint Cristian 170900e
%dir %{python_sitearch}/%{name}
Balint Cristian 170900e
%exclude %{python_sitearch}/%{name}/_%{name}.a
Balint Cristian 170900e
%exclude %{python_sitearch}/%{name}/_%{name}.la
Balint Cristian 170900e
%{python_sitearch}/%{name}.pth
Balint Cristian 170900e
%{python_sitearch}/%{name}/*.py
Balint Cristian 170900e
%{python_sitearch}/%{name}/*.py?
Balint Cristian 170900e
%{python_sitearch}/%{name}/_%{name}.so
Balint Cristian 170900e
Shawn McCann ec62607
%changelog
e1d9513
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 3.6.1-2
e1d9513
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
e1d9513
d84b15b
* Wed Dec 28 2016 Devrim Gündüz <devrim@gunduz.org> - 3.6.1-1
d84b15b
- Update to 3.6.1
d84b15b
- Remove -php subpackage, it is now a separate project.
d84b15b
63d1a88
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.5.0-4
63d1a88
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
63d1a88
6074c51
* Tue Apr  5 2016 Tom Hughes <tom@compton.nu> - 3.5.0-3
6074c51
- Patch FTBFS with gcc 6. Fixes #1305276 .
6074c51
36c3865
* Wed Feb 03 2016 Fedora Release Engineering <releng@fedoraproject.org> - 3.5.0-2
36c3865
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
36c3865
30a3c0a
* Tue Oct 13 2015 Devrim GUNDUZ <devrim@gunduz.org> - 3.5.0-1
30a3c0a
- Update to 3.5.0, per changes described at:
30a3c0a
  http://trac.osgeo.org/geos/browser/tags/3.5.0/NEWS
30a3c0a
- Add swig as BR to python subpackage, as it does not build without that.
30a3c0a
1028db6
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.4.2-6
1028db6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
1028db6
875a69d
* Sat May 02 2015 Kalev Lember <kalevlember@gmail.com> - 3.4.2-5
875a69d
- Rebuilt for GCC 5 C++11 ABI change
875a69d
Orion Poplawski 73c4b9d
* Thu Feb 26 2015 Orion Poplawski <orion@cora.nwra.com> - 3.4.2-4
Orion Poplawski 73c4b9d
- Rebuild for gcc 5 C++11 ABI
Orion Poplawski 73c4b9d
e90233c
* Sat Aug 16 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.4.2-3
e90233c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
e90233c
79ec8b0
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.4.2-2
79ec8b0
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
79ec8b0
a73ea68
* Wed Sep 11 2013 Devrim GUNDUZ <devrim@gunduz.org> - 3.4.2-1
a73ea68
- Update to 3.4.2, per changes described in:
a73ea68
  http://trac.osgeo.org/geos/browser/tags/3.4.2/NEWS
6896c2a
- Remove Patch2, it is now in upstream.
79e52f2
- Disable ruby bindings
ae4250e
- Remove all conditionals -- no more RHEL 4!
a73ea68
361dbb8
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.3.8-3
361dbb8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
361dbb8
f52ca0d
* Wed Mar 13 2013 Vít Ondruch <vondruch@redhat.com> - 3.3.8-2
f52ca0d
- Rebuild for https://fedoraproject.org/wiki/Features/Ruby_2.0.0
f52ca0d
6c90589
* Wed Mar 6 2013 Devrim GUNDUZ <devrim@gunduz.org> - 3.3.8-1
6c90589
- Update to 3.3.8, per changes described in:
6c90589
  http://trac.osgeo.org/geos/browser/tags/3.3.8/NEWS
6c90589
eb8b91e
* Fri Jan 25 2013 Devrim GUNDUZ <devrim@gunduz.org> - 3.3.7-1
eb8b91e
- Update to 3.3.7, per changes described in:
eb8b91e
  http://trac.osgeo.org/geos/browser/tags/3.3.7/NEWS
eb8b91e
ddd737a
* Fri Nov 16 2012 Devrim GUNDUZ <devrim@gunduz.org> - 3.3.6-1
ddd737a
- Update to 3.3.6, per changes described in:
ddd737a
  http://trac.osgeo.org/geos/browser/tags/3.3.6/NEWS
ddd737a
3ad8d92
* Tue Nov 13 2012 Devrim GUNDUZ <devrim@gunduz.org> - 3.3.5-1
3ad8d92
- Update to 3.3.5
e27d9c3
- Remove patch3, already in upstream.
3ad8d92
3ffcb89
* Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.3.2-3
3ffcb89
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
3ffcb89
ff338a3
* Mon Feb 27 2012 Vít Ondruch <vondruch@redhat.com> - 3.3.2-2
ff338a3
- Rebuilt for Ruby 1.9.3.
ff338a3
- Rebuilt for PHP 5.4.
ff338a3
87b6e62
* Mon Jan 09 2012 Devrim GUNDUZ <devrim@gunduz.org> - 3.3.2-1
87b6e62
- Update to 3.3.2
87b6e62
8d59f26
* Tue Dec 27 2011 Rex Dieter <rdieter@fedoraproject.org> 3.3.1-3
8d59f26
- track soname so abi bumps aren't a surprise
8d59f26
37c4c56
* Tue Oct 18 2011 Devrim GUNDUZ <devrim@gunduz.org> - 3.3.1-2
37c4c56
- Enable PHP bindings, per Peter Hopfgartner, bz #746574
37c4c56
e24eb9b
* Tue Oct 4 2011 Devrim GUNDUZ <devrim@gunduz.org> - 3.3.1-1
e24eb9b
- Update to 3.3.1
e24eb9b
e1ad45f
* Wed Jun 1 2011 Devrim GUNDUZ <devrim@gunduz.org> - 3.3.0-1
e1ad45f
- Update to 3.3.0
e1ad45f
- Remove 2 patches.
e1ad45f
e1282c6
* Mon May 9 2011 Devrim GUNDUZ <devrim@gunduz.org> - 3.2.2-1
e1282c6
- Update to 3.2.2
e1282c6
- Add a patch to fix builds on ARM, per bz #682538
e1282c6
c0217cd
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.2.1-4
c0217cd
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
c0217cd
b8e4b38
* Wed Jul 21 2010 David Malcolm <dmalcolm@redhat.com> - 3.2.1-3
b8e4b38
- Rebuilt for https://fedoraproject.org/wiki/Features/Python_2.7/MassRebuild
b8e4b38
042240d
* Wed Jul 21 2010 Dan Horák <dan[at]danny.cz> - 3.2.1-2
042240d
- fix build with swig 2.0.0
042240d
4d60d42
* Tue Mar 30 2010 Devrim GUNDUZ <devrim@gunduz.org> - 3.2.1-1
4d60d42
- Update to 3.2.1
4d60d42
Balint Cristian 491e50f
* Thu Mar 18 2010 Balint Cristian <cristian.balint@gmail.com> - 3.2.0-2
Balint Cristian 491e50f
- fix bz#473975
Balint Cristian 491e50f
25e8e69
* Sun Dec 20 2009 Devrim GUNDUZ <devrim@gunduz.org> - 3.2.0-1
25e8e69
- Update to 3.2.0
25e8e69
1da1bf3
* Thu Dec 03 2009 Devrim GÜNDÜZ <devrim@gunduz.org> - 3.2.0-rc3_1.1
1da1bf3
- Fix spec (dep error).
1da1bf3
c38b476
* Wed Dec 2 2009 Devrim GUNDUZ <devrim@gunduz.org> - 3.2.0rc3-1
c38b476
- Update to 3.2.0 rc3
c38b476
63ac400
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.1.1-2
63ac400
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
63ac400
f73cb4b
* Thu Jun 18 2009 Devrim GUNDUZ <devrim@gunduz.org> - 3.1.1-1
f73cb4b
- Update to 3.1.1
f73cb4b
- Update URL and download URL.
f73cb4b
- Apply cosmetic changes to spec file.
f73cb4b
f73cb4b
* Sun Apr 26 2009 Devrim GUNDUZ <devrim@gunduz.org> - 3.1.0-1
f73cb4b
- Update to 3.1.0
f73cb4b
b8ad114
* Tue Feb 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.0.3-2
b8ad114
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
b8ad114
Balint Cristian f3f62fd
* Sat Dec 06 2008 Balint Cristian <rezso@rdsor.ro> - 3.0.3-1
Balint Cristian f3f62fd
- new upstream stable
Balint Cristian f3f62fd
c5f7ed6
* Sat Nov 29 2008 Ignacio Vazquez-Abrams <ivazqueznet+rpm@gmail.com> - 3.0.1-2
c5f7ed6
- Rebuild for Python 2.6
c5f7ed6
Balint Cristian d305802
* Fri Oct 17 2008 Balint Cristian <rezso@rdsor.ro> - 3.0.1-1
Balint Cristian d305802
- new stable bugfix
Balint Cristian d305802
- fix another gcc43 header
Balint Cristian d305802
Balint Cristian ddf3bf1
* Wed May 28 2008 Balint Cristian <rezso@rdsor.ro> - 3.0.0-4
Balint Cristian ddf3bf1
- disable bindings for REL4
Balint Cristian ddf3bf1
Balint Cristian e217f82
* Wed Apr 23 2008 Balint Cristian <rezso@rdsor.ro> - 3.0.0-3
Balint Cristian e217f82
- require ruby too
Balint Cristian e217f82
Balint Cristian 92bafc9
* Wed Apr 23 2008 Balint Cristian <rezso@rdsor.ro> - 3.0.0-2
Balint Cristian 92bafc9
- remove python-abi request, koji fails
Balint Cristian 92bafc9
Balint Cristian 170900e
* Sun Apr 20 2008 Balint Cristian <rezso@rdsor.ro> - 3.0.0-1
Balint Cristian 170900e
- New branch upstream
Balint Cristian 170900e
- Fix gcc43 build
Balint Cristian 170900e
- Avoid r-path hardcoding
Balint Cristian 170900e
- Enable and include python module
Balint Cristian 170900e
- Enable and include ruby module
Balint Cristian 170900e
- Enable and run testsuite during build
Balint Cristian 170900e
8179a77
* Tue Feb 19 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 2.2.3-2
8179a77
- Autorebuild for GCC 4.3
8179a77
Shawn McCann f114c41
* Mon Jan   8 2007 Shawn McCann <mccann0011@hotmail.com> - 2.2.3-1
Shawn McCann f114c41
- Upgraded to geos-2.2.3 and removed patches
Shawn McCann f114c41
Shawn McCann 3b26e3a
* Sat Sep  16 2006 Shawn McCann <mccann0011@hotmail.com> - 2.2.1-5
Shawn McCann 3b26e3a
- Rebuild for Fedora Extras 6
Shawn McCann 3b26e3a
Shawn McCann c2130eb
* Sat Mar  4 2006 Shawn McCann <mccann0011@hotmail.com> - 2.2.1-4
Shawn McCann c2130eb
- Rebuild for Fedora Extras 5
Shawn McCann c2130eb
Shawn McCann 153e966
* Sat Jan 14 2006 Shawn McCann <smccann@canasoft.ca> - 2.2.1-3
Shawn McCann fcb0b59
- Updated gcc4 patch
Shawn McCann fcb0b59
Shawn McCann 2b442c1
* Wed Jan 11 2006 Ralf Corsépius <rc040203@freenet.de> - 2.2.1-2
Shawn McCann 2b442c1
- Add gcc4 patch
Shawn McCann 2b442c1
Shawn McCann ec62607
* Sat Dec 31 2005 Shawn McCann <smccann@canasoft.ca> - 2.2.1-1
Shawn McCann ec62607
- Updated to address review comments in bug 17039
Shawn McCann ec62607
Shawn McCann ec62607
* Fri Dec 30 2005 Shawn McCann <smccann@canasoft.ca> - 2.2.1-1
Shawn McCann ec62607
- Initial release