SPECS: php-pecl-spidermonkey.spec (NEW) - New: spec file for SpiderMonkey P...
zergin
zergin at pld-linux.org
Sat Mar 14 15:28:18 CET 2009
Author: zergin Date: Sat Mar 14 14:28:18 2009 GMT
Module: SPECS Tag: HEAD
---- Log message:
- New: spec file for SpiderMonkey PECL extension
---- Files affected:
SPECS:
php-pecl-spidermonkey.spec (NONE -> 1.1) (NEW)
---- Diffs:
================================================================
Index: SPECS/php-pecl-spidermonkey.spec
diff -u /dev/null SPECS/php-pecl-spidermonkey.spec:1.1
--- /dev/null Sat Mar 14 15:28:18 2009
+++ SPECS/php-pecl-spidermonkey.spec Sat Mar 14 15:28:13 2009
@@ -0,0 +1,88 @@
+# $Revision$, $Date$
+%define _modname spidermonkey
+%define _status beta
+Summary: %{_modname} - UUID support functions
+Summary(pl.UTF-8): %{_modname} - funkcje obsługujące UUID
+Name: php-pecl-%{_modname}
+Version: 0.1.2
+Release: 1
+License: PHP 2.02
+Group: Development/Languages/PHP
+Source0: http://pecl.php.net/get/%{_modname}-%{version}.tgz
+# Source0-md5: 7f10434a77be984b2f7cfba7ff031413
+URL: http://pecl.php.net/package/%{_modname}/
+BuildRequires: js-devel
+BuildRequires: php-devel >= 3:5.3.0
+BuildRequires: rpmbuild(macros) >= 1.344
+%{?requires_php_extension}
+Requires: php-common >= 4:5.3.0
+Obsoletes: php-pear-%{_modname}
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+This extension allow you to embed Mozilla's Javascript engine
+Spidermonkey in PHP.
+
+In PECL status of this package is: %{_status}.
+
+%description -l pl.UTF-8
+To rozszerzenie pozwala na osadzanie w PHP silnika Javascript Mozilli
+- Spidermonkey.
+
+To rozszerzenie ma w PECL status: %{_status}.
+
+%prep
+%setup -q -c
+
+%build
+cd %{_modname}-%{version}
+
+# libtool 2.2 build fix
+if [ -f '%{_aclocaldir}/ltsugar.m4' ]; then
+ cat "%{_aclocaldir}/ltsugar.m4" >> "config.m4"
+ cat "%{_aclocaldir}/ltversion.m4" >> "config.m4"
+ cat "%{_aclocaldir}/lt~obsolete.m4" >> "config.m4"
+ cat "%{_aclocaldir}/ltoptions.m4" >> "config.m4"
+fi
+
+phpize
+%configure
+%{__make}
+
+%install
+rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT{%{php_sysconfdir}/conf.d,%{php_extensiondir}}
+
+install %{_modname}-%{version}/modules/%{_modname}.so $RPM_BUILD_ROOT%{php_extensiondir}
+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)
+%config(noreplace) %verify(not md5 mtime size) %{php_sysconfdir}/conf.d/%{_modname}.ini
+%attr(755,root,root) %{php_extensiondir}/%{_modname}.so
+
+%define date %(echo `LC_ALL="C" date +"%a %b %d %Y"`)
+%changelog
+* %{date} PLD Team <feedback at pld-linux.org>
+All persons listed below can be reached at <cvs_login>@pld-linux.org
+
+$Log$
+Revision 1.1 2009/03/14 14:28:13 zergin
+- New: spec file for SpiderMonkey PECL extension
+
+Revision 1.21 2008/10/14 22:29:13 baggins
+- up to 1.0.2
================================================================
More information about the pld-cvs-commit
mailing list