]>
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/ | |
9a556e9b | 11 | BuildRequires: rpmbuild(macros) >= 1.710 |
43ef7c89 | 12 | BuildRequires: emacs |
dbfa3a2c | 13 | BuildRequires: python-devel >= 2.2 |
0a22760b | 14 | %pyrequires_eq python |
dbfa3a2c | 15 | Requires: emacs >= 21.1 |
dbfa3a2c | 16 | Obsoletes: pymacs |
e266beea | 17 | BuildArch: noarch |
18 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
d9bc2768 AM |
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 | ||
f530eb8c JR |
27 | %description -l pl.UTF-8 |
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. | |
d9bc2768 AM |
33 | |
34 | %prep | |
e266beea | 35 | %setup -q -n Pymacs-%{version} |
d9bc2768 AM |
36 | |
37 | %build | |
e266beea | 38 | emacs -batch -f batch-byte-compile pymacs.el |
d9bc2768 AM |
39 | |
40 | %install | |
41 | rm -rf $RPM_BUILD_ROOT | |
e266beea | 42 | install -d $RPM_BUILD_ROOT%{_emacs_lispdir} |
43 | install pymacs.elc $RPM_BUILD_ROOT%{_emacs_lispdir} | |
d9bc2768 | 44 | |
5f03073a | 45 | %py_install |
d9bc2768 | 46 | |
e266beea | 47 | %py_comp $RPM_BUILD_ROOT%{py_sitescriptdir} |
48 | %py_ocomp $RPM_BUILD_ROOT%{py_sitescriptdir} | |
49 | %py_postclean | |
d9bc2768 | 50 | |
d9bc2768 AM |
51 | %clean |
52 | rm -rf $RPM_BUILD_ROOT | |
53 | ||
54 | %files | |
55 | %defattr(644,root,root,755) | |
e266beea | 56 | %doc ChangeLog* README THANKS* TODO doc/pymacs.pdf |
d9bc2768 | 57 | %attr(755,root,root) %{_bindir}/* |
cb5eafd2 | 58 | %dir %{py_sitescriptdir}/Pymacs |
e266beea | 59 | %{py_sitescriptdir}/Pymacs/*.py[co] |
cb5eafd2 | 60 | %dir %{py_sitescriptdir}/Pymacs/Nn |
e266beea | 61 | %{py_sitescriptdir}/Pymacs/Nn/*.py[co] |
cb5eafd2 | 62 | %dir %{py_sitescriptdir}/Pymacs/Rebox |
e266beea | 63 | %{py_sitescriptdir}/Pymacs/Rebox/*.py[co] |
64 | %{_emacs_lispdir}/*.elc |