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