[packages/php-pecl-varnish] new, version 1.1.1

glen glen at pld-linux.org
Mon May 19 09:51:20 CEST 2014


commit 7069fbc9766fa53142e23a6b6c6ccd66910b81a1
Author: Elan Ruusamäe <glen at delfi.ee>
Date:   Mon May 19 10:50:58 2014 +0300

    new, version 1.1.1

 php-pecl-varnish.spec | 82 +++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 82 insertions(+)
---
diff --git a/php-pecl-varnish.spec b/php-pecl-varnish.spec
new file mode 100644
index 0000000..e0b3add
--- /dev/null
+++ b/php-pecl-varnish.spec
@@ -0,0 +1,82 @@
+#
+# Conditional build:
+%bcond_without	tests		# build without tests
+
+%define		php_name	php%{?php_suffix}
+%define		modname	varnish
+Summary:	Varnish Cache bindings
+Name:		%{php_name}-pecl-%{modname}
+Version:	1.1.1
+Release:	1
+License:	BSD
+Group:		Development/Languages/PHP
+Source0:	http://pecl.php.net/get/%{modname}-%{version}.tgz
+# Source0-md5:	9d2c165f7a0ea6f921bfd423e08a09ac
+URL:		http://pecl.php.net/package/varnish/
+%{?with_tests:BuildRequires:    %{php_name}-cli}
+%{?with_tests:BuildRequires:    %{php_name}-hash}
+BuildRequires:	%{php_name}-devel
+BuildRequires:	rpmbuild(macros) >= 1.666
+%{?requires_php_extension}
+Provides:	php(varnish) = %{version}
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+Varnish Cache is an open source, state of the art web application
+accelerator.
+
+The extension makes it possible to interact with a running varnish
+instance through TCP socket or shared memory.
+
+%prep
+%setup -qc
+mv %{modname}-%{version}/* .
+
+%build
+phpize
+%configure
+%{__make}
+
+%if %{with tests}
+# simple module load test
+%{__php} -n -q \
+	-d extension_dir=modules \
+	-d extension=%{php_extensiondir}/hash.so \
+	-d extension=%{modname}.so \
+	-m > modules.log
+grep %{modname} modules.log
+
+export NO_INTERACTION=1 REPORT_EXIT_STATUS=1 MALLOC_CHECK_=2
+%{__make} test \
+	PHP_EXECUTABLE=%{__php} \
+	PHP_TEST_SHARED_SYSTEM_EXTENSIONS="hash"
+%endif
+
+%install
+rm -rf $RPM_BUILD_ROOT
+%{__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/%{modname}.ini
+; Enable %{modname} extension module
+extension=%{modname}.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 CREDITS LICENSE
+%config(noreplace) %verify(not md5 mtime size) %{php_sysconfdir}/conf.d/%{modname}.ini
+%attr(755,root,root) %{php_extensiondir}/%{modname}.so
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/php-pecl-varnish.git/commitdiff/7069fbc9766fa53142e23a6b6c6ccd66910b81a1



More information about the pld-cvs-commit mailing list