294 lines
9.1 KiB
RPMSpec
294 lines
9.1 KiB
RPMSpec
Name: geos
|
|
Version: 3.4.2
|
|
Release: 4%{?dist}
|
|
Summary: GEOS is a C++ port of the Java Topology Suite
|
|
|
|
Group: Applications/Engineering
|
|
License: LGPLv2
|
|
URL: http://trac.osgeo.org/geos/
|
|
Source0: http://download.osgeo.org/%{name}/%{name}-%{version}.tar.bz2
|
|
Patch0: geos-gcc43.patch
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
BuildRequires: doxygen libtool
|
|
BuildRequires: python-devel php-devel
|
|
|
|
%{!?python_sitearch: %define python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")}
|
|
%{!?php_sitearch: %define php_sitearch %{_libdir}/php/modules}
|
|
|
|
%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 devel
|
|
Summary: Development files for GEOS
|
|
Group: Development/Libraries
|
|
Requires: %{name} = %{version}-%{release}
|
|
|
|
%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 python
|
|
Summary: Python modules for GEOS
|
|
Group: Development/Libraries
|
|
Requires: %{name} = %{version}-%{release}
|
|
|
|
%description python
|
|
Python module to build applications using GEOS and python
|
|
|
|
%package php
|
|
Summary: PHP modules for GEOS
|
|
Group: Development/Libraries
|
|
Requires: %{name} = %{version}-%{release}
|
|
|
|
%description php
|
|
PHP module to build applications using GEOS and PHP
|
|
|
|
%prep
|
|
%setup -q
|
|
%patch0 -p0 -b .gcc43
|
|
|
|
%build
|
|
|
|
# fix python path on 64bit
|
|
sed -i -e 's|\/lib\/python|$libdir\/python|g' configure
|
|
sed -i -e 's|.get_python_lib(0|.get_python_lib(1|g' configure
|
|
sed -i -e 's|find \$i -name libpython|find \$i\/lib*\/ -name libpython|g' configure
|
|
|
|
# disable internal libtool to avoid hardcoded r-path
|
|
for makefile in `find . -type f -name 'Makefile.in'`; do
|
|
sed -i 's|@LIBTOOL@|%{_bindir}/libtool|g' $makefile
|
|
done
|
|
|
|
%configure --disable-static --disable-dependency-tracking --enable-python --enable-php
|
|
|
|
# Touch the file, since we are not using ruby bindings anymore:
|
|
# Per http://lists.osgeo.org/pipermail/geos-devel/2009-May/004149.html
|
|
touch swig/python/geos_wrap.cxx
|
|
|
|
make %{?_smp_mflags}
|
|
|
|
# Make doxygen documentation files
|
|
cd doc
|
|
make doxygen-html
|
|
|
|
%install
|
|
rm -rf %{buildroot}
|
|
make DESTDIR=%{buildroot} install
|
|
|
|
# install php config file
|
|
mkdir -p %{buildroot}%{_sysconfdir}/php.d/
|
|
cat > %{buildroot}%{_sysconfdir}/php.d/%{name}.ini <<EOF
|
|
; Enable %{name} extension module
|
|
extension=geos.so
|
|
EOF
|
|
|
|
%check
|
|
|
|
# test module
|
|
make %{?_smp_mflags} check || exit 0
|
|
|
|
%clean
|
|
rm -rf %{buildroot}
|
|
|
|
%post -p /sbin/ldconfig
|
|
|
|
%postun -p /sbin/ldconfig
|
|
|
|
%files
|
|
%defattr(-,root,root,-)
|
|
%doc AUTHORS COPYING NEWS README TODO
|
|
%{_libdir}/libgeos-%{version}.so
|
|
%{_libdir}/libgeos_c.so.1*
|
|
%exclude %{_libdir}/*.a
|
|
|
|
%files devel
|
|
%defattr(-,root,root,-)
|
|
%doc doc/doxygen_docs
|
|
%{_bindir}/geos-config
|
|
%{_includedir}/*
|
|
%{_libdir}/libgeos.so
|
|
%{_libdir}/libgeos_c.so
|
|
%exclude %{_libdir}/*.la
|
|
%exclude %{_libdir}/*.a
|
|
|
|
%files python
|
|
%defattr(-,root,root,-)
|
|
%dir %{python_sitearch}/%{name}
|
|
%exclude %{python_sitearch}/%{name}/_%{name}.a
|
|
%exclude %{python_sitearch}/%{name}/_%{name}.la
|
|
%{python_sitearch}/%{name}.pth
|
|
%{python_sitearch}/%{name}/*.py
|
|
%{python_sitearch}/%{name}/*.py?
|
|
%{python_sitearch}/%{name}/_%{name}.so
|
|
|
|
%files php
|
|
%defattr(-,root,root,-)
|
|
%{php_sitearch}/%{name}.so
|
|
%config(noreplace) %{_sysconfdir}/php.d/%{name}.ini
|
|
|
|
%changelog
|
|
* Thu Feb 26 2015 Orion Poplawski <orion@cora.nwra.com> - 3.4.2-4
|
|
- Rebuild for gcc 5 C++11 ABI
|
|
|
|
* Sat Aug 16 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.4.2-3
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
|
|
|
|
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.4.2-2
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
|
|
|
|
* Wed Sep 11 2013 Devrim GUNDUZ <devrim@gunduz.org> - 3.4.2-1
|
|
- Update to 3.4.2, per changes described in:
|
|
http://trac.osgeo.org/geos/browser/tags/3.4.2/NEWS
|
|
- Remove Patch2, it is now in upstream.
|
|
- Disable ruby bindings
|
|
- Remove all conditionals -- no more RHEL 4!
|
|
|
|
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.3.8-3
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
|
|
|
|
* Wed Mar 13 2013 Vít Ondruch <vondruch@redhat.com> - 3.3.8-2
|
|
- Rebuild for https://fedoraproject.org/wiki/Features/Ruby_2.0.0
|
|
|
|
* Wed Mar 6 2013 Devrim GUNDUZ <devrim@gunduz.org> - 3.3.8-1
|
|
- Update to 3.3.8, per changes described in:
|
|
http://trac.osgeo.org/geos/browser/tags/3.3.8/NEWS
|
|
|
|
* Fri Jan 25 2013 Devrim GUNDUZ <devrim@gunduz.org> - 3.3.7-1
|
|
- Update to 3.3.7, per changes described in:
|
|
http://trac.osgeo.org/geos/browser/tags/3.3.7/NEWS
|
|
|
|
* Fri Nov 16 2012 Devrim GUNDUZ <devrim@gunduz.org> - 3.3.6-1
|
|
- Update to 3.3.6, per changes described in:
|
|
http://trac.osgeo.org/geos/browser/tags/3.3.6/NEWS
|
|
|
|
* Tue Nov 13 2012 Devrim GUNDUZ <devrim@gunduz.org> - 3.3.5-1
|
|
- Update to 3.3.5
|
|
- Remove patch3, already in upstream.
|
|
|
|
* Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.3.2-3
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
|
|
|
|
* Mon Feb 27 2012 Vít Ondruch <vondruch@redhat.com> - 3.3.2-2
|
|
- Rebuilt for Ruby 1.9.3.
|
|
- Rebuilt for PHP 5.4.
|
|
|
|
* Mon Jan 09 2012 Devrim GUNDUZ <devrim@gunduz.org> - 3.3.2-1
|
|
- Update to 3.3.2
|
|
|
|
* Tue Dec 27 2011 Rex Dieter <rdieter@fedoraproject.org> 3.3.1-3
|
|
- track soname so abi bumps aren't a surprise
|
|
|
|
* Tue Oct 18 2011 Devrim GUNDUZ <devrim@gunduz.org> - 3.3.1-2
|
|
- Enable PHP bindings, per Peter Hopfgartner, bz #746574
|
|
|
|
* Tue Oct 4 2011 Devrim GUNDUZ <devrim@gunduz.org> - 3.3.1-1
|
|
- Update to 3.3.1
|
|
|
|
* Wed Jun 1 2011 Devrim GUNDUZ <devrim@gunduz.org> - 3.3.0-1
|
|
- Update to 3.3.0
|
|
- Remove 2 patches.
|
|
|
|
* Mon May 9 2011 Devrim GUNDUZ <devrim@gunduz.org> - 3.2.2-1
|
|
- Update to 3.2.2
|
|
- Add a patch to fix builds on ARM, per bz #682538
|
|
|
|
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.2.1-4
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
|
|
|
|
* Wed Jul 21 2010 David Malcolm <dmalcolm@redhat.com> - 3.2.1-3
|
|
- Rebuilt for https://fedoraproject.org/wiki/Features/Python_2.7/MassRebuild
|
|
|
|
* Wed Jul 21 2010 Dan Horák <dan[at]danny.cz> - 3.2.1-2
|
|
- fix build with swig 2.0.0
|
|
|
|
* Tue Mar 30 2010 Devrim GUNDUZ <devrim@gunduz.org> - 3.2.1-1
|
|
- Update to 3.2.1
|
|
|
|
* Thu Mar 18 2010 Balint Cristian <cristian.balint@gmail.com> - 3.2.0-2
|
|
- fix bz#473975
|
|
|
|
* Sun Dec 20 2009 Devrim GUNDUZ <devrim@gunduz.org> - 3.2.0-1
|
|
- Update to 3.2.0
|
|
|
|
* Thu Dec 03 2009 Devrim GÜNDÜZ <devrim@gunduz.org> - 3.2.0-rc3_1.1
|
|
- Fix spec (dep error).
|
|
|
|
* Wed Dec 2 2009 Devrim GUNDUZ <devrim@gunduz.org> - 3.2.0rc3-1
|
|
- Update to 3.2.0 rc3
|
|
|
|
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.1.1-2
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
|
|
|
|
* Thu Jun 18 2009 Devrim GUNDUZ <devrim@gunduz.org> - 3.1.1-1
|
|
- Update to 3.1.1
|
|
- Update URL and download URL.
|
|
- Apply cosmetic changes to spec file.
|
|
|
|
* Sun Apr 26 2009 Devrim GUNDUZ <devrim@gunduz.org> - 3.1.0-1
|
|
- Update to 3.1.0
|
|
|
|
* Tue Feb 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.0.3-2
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
|
|
|
|
* Sat Dec 06 2008 Balint Cristian <rezso@rdsor.ro> - 3.0.3-1
|
|
- new upstream stable
|
|
|
|
* Sat Nov 29 2008 Ignacio Vazquez-Abrams <ivazqueznet+rpm@gmail.com> - 3.0.1-2
|
|
- Rebuild for Python 2.6
|
|
|
|
* Fri Oct 17 2008 Balint Cristian <rezso@rdsor.ro> - 3.0.1-1
|
|
- new stable bugfix
|
|
- fix another gcc43 header
|
|
|
|
* Wed May 28 2008 Balint Cristian <rezso@rdsor.ro> - 3.0.0-4
|
|
- disable bindings for REL4
|
|
|
|
* Wed Apr 23 2008 Balint Cristian <rezso@rdsor.ro> - 3.0.0-3
|
|
- require ruby too
|
|
|
|
* Wed Apr 23 2008 Balint Cristian <rezso@rdsor.ro> - 3.0.0-2
|
|
- remove python-abi request, koji fails
|
|
|
|
* Sun Apr 20 2008 Balint Cristian <rezso@rdsor.ro> - 3.0.0-1
|
|
- New branch upstream
|
|
- Fix gcc43 build
|
|
- Avoid r-path hardcoding
|
|
- Enable and include python module
|
|
- Enable and include ruby module
|
|
- Enable and run testsuite during build
|
|
|
|
* Tue Feb 19 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 2.2.3-2
|
|
- Autorebuild for GCC 4.3
|
|
|
|
* Mon Jan 8 2007 Shawn McCann <mccann0011@hotmail.com> - 2.2.3-1
|
|
- Upgraded to geos-2.2.3 and removed patches
|
|
|
|
* Sat Sep 16 2006 Shawn McCann <mccann0011@hotmail.com> - 2.2.1-5
|
|
- Rebuild for Fedora Extras 6
|
|
|
|
* Sat Mar 4 2006 Shawn McCann <mccann0011@hotmail.com> - 2.2.1-4
|
|
- Rebuild for Fedora Extras 5
|
|
|
|
* Sat Jan 14 2006 Shawn McCann <smccann@canasoft.ca> - 2.2.1-3
|
|
- Updated gcc4 patch
|
|
|
|
* Wed Jan 11 2006 Ralf Corsépius <rc040203@freenet.de> - 2.2.1-2
|
|
- Add gcc4 patch
|
|
|
|
* Sat Dec 31 2005 Shawn McCann <smccann@canasoft.ca> - 2.2.1-1
|
|
- Updated to address review comments in bug 17039
|
|
|
|
* Fri Dec 30 2005 Shawn McCann <smccann@canasoft.ca> - 2.2.1-1
|
|
- Initial release
|