1 %include /usr/lib/rpm/macros.python
2 Summary: Python extension for Emacs
3 Summary(pl): Rozszerzenie Python dla Emacsa
8 Group: Applications/Editors/Emacs
9 Source0: http://www.iro.umontreal.ca/~pinard/pymacs/pymacs-%{version}.tar.gz
10 # Source0-md5: 0c4b2598480d7f89fc35eec487276626
11 Patch0: %{name}-userinstall.patch
12 URL: http://www.iro.umontreal.ca/~pinard/pymacs/
14 BuildRequires: python-devel >= 2.2
15 BuildRequires: rpm-pythonprov
17 Requires: emacs >= 21.1
18 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
22 Pymacs is a powerful tool which, once started from Emacs, allows
23 both-way communication between Emacs LISP and Python. Yet, Pymacs aims
24 Python as an extension language for Emacs. Within Emacs LISP code, one
25 may load and use Python modules. Python functions may themselves use
26 Emacs services, and handle LISP objects kept in LISP space.
29 Pymacs jest potê¿nym narzêdziem, które po uruchomieniu z Emacsa
30 pozwala na dwukierunkow± komunikacjê pomiêdzy Emacs LISP oraz
31 Pythonem. Pymacs pozwala na ³adowanie i u¿ywanie modu³ów Pythona z
32 Emacs LISP. Z kolei funkcje pythona mog± u¿ywaæ us³ug Emacsa oraz
33 obs³ugiwaæ obiekty LISPa znajduj±ce siê w przestrzeni LISPa.
36 %setup -q -n pymacs-%{version}
42 -l %{_datadir}/emacs/site-lisp \
46 rm -rf $RPM_BUILD_ROOT
47 install -d $RPM_BUILD_ROOT{%{_bindir},%{_datadir}/emacs/site-lisp,%{py_sitedir}}
50 -b $RPM_BUILD_ROOT%{_bindir} \
51 -l $RPM_BUILD_ROOT%{_datadir}/emacs/site-lisp \
52 -p $RPM_BUILD_ROOT%{py_sitedir} \
55 %py_comp $RPM_BUILD_ROOT%{py_sitedir}
56 %py_ocomp $RPM_BUILD_ROOT%{py_sitedir}
59 rm -rf $RPM_BUILD_ROOT
62 %defattr(644,root,root,755)
63 %doc ChangeLog* README THANKS* TODO
64 %attr(755,root,root) %{_bindir}/*
66 %{_datadir}/emacs/site-lisp/*.elc