churchyard pushed to pypy3 (master). "add pypytrace-mode.el to the pypy-libs subpackage, for viewing JIT trace logs in emacs"

notifications at fedoraproject.org notifications at fedoraproject.org
Sun May 10 14:23:25 UTC 2015


From 1feef4d56b6572b03fd805e50ad8f6e43900cfac Mon Sep 17 00:00:00 2001
From: David Malcolm <dmalcolm at redhat.com>
Date: Wed, 3 Aug 2011 13:02:57 -0400
Subject: add pypytrace-mode.el to the pypy-libs subpackage, for viewing JIT
 trace logs in emacs


diff --git a/pypy.spec b/pypy.spec
index b4705c1..0c2c717 100644
--- a/pypy.spec
+++ b/pypy.spec
@@ -1,6 +1,6 @@
 Name:           pypy
 Version:        1.5
-Release:        1%{?dist}
+Release:        2%{?dist}
 Summary:        Python implementation with a Just-In-Time compiler
 
 Group:          Development/Languages
@@ -223,6 +223,9 @@ BuildRequires:  gc-devel
 
 BuildRequires:  /usr/bin/execstack
 
+# For byte-compiling the JIT-viewing mode:
+BuildRequires:  emacs
+
 # pypy is bundling these so we delete them in %%prep.  I don't think they are
 # needed unless we build pypy targetted at running on the jvm.
 #BuildRequires:  jna
@@ -248,6 +251,11 @@ CPU architecture.
 %package libs
 Group:    Development/Languages
 Summary:  Run-time libraries used by PyPy implementations of Python
+
+# We supply an emacs mode for the JIT viewer.
+# (This doesn't bring in all of emacs, just the directory structure)
+Requires: emacs-filesystem >= %{_emacs_version}
+
 %description libs
 Libraries required by the various PyPy implementations of Python.
 
@@ -442,6 +450,8 @@ BuildPyPy \
    "--stackless"
 %endif
 
+%{_emacs_bytecompile} pypy/jit/tool/pypytrace-mode.el
+
 %install
 rm -rf $RPM_BUILD_ROOT
 
@@ -617,6 +627,10 @@ find \
 # but given that the objective is to preserve a copy of the source code, those
 # are acceptable.
 
+# Install the JIT trace mode for Emacs:
+mkdir -p %{buildroot}/%{_emacs_sitelispdir}
+cp -a pypy/jit/tool/pypytrace-mode.el* %{buildroot}/%{_emacs_sitelispdir}
+
 %check
 topdir=$(pwd)
 
@@ -1135,6 +1149,8 @@ rm -rf $RPM_BUILD_ROOT
 %{pypyprefix}/lib-python/conftest.py*
 %{pypyprefix}/lib_pypy/
 %{pypyprefix}/site-packages/
+%{_emacs_sitelispdir}/pypytrace-mode.el
+%{_emacs_sitelispdir}/pypytrace-mode.elc
 
 %files
 %defattr(-,root,root,-)
@@ -1155,6 +1171,10 @@ rm -rf $RPM_BUILD_ROOT
 
 
 %changelog
+* Tue Aug  2 2011 David Malcolm <dmalcolm at redhat.com> - 1.5-2
+- add pypytrace-mode.el to the pypy-libs subpackage, for viewing JIT trace
+logs in emacs
+
 * Mon May  2 2011 David Malcolm <dmalcolm at redhat.com> - 1.5-1
 - 1.5
 
-- 
cgit v0.10.2


	http://pkgs.fedoraproject.org/cgit/pypy3.git/commit/?h=master&id=1feef4d56b6572b03fd805e50ad8f6e43900cfac


More information about the scm-commits mailing list