]> git.pld-linux.org Git - packages/emacs-pymacs.git/blob - emacs-pymacs.spec
- next part of small fixes inpired by kloczek :)
[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 # Source0-md5:  0c4b2598480d7f89fc35eec487276626
11 Patch0:         %{name}-userinstall.patch
12 URL:            http://www.iro.umontreal.ca/~pinard/pymacs/
13 BuildRequires:  emacs
14 BuildRequires:  python-devel >= 2.2
15 BuildRequires:  rpm-pythonprov
16 %pyrequires_eq    python
17 Requires:       emacs >= 21.1
18 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
19 Obsoletes:      pymacs
20
21 %description
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.
27
28 %description -l pl
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.
34
35 %prep
36 %setup -q -n pymacs-%{version}
37 %patch0 -p1
38
39 %build
40 ./setup -u \
41         -b %{_bindir} \
42         -l %{_datadir}/emacs/site-lisp \
43         -p %{py_sitedir}
44
45 %install
46 rm -rf $RPM_BUILD_ROOT
47 install -d $RPM_BUILD_ROOT{%{_bindir},%{_datadir}/emacs/site-lisp,%{py_sitedir}}
48
49 ./setup \
50         -b $RPM_BUILD_ROOT%{_bindir} \
51         -l $RPM_BUILD_ROOT%{_datadir}/emacs/site-lisp \
52         -p $RPM_BUILD_ROOT%{py_sitedir} \
53         install
54
55 %py_comp $RPM_BUILD_ROOT%{py_sitedir}
56 %py_ocomp $RPM_BUILD_ROOT%{py_sitedir}
57
58 %clean
59 rm -rf $RPM_BUILD_ROOT
60
61 %files
62 %defattr(644,root,root,755)
63 %doc ChangeLog* README THANKS* TODO
64 %attr(755,root,root) %{_bindir}/*
65 %{py_sitedir}/*.py?
66 %{_datadir}/emacs/site-lisp/*.elc
This page took 0.034284 seconds and 3 git commands to generate.