[packages/php-pecl-v8js] new, version 0.1.5
glen
glen at pld-linux.org
Sat Oct 26 22:51:10 CEST 2013
commit 07d76824eb83cea50fd4b4e7b36a3c3fe35f632f
Author: Elan Ruusamäe <glen at delfi.ee>
Date: Sat Oct 26 23:49:55 2013 +0300
new, version 0.1.5
php-pecl-v8js.spec | 63 ++++++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 63 insertions(+)
---
diff --git a/php-pecl-v8js.spec b/php-pecl-v8js.spec
new file mode 100644
index 0000000..448ce41
--- /dev/null
+++ b/php-pecl-v8js.spec
@@ -0,0 +1,63 @@
+#
+# Conditional build:
+%bcond_without tests # build without tests
+
+%define php_name php%{?php_suffix}
+%define modname v8js
+Summary: V8 Javascript Engine for PHP
+Name: %{php_name}-pecl-%{modname}
+Version: 0.1.5
+Release: 1
+License: MIT
+Group: Development/Languages/PHP
+Source0: http://pecl.php.net/get/%{modname}-%{version}.tgz
+# Source0-md5: 8bbe41781cd63686df34df9137fc7417
+URL: http://pecl.php.net/package/v8js
+BuildRequires: %{php_name}-devel
+BuildRequires: rpmbuild(macros) >= 1.666
+BuildRequires: v8-devel >= 3.17.11
+%{?requires_php_extension}
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+This extension embeds the Google's V8 Javascript Engine into PHP.
+
+%prep
+%setup -qc
+mv %{modname}-*/* .
+
+%build
+phpize
+%configure
+%{__make}
+
+%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/%{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 EXPERIMENTAL
+%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-v8js.git/commitdiff/07d76824eb83cea50fd4b4e7b36a3c3fe35f632f
More information about the pld-cvs-commit
mailing list