commit 59f7b3cec30e952e9801c25f27d913603be8a300
Author: Jakub Bogusz <[email protected]>
Date:   Wed Apr 5 21:40:54 2017 +0200

    - initial, split from geos.spec since 3.6.0

 php-geos.spec | 76 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 76 insertions(+)
---
diff --git a/php-geos.spec b/php-geos.spec
new file mode 100644
index 0000000..4b49856
--- /dev/null
+++ b/php-geos.spec
@@ -0,0 +1,76 @@
+#
+# Conditional build:
+%bcond_without tests           # testing
+
+%define                php_name        php%{?php_suffix}
+Summary:       PHP extension for interfacing with the GEOS library
+Summary(pl.UTF-8):     Rozszerzenie PHP do współpracy z biblioteką GEOS
+Name:          %{php_name}-geos
+Version:       1.0.0
+Release:       1
+License:       LGPL v2.1 (GEOS code), MIT (PHP interfaces)
+Group:         Development/Languages/PHP
+# http://git.osgeo.org/gogs/geos/php-geos
+Source0:       
https://git.osgeo.org/gogs/geos/php-geos/archive/%{version}.tar.gz?/php-geos-%{version}.tar.gz
+# Source0-md5: 5107e7062b12cccca5903b83c90c2955
+URL:           http://geos.osgeo.org/
+%{?with_tests:BuildRequires:    %{php_name}-cli >= 5}
+BuildRequires: %{php_name}-devel >= 5
+BuildRequires: geos-devel >= 3.5
+BuildRequires: rpmbuild(macros) >= 1.666
+%{?requires_php_extension}
+Provides:      php(geos) = %{version}
+BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+PHP extension for interfacing with the GEOS library.
+
+%description -l pl.UTF-8
+Rozszerzenie PHP do współpracy z biblioteką GEOS.
+
+%prep
+%setup -q -n php-geos
+
+%build
+phpize
+%configure
+%{__make}
+
+%if %{with tests}
+%{__make} check \
+       PHP_EXECUTABLE=%{__php} \
+       RUN_TESTS_SETTINGS="-q -w failed.log"
+
+test -f failed.log -a ! -s failed.log
+%endif
+
+%install
+rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT{%{php_sysconfdir}/conf.d,%{php_extensiondir}}
+
+%{__make} install \
+       EXTENSION_DIR=%{php_extensiondir} \
+       INSTALL_ROOT=$RPM_BUILD_ROOT
+
+install -d $RPM_BUILD_ROOT%{php_sysconfdir}/conf.d
+cat <<EOF > $RPM_BUILD_ROOT%{php_sysconfdir}/conf.d/geos.ini
+; Enable GEOS extension module
+extension=geos.so
+EOF
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%post
+%php_webserver_restart
+
+%postun
+if [ "$1" = 0 ]; then
+       %php_webserver_restart
+fi
+
+%files
+%defattr(644,root,root,755)
+%doc COPYING MIT-LICENSE NEWS README.md TODO
+%config(noreplace) %verify(not md5 mtime size) 
%{php_sysconfdir}/conf.d/geos.ini
+%attr(755,root,root) %{php_extensiondir}/geos.so
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/php-geos.git/commitdiff/59f7b3cec30e952e9801c25f27d913603be8a300

_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to