A new user interface for you! Read more...

File pymacs.spec of Package pymacs

Name: pymacs
Version: 0.25+git0_1cc4c78
Release: 1
Summary: Interface between Emacs and Python
Group: Applications/Editors
License: GPL-2.0
Source0: %{name}-%{version}.tar.gz
URL: https://github.com/pinard/Pymacs.git
BuildArch: noarch
BuildRequires: emacs-nox emacs-packaging-macros
BuildRequires: python python-devel python-docutils
Requires: python

%description
%{summary}.

%files
%defattr(-,root,root,-)
%{python_sitelib}/*
%{_emacs_sitelispdir}/%{name}
%{_emacs_sitestartdir}/*
%doc COPYING README.org THANKS TODO
#FIXME, add the contrib stuff



%prep
%setup -q


%build
make
emacs -batch -eval '(byte-compile-file "pymacs.el")'


%install
mkdir -p %{buildroot}/%{_emacs_sitelispdir}/%{name}
mkdir -p %{buildroot}/%{_emacs_sitestartdir}

python setup.py install --root %{buildroot}

install -m 644 *.el{,c} %{buildroot}/%{_emacs_sitelispdir}/%{name}

cat << EOF > %{buildroot}/%{_emacs_sitestartdir}/%{name}-init.el
(add-to-list 'load-path "%{_emacs_sitelispdir}/%{name}")

(autoload 'pymacs-load "pymacs" nil t)
(autoload 'pymacs-eval "pymacs" nil t)
(autoload 'pymacs-apply "pymacs")
EOF