]>
Commit | Line | Data |
---|---|---|
d9bc2768 | 1 | Summary: Python extension for Emacs |
7642019b | 2 | Summary(pl.UTF-8): Rozszerzenie Python dla Emacsa |
d9bc2768 | 3 | Name: emacs-pymacs |
e266beea | 4 | Version: 0.22 |
5 | Release: 1 | |
d9bc2768 AM |
6 | License: GPL v2 |
7 | Group: Applications/Editors/Emacs | |
e266beea | 8 | Source0: http://pymacs.progiciels-bpi.ca/archives/Pymacs-%{version}.tar.gz |
9 | # Source0-md5: 73b7a641be100fd90a9be59ecf01fd98 | |
10 | URL: http://pymacs.progiciels-bpi.ca/ | |
43ef7c89 | 11 | BuildRequires: emacs |
dbfa3a2c | 12 | BuildRequires: python-devel >= 2.2 |
0a22760b | 13 | %pyrequires_eq python |
dbfa3a2c | 14 | Requires: emacs >= 21.1 |
dbfa3a2c | 15 | Obsoletes: pymacs |
e266beea | 16 | BuildArch: noarch |
17 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
d9bc2768 AM |
18 | |
19 | %description | |
20 | Pymacs is a powerful tool which, once started from Emacs, allows | |
21 | both-way communication between Emacs LISP and Python. Yet, Pymacs aims | |
22 | Python as an extension language for Emacs. Within Emacs LISP code, one | |
23 | may load and use Python modules. Python functions may themselves use | |
24 | Emacs services, and handle LISP objects kept in LISP space. | |
25 | ||
f530eb8c JR |
26 | %description -l pl.UTF-8 |
27 | Pymacs jest potężnym narzędziem, które po uruchomieniu z Emacsa | |
28 | pozwala na dwukierunkową komunikację pomiędzy Emacs LISP oraz | |
29 | Pythonem. Pymacs pozwala na ładowanie i używanie modułów Pythona z | |
30 | Emacs LISP. Z kolei funkcje pythona mogą używać usług Emacsa oraz | |
31 | obsługiwać obiekty LISPa znajdujące się w przestrzeni LISPa. | |
d9bc2768 AM |
32 | |
33 | %prep | |
e266beea | 34 | %setup -q -n Pymacs-%{version} |
d9bc2768 AM |
35 | |
36 | %build | |
e266beea | 37 | emacs -batch -f batch-byte-compile pymacs.el |
d9bc2768 AM |
38 | |
39 | %install | |
40 | rm -rf $RPM_BUILD_ROOT | |
e266beea | 41 | install -d $RPM_BUILD_ROOT%{_emacs_lispdir} |
42 | install pymacs.elc $RPM_BUILD_ROOT%{_emacs_lispdir} | |
d9bc2768 | 43 | |
e266beea | 44 | %{__python} setup.py install --root=$RPM_BUILD_ROOT |
d9bc2768 | 45 | |
e266beea | 46 | %py_comp $RPM_BUILD_ROOT%{py_sitescriptdir} |
47 | %py_ocomp $RPM_BUILD_ROOT%{py_sitescriptdir} | |
48 | %py_postclean | |
d9bc2768 | 49 | |
d9bc2768 AM |
50 | %clean |
51 | rm -rf $RPM_BUILD_ROOT | |
52 | ||
53 | %files | |
54 | %defattr(644,root,root,755) | |
e266beea | 55 | %doc ChangeLog* README THANKS* TODO doc/pymacs.pdf |
d9bc2768 | 56 | %attr(755,root,root) %{_bindir}/* |
cb5eafd2 | 57 | %dir %{py_sitescriptdir}/Pymacs |
e266beea | 58 | %{py_sitescriptdir}/Pymacs/*.py[co] |
cb5eafd2 | 59 | %dir %{py_sitescriptdir}/Pymacs/Nn |
e266beea | 60 | %{py_sitescriptdir}/Pymacs/Nn/*.py[co] |
cb5eafd2 | 61 | %dir %{py_sitescriptdir}/Pymacs/Rebox |
e266beea | 62 | %{py_sitescriptdir}/Pymacs/Rebox/*.py[co] |
63 | %{_emacs_lispdir}/*.elc |