2 Summary(pl): Mikroedytorek
7 Group: Applications/Editors
8 Group(de): Applikationen/Editors
9 Group(pl): Aplikacje/Edytory
10 Group(pt): Aplicações/Editores
11 Source0: http://www.sax.de/~adlibit/%{name}-%{version}.tar.gz
12 Source1: %{name}-editor.sh
13 Patch0: %{name}-short_jump.patch
14 Patch1: %{name}-%{version}-Polish_letters.patch
15 URL: http://www.sax.de/~adlibit/
20 BuildRequires: uClibc-devel
21 BuildRequires: uClibc-static
22 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
24 %define no_install_post_strip 1
26 %define embed_path /usr/lib/embed
27 %define embed_cc %{_arch}-uclibc-cc
28 %define embed_cflags %{rpmcflags} -Os
31 e3 is a text micro editor with a code size less than 10000 bytes.
32 Except for 'undo' and 'syntax highlighting', e3 supports all of the
33 basic functions one expects. If you have installed the stream editor
34 'sed' or 'ex' you can use these tools as sub-processes, getting the
35 full power of regular expressions. e3 can use Wordstar-, EMACS-,
36 Pico, Nedit or vi-like key bindings, whichever the user chooses.
37 e3 is designed to be INDEPENDENT OF LIBC OR ANY OTHER library.
40 e3 jest mikroskopijnym wrêcz edytorem tekstu, jego rozmiar nie
41 przekracza 10000 bajtów. Wspiera on wszystkie podstawowe funkcje,
42 jakich mo¿na oczekiwaæ od edytora, z wyj±tkiem pod¶wietlania sk³adni
43 i cofania dokonanych zmian (undo). Jesli chcesz skorzystaæ z potêgi
44 wyra¿eñ regularnych, to e3 mo¿e wywo³aæ zewnêtrzny edytor strumieni
45 ('sed' lub 'ex'). e3 potrafi emulowaæ ustawienia klawiszy Wordstara,
46 EMACSA, Pico, Nedit oraz vi. e3 nie jest zale¿ny od ¿adnej biblioteki
50 Summary: e3 for bootdisk
51 Group: Applications/Editors
52 Group(de): Applikationen/Editors
53 Group(pl): Aplikacje/Edytory
54 Group(pt): Aplicações/Editores
63 # gzexe makes problems
65 perl -pi -e 's/^.*gzexe e3.*$//' Makefile
71 %{embed_cc} %{embed_cflags} -DLIBDIR=\"%{_libdir}\" e3c/e3.c -o e3c.shared
72 %{embed_cc} %{embed_cflags} -DLIBDIR=\"%{_libdir}\" -static e3c/e3.c -o e3c.static
75 rm -rf $RPM_BUILD_ROOT
76 install -d $RPM_BUILD_ROOT%{embed_path}/{static,shared,%{_libdir}} \
77 $RPM_BUILD_ROOT{%{_bindir},%{_mandir}/man1,%{_libdir}}
80 install e3 $RPM_BUILD_ROOT%{embed_path}/static/e3
81 install e3 $RPM_BUILD_ROOT%{embed_path}/shared/e3
82 install e3 $RPM_BUILD_ROOT%{_bindir}/e3
84 ln -sf e3c $RPM_BUILD_ROOT%{embed_path}/static/e3
85 ln -sf e3c $RPM_BUILD_ROOT%{embed_path}/shared/e3
86 ln -sf e3c $RPM_BUILD_ROOT%{_bindir}/e3
89 install e3c.static $RPM_BUILD_ROOT%{embed_path}/static/e3c
90 install e3c.shared $RPM_BUILD_ROOT%{embed_path}/shared/e3c
91 install e3c.static $RPM_BUILD_ROOT%{_bindir}/e3c
93 install %{SOURCE1} $RPM_BUILD_ROOT%{embed_path}/shared/editor.sh
94 install %{SOURCE1} $RPM_BUILD_ROOT%{embed_path}/static/editor.sh
95 install e3.man $RPM_BUILD_ROOT%{_mandir}/man1/e3.1
96 install e3c/e3c.man $RPM_BUILD_ROOT%{_mandir}/man1/e3c.1
98 install e3c/*.{hlp,res} $RPM_BUILD_ROOT%{_libdir}
99 install e3c/*.{hlp,res} $RPM_BUILD_ROOT%{embed_path}%{_libdir}
101 for i in ws em pi vi ne; do
102 ln -sf e3 $RPM_BUILD_ROOT%{_bindir}/e3${i}
103 ln -sf e3 $RPM_BUILD_ROOT%{embed_path}/static/e3${i}
104 ln -sf e3 $RPM_BUILD_ROOT%{embed_path}/shared/e3${i}
107 for i in emacs vi pico ne ws; do
108 ln -sf editor.sh $RPM_BUILD_ROOT%{embed_path}/static/$i
109 ln -sf editor.sh $RPM_BUILD_ROOT%{embed_path}/shared/$i
113 rm -rf $RPM_BUILD_ROOT
116 %defattr(644,root,root,755)
117 %attr(755,root,root) %{_bindir}/*
119 %{embed_path}%{_libdir}/*
122 %defattr(644,root,root,755)
123 %attr(755,root,root) %{embed_path}/s*/*
124 %{embed_path}%{_libdir}/*