rpms/Pyrex/F-8 pyrex-mode-init.el, NONE, 1.1 .cvsignore, 1.7, 1.8 Pyrex.spec, 1.19, 1.20 sources, 1.7, 1.8
Matthew Barnes (mbarnes)
fedora-extras-commits at redhat.com
Wed May 7 15:22:59 UTC 2008
- Previous message: rpms/Pyrex/F-9 pyrex-mode-init.el, NONE, 1.1 .cvsignore, 1.7, 1.8 Pyrex.spec, 1.19, 1.20 sources, 1.7, 1.8
- Next message: rpms/policycoreutils/F-9 policycoreutils-rhat.patch, 1.363, 1.364 policycoreutils.spec, 1.520, 1.521
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Author: mbarnes
Update of /cvs/pkgs/rpms/Pyrex/F-8
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv28888
Modified Files:
.cvsignore Pyrex.spec sources
Added Files:
pyrex-mode-init.el
Log Message:
* Mon May 7 2008 Kyle VanderBeek <kylev at kylev.com> - 0:0.9.6.4-1
- Update to 0.9.6.4
- Add sub-package for emacs mode.
--- NEW FILE pyrex-mode-init.el ---
;; Load the pyrex-mode for .pyx files.
(autoload 'pyrex-mode "pyrex-mode" "Major mode for editing Pyrex code." t)
(add-to-list 'auto-mode-alist '("\\.pyx\\'" . pyrex-mode))
Index: .cvsignore
===================================================================
RCS file: /cvs/pkgs/rpms/Pyrex/F-8/.cvsignore,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -r1.7 -r1.8
--- .cvsignore 26 Jun 2007 13:19:50 -0000 1.7
+++ .cvsignore 7 May 2008 15:21:36 -0000 1.8
@@ -1 +1,2 @@
-Pyrex-0.9.5.1a.tar.gz
+Pyrex-0.9.6.4.tar.gz
+pyrex-mode-init.el
Index: Pyrex.spec
===================================================================
RCS file: /cvs/pkgs/rpms/Pyrex/F-8/Pyrex.spec,v
retrieving revision 1.19
retrieving revision 1.20
diff -u -r1.19 -r1.20
--- Pyrex.spec 26 Jun 2007 13:19:50 -0000 1.19
+++ Pyrex.spec 7 May 2008 15:21:36 -0000 1.20
@@ -1,7 +1,17 @@
%{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
+%if %($(pkg-config emacs) ; echo $?)
+%define emacs_version 22.1
+%define emacs_lispdir %{_datadir}/emacs/site-lisp
+%define emacs_startdir %{_datadir}/emacs/site-lisp/site-start.d
+%else
+%define emacs_version %(pkg-config emacs --modversion)
+%define emacs_lispdir %(pkg-config emacs --variable sitepkglispdir)
+%define emacs_startdir %(pkg-config emacs --variable sitestartdir)
+%endif
+
Name: Pyrex
-Version: 0.9.5.1a
+Version: 0.9.6.4
Release: 1%{?dist}
Epoch: 0
BuildArch: noarch
@@ -10,12 +20,15 @@
License: Public Domain
URL: http://www.cosc.canterbury.ac.nz/~greg/python/Pyrex/
Source0: http://www.cosc.canterbury.ac.nz/~greg/python/Pyrex/Pyrex-%{version}.tar.gz
+Source1: pyrex-mode-init.el
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
-BuildRequires: python-devel
+BuildRequires: pkgconfig
+BuildRequires: python-devel
BuildRequires: dos2unix
BuildRequires: findutils
+BuildRequires: emacs emacs-el
Requires: python-devel
%description
@@ -29,20 +42,40 @@
Please see the documentation for how to get the best performance from your
code.
+%package -n emacs-pyrex
+Summary: emacs mode for Pyrex
+Group: Applications/Editors
+BuildArch: noarch
+Requires: emacs(bin) >= %{emacs_version}
+
+
+%description -n emacs-pyrex
+An emacs mode for editing Pyrex source code.
+
%prep
%setup -q
%build
-python setup.py build
+python setup.py build
# Remove some Macintosh-isms
find . -name '.DS_Store' -exec rm -f \{\} \;
-dos2unix -k -c mac CHANGES.txt ToDo.txt Doc/* Demos/Makefile.nodistutils
+dos2unix -k -c mac CHANGES.txt ToDo.txt Demos/Makefile.nodistutils Tools/*
+find Doc -type f | xargs dos2unix -k -c mac
+
+# Compile emacs module
+emacs -batch -f batch-byte-compile Tools/*.el
%install
rm -rf $RPM_BUILD_ROOT
python setup.py install --skip-build --root $RPM_BUILD_ROOT --record=INSTALLED_FILES
+mkdir -p $RPM_BUILD_ROOT/%{emacs_lispdir}
+mkdir -p $RPM_BUILD_ROOT/%{emacs_startdir}
+cp Tools/pyrex-mode.* $RPM_BUILD_ROOT/%{emacs_lispdir}
+cp %{SOURCE1} $RPM_BUILD_ROOT/%{emacs_startdir}
+
+
# Add directories to the INSTALLED_FILES
find $RPM_BUILD_ROOT%{python_sitelib}/Pyrex -type d -print | \
sed "s|$RPM_BUILD_ROOT|%dir |g" >>INSTALLED_FILES
@@ -58,11 +91,21 @@
%{python_sitelib}/Pyrex/*.pyo
%{python_sitelib}/Pyrex/Compiler/*.pyo
%{python_sitelib}/Pyrex/Distutils/*.pyo
+%{python_sitelib}/Pyrex/DistutilsOld/*.pyo
%{python_sitelib}/Pyrex/Plex/*.pyo
%{python_sitelib}/Pyrex/Unix/*.pyo
%exclude %{python_sitelib}/Pyrex/Mac
+%files -n emacs-pyrex
+%defattr(-,root,root,-)
+%{emacs_lispdir}/*
+
+
%changelog
+* Mon May 7 2008 Kyle VanderBeek <kylev at kylev.com> - 0:0.9.6.4-1
+- Update to 0.9.6.4
+- Add sub-package for emacs mode.
+
* Tue Jun 26 2007 Matthew Barnes <mbarnes at redhat.com> - 0:0.9.5.1a-1.fc8
- Update to 0.9.5.1a
- Remove Pyrex-0.9.4-fix-indent.patch (fixed upstream).
Index: sources
===================================================================
RCS file: /cvs/pkgs/rpms/Pyrex/F-8/sources,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -r1.7 -r1.8
--- sources 26 Jun 2007 13:19:50 -0000 1.7
+++ sources 7 May 2008 15:21:36 -0000 1.8
@@ -1 +1,2 @@
-0132c5cd2f8685e4948fb14dcb65f637 Pyrex-0.9.5.1a.tar.gz
+52bb6ec8848d9aa412c8bfd0fe9f33ea Pyrex-0.9.6.4.tar.gz
+b5d6ee0cdd428ea2033f0863b5c3cf28 pyrex-mode-init.el
- Previous message: rpms/Pyrex/F-9 pyrex-mode-init.el, NONE, 1.1 .cvsignore, 1.7, 1.8 Pyrex.spec, 1.19, 1.20 sources, 1.7, 1.8
- Next message: rpms/policycoreutils/F-9 policycoreutils-rhat.patch, 1.363, 1.364 policycoreutils.spec, 1.520, 1.521
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the scm-commits
mailing list