2 Summary(pl): Mikroedytorek
7 Group: Applications/Editors
8 Source0: http://www.sax.de/~adlibit/%{name}-%{version}.tar.gz
9 Source1: %{name}-editor.sh
10 Patch0: %{name}-short_jump.patch
11 Patch1: %{name}-%{version}-Polish_letters.patch
12 URL: http://www.sax.de/~adlibit/
17 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
19 %define no_install_post_strip 1
22 e3 is a text micro editor with a code size less than 10000 bytes.
23 Except for 'undo' and 'syntax highlighting', e3 supports all of the
24 basic functions one expects. If you have installed the stream editor
25 'sed' or 'ex' you can use these tools as sub-processes, getting the
26 full power of regular expressions. e3 can use Wordstar-, EMACS-, Pico,
27 Nedit or vi-like key bindings, whichever the user chooses. e3 is
28 designed to be INDEPENDENT OF LIBC OR ANY OTHER library.
31 e3 jest mikroskopijnym wrêcz edytorem tekstu, jego rozmiar nie
32 przekracza 10000 bajtów. Wspiera on wszystkie podstawowe funkcje,
33 jakich mo¿na oczekiwaæ od edytora, z wyj±tkiem pod¶wietlania sk³adni i
34 cofania dokonanych zmian (undo). Jesli chcesz skorzystaæ z potêgi
35 wyra¿eñ regularnych, to e3 mo¿e wywo³aæ zewnêtrzny edytor strumieni
36 ('sed' lub 'ex'). e3 potrafi emulowaæ ustawienia klawiszy Wordstara,
37 EMACSA, Pico, Nedit oraz vi. e3 nie jest zale¿ny od ¿adnej biblioteki
44 # gzexe makes problems
46 perl -pi -e 's/^.*gzexe e3.*$//' Makefile
52 %{__cc} %{rpmcflags} %{rpmldflags} -DLIBDIR=\"%{_libdir}\" e3c/e3.c -o e3c.bin
55 rm -rf $RPM_BUILD_ROOT
56 install -d $RPM_BUILD_ROOT{%{_bindir},%{_mandir}/man1,%{_libdir}}
58 install e3 $RPM_BUILD_ROOT%{_bindir}/e3
60 ln -sf e3c $RPM_BUILD_ROOT%{_bindir}/e3
63 install e3c.bin $RPM_BUILD_ROOT%{_bindir}/e3c
65 install %{SOURCE1} $RPM_BUILD_ROOT%{_bindir}/e3-editor.sh
66 install e3.man $RPM_BUILD_ROOT%{_mandir}/man1/e3.1
67 install e3c/e3c.man $RPM_BUILD_ROOT%{_mandir}/man1/e3c.1
69 install e3c/*.{hlp,res} $RPM_BUILD_ROOT%{_libdir}
71 for i in ws em pi vi ne; do
72 ln -sf e3 $RPM_BUILD_ROOT%{_bindir}/e3${i}
75 for i in emacs vi pico ne ws; do
76 ln -sf e3-editor.sh $RPM_BUILD_ROOT%{_bindir}/e3-$i
80 rm -rf $RPM_BUILD_ROOT
83 %defattr(644,root,root,755)
84 %attr(755,root,root) %{_bindir}/*