[v8/master-restart] Move Python files to the standard directories, add j2sc as well.

Matej Cepl mcepl at fedoraproject.org
Wed Aug 24 21:24:33 UTC 2011


commit 7bc1fea71b8d6a85342a066678efd3af454acf3a
Author: Matěj Cepl <mcepl at redhat.com>
Date:   Wed Aug 24 23:23:43 2011 +0200

    Move Python files to the standard directories, add j2sc as well.

 v8.spec |   21 ++++++++++++++++++++-
 1 files changed, 20 insertions(+), 1 deletions(-)
---
diff --git a/v8.spec b/v8.spec
index fd08b99..94aeb67 100644
--- a/v8.spec
+++ b/v8.spec
@@ -12,10 +12,12 @@
 %global sominor 3
 %global sobuild 10
 %global sover %{somajor}.%{sominor}.%{sobuild}
+%{!?python_sitelib: %global python_sitelib %(%{__python} \
+    -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
 
 Name:		v8
 Version:	%{somajor}.%{sominor}.%{sobuild}
-Release:	1%{?dist}
+Release:	3%{?dist}
 Summary:	JavaScript Engine
 Group:		System Environment/Libraries
 License:	BSD
@@ -24,6 +26,7 @@ URL:		http://code.google.com/p/v8
 # Checkout script is Source1
 Source0:	v8-%{version}.tar.bz2
 Source1:	v8-daily-tarball.sh
+Source2: v8-js2c
 # Enable experimental i18n extension that chromium needs
 Patch0:		v8-3.3.10-enable-experimental.patch
 # Disable comparison check that gcc 4.5 thinks is always false
@@ -143,6 +146,12 @@ install -p src/extensions/experimental/*.h %{buildroot}%{_includedir}/v8/extensi
 chmod -x %{buildroot}%{_includedir}/v8/extensions/*.h
 chmod -x %{buildroot}%{_includedir}/v8/extensions/experimental/*.h
 
+# install Python JS minifier scripts for nodejs
+mkdir -p %{buildroot}%{_datadir}/v8
+install -p -m0744 tools/jsmin.py %{buildroot}%{python_sitelib}/
+install -p -m0744 tools/j2sc.py %{buildroot}%{python_sitelib}/
+install -p %{SOURCE2} %{buildroot}%{_bindir}/js2c
+
 %clean
 rm -rf %{buildroot}
 
@@ -158,11 +167,21 @@ rm -rf %{buildroot}
 
 %files devel
 %defattr(-,root,root,-)
+%{_bindir}/j2sc
 %{_includedir}/*.h
 %{_includedir}/v8/extensions/
 %{_libdir}/*.so
+%{python_sitelib}/j*.py
 
 %changelog
+* Wed Aug 24 2011 Matěj Cepl <mcepl at redhat.com> - 3.3.10-3
+- A bit of cleanup, include also /usr/bin/j2sc when we have it.
+- I don't see the reason why Python files shouldn't be in the
+  standard Python directories.
+
+* Wed Aug 27 2011 T.C. Hollingsworth <tchollingsworth at gmail.com 3.3.10-2
+- include JavaScript minifier scripts in -devel
+
 * Wed Aug 10 2011 Tom Callaway <spot at fedoraproject.org> 3.3.10-1
 - tag 3.3.10
 


More information about the scm-commits mailing list