]> git.pld-linux.org Git - packages/emacs-pymacs.git/blob - emacs-pymacs.spec
- new %%doc
[packages/emacs-pymacs.git] / emacs-pymacs.spec
1 %include /usr/lib/rpm/macros.python
2 Summary:        Python extension for Emacs
3 Summary(pl):    Rozszerzenie Python dla Emacsa
4 Name:           emacs-pymacs
5 Version:        0.15
6 Release:        2
7 License:        GPL v2
8 Group:          Applications/Editors/Emacs
9 Source0:        http://www.iro.umontreal.ca/~pinard/pymacs/pymacs-%{version}.tar.gz
10 Patch0:         %{name}-userinstall.patch
11 URL:            http://www.iro.umontreal.ca/~pinard/pymacs/
12 BuildRequires:  emacs
13 BuildRequires:  python-devel >= 2.2
14 BuildRequires:  rpm-pythonprov
15 %pyrequires_eq    python
16 Requires:       emacs >= 21.1
17 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
18 Obsoletes:      pymacs
19
20 %description
21 Pymacs is a powerful tool which, once started from Emacs, allows
22 both-way communication between Emacs LISP and Python. Yet, Pymacs aims
23 Python as an extension language for Emacs. Within Emacs LISP code, one
24 may load and use Python modules. Python functions may themselves use
25 Emacs services, and handle LISP objects kept in LISP space.
26
27 %description -l pl
28 Pymacs jest potê¿nym narzêdziem, które po uruchomieniu z Emacsa
29 pozwala na dwukierunkow± komunikacjê pomiêdzy Emacs LISP oraz
30 Pythonem. Pymacs pozwala na ³adowanie i u¿ywanie modu³ów Pythona z
31 Emacs LISP. Z kolei funkcje pythona mog± u¿ywaæ us³ug Emacsa oraz
32 obs³ugiwaæ obiekty LISPa znajduj±ce siê w przestrzeni LISPa.
33
34 %prep
35 %setup -q -n pymacs-%{version}
36 %patch0 -p1
37
38 %build
39 ./setup -u \
40         -b %{_bindir} \
41         -l %{_datadir}/emacs/site-lisp \
42         -p %{py_sitedir}
43
44 %install
45 rm -rf $RPM_BUILD_ROOT
46 install -d $RPM_BUILD_ROOT{%{_bindir},%{_datadir}/emacs/site-lisp,%{py_sitedir}}
47
48 ./setup \
49         -b $RPM_BUILD_ROOT%{_bindir} \
50         -l $RPM_BUILD_ROOT%{_datadir}/emacs/site-lisp \
51         -p $RPM_BUILD_ROOT%{py_sitedir} \
52         install
53
54 %py_comp $RPM_BUILD_ROOT/%{py_sitedir}
55 %py_ocomp $RPM_BUILD_ROOT/%{py_sitedir}
56
57 %clean
58 rm -rf $RPM_BUILD_ROOT
59
60 %files
61 %defattr(644,root,root,755)
62 %doc ChangeLog* README THANKS* TODO
63 %attr(755,root,root) %{_bindir}/*
64 %{py_sitedir}/*.py?
65 %{_datadir}/emacs/site-lisp/*.elc
This page took 0.093819 seconds and 3 git commands to generate.