f73cb4b
Name:		geos
a73ea68
Version:	3.4.2
79ec8b0
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
79e52f2
BuildRequires:	python-devel php-devel
Balint Cristian 170900e
Balint Cristian 170900e
%{!?python_sitearch: %define python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")}
37c4c56
%{!?php_sitearch: %define php_sitearch %{_libdir}/php/modules}
Shawn McCann ec62607
Shawn McCann ec62607
%description
Shawn McCann ec62607
GEOS (Geometry Engine - Open Source) is a C++ port of the Java Topology 
Shawn McCann ec62607
Suite (JTS). As such, it aims to contain the complete functionality of 
Shawn McCann ec62607
JTS in C++. This includes all the OpenGIS "Simple Features for SQL" spatial 
Shawn McCann ec62607
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
Shawn McCann ec62607
GEOS (Geometry Engine - Open Source) is a C++ port of the Java Topology 
Shawn McCann ec62607
Suite (JTS). As such, it aims to contain the complete functionality of 
Shawn McCann ec62607
JTS in C++. This includes all the OpenGIS "Simple Features for SQL" spatial 
Shawn McCann ec62607
predicate functions and spatial operators, as well as specific JTS topology 
Shawn McCann ec62607
functions such as IsValid()
Shawn McCann ec62607
Shawn McCann ec62607
This package contains the development files to build applications that 
Shawn McCann ec62607
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}
Balint Cristian 170900e
Balint Cristian 170900e
%description python
Balint Cristian 170900e
Python module to build applications using GEOS and python
Balint Cristian 170900e
37c4c56
%package php
37c4c56
Summary:	PHP modules for GEOS
37c4c56
Group:		Development/Libraries
37c4c56
Requires:	%{name} = %{version}-%{release}
37c4c56
37c4c56
%description php
37c4c56
PHP module to build applications using GEOS and PHP
Balint Cristian 170900e
Shawn McCann ec62607
%prep
25e8e69
%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
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
79e52f2
%configure --disable-static --disable-dependency-tracking --enable-python --enable-php
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
f73cb4b
rm -rf %{buildroot}
f73cb4b
make DESTDIR=%{buildroot} install
Balint Cristian 170900e
37c4c56
# install php config file
37c4c56
mkdir -p %{buildroot}%{_sysconfdir}/php.d/
37c4c56
cat > %{buildroot}%{_sysconfdir}/php.d/%{name}.ini <
37c4c56
; Enable %{name} extension module
37c4c56
extension=geos.so
37c4c56
EOF
37c4c56
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
f73cb4b
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
%defattr(-,root,root,-)
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
%defattr(-,root,root,-)
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
%defattr(-,root,root,-)
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
37c4c56
%files php
37c4c56
%defattr(-,root,root,-)
37c4c56
%{php_sitearch}/%{name}.so
37c4c56
%config(noreplace) %{_sysconfdir}/php.d/%{name}.ini
Shawn McCann ec62607
Shawn McCann ec62607
%changelog
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