[ELGIS] geos 3.3.1 and PHP bindings
Peter Hopfgartner
peter.hopfgartner at r3-gis.com
Thu Oct 6 12:21:41 EDT 2011
I've updated the GEOS package to the current stable release and enabled
the PHP bindings.
Peter
-------------- next part --------------
Index: geos.spec
===================================================================
--- geos.spec (revision 234)
+++ geos.spec (working copy)
@@ -1,6 +1,6 @@
Name: geos
-Version: 3.3.0
-Release: 1%{?dist}
+Version: 3.3.1
+Release: 2%{?dist}
Summary: GEOS is a C++ port of the Java Topology Suite
Group: Applications/Engineering
@@ -12,11 +12,12 @@
BuildRequires: doxygen libtool
%if "%{?dist}" != ".el4"
BuildRequires: swig ruby
-BuildRequires: python-devel ruby-devel
+BuildRequires: python-devel ruby-devel php-devel
%endif
%{!?python_sitearch: %define python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")}
%{!?ruby_sitearch: %define ruby_sitearch %(ruby -rrbconfig -e 'puts Config::CONFIG["sitearchdir"]')}
+%{!?php_sitearch: %define php_sitearch %{_libdir}/php/modules}
%description
GEOS (Geometry Engine - Open Source) is a C++ port of the Java Topology
@@ -58,6 +59,14 @@
Ruby module to build applications using GEOS and ruby
%endif
+%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
@@ -76,7 +85,8 @@
%configure --disable-static --disable-dependency-tracking \
%if "%{?dist}" != ".el4"
--enable-python \
- --enable-ruby
+ --enable-ruby \
+ --enable-php
%endif
make %{?_smp_mflags}
@@ -89,6 +99,13 @@
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
@@ -134,9 +151,17 @@
%exclude %{ruby_sitearch}/%{name}.a
%exclude %{ruby_sitearch}/%{name}.la
%{ruby_sitearch}/%{name}.so
+
+%files php
+%defattr(-,root,root,-)
+%{php_sitearch}/%{name}.so
+%config(noreplace) %{_sysconfdir}/php.d/%{name}.ini
%endif
%changelog
+* Thu Oct 06 2011 Peter Hopfgartner <peter.hopfgartner at r3-gis.com> - 3.3.1-1
+- Update to 3.3.1. Enabled building GEOS as a PHP module.
+
* Sun Sep 11 2011 Mathieu Baudier <mbaudier at argeo.org> - 3.3.0-1
- Update to 3.3.0
More information about the el
mailing list