]>
Commit | Line | Data |
---|---|---|
2b68b904 | 1 | Summary: Tiny editor |
1354634c | 2 | Summary(pl.UTF-8): Mikroedytorek |
ef1f92dd | 3 | Name: e3 |
ddad8dd4 | 4 | Version: 2.7.0 |
e45a777e | 5 | Release: 1 |
ddad8dd4 | 6 | Epoch: 1 |
251f1071 | 7 | License: GPL v2 |
ef1f92dd | 8 | Group: Applications/Editors |
90e33b9f | 9 | Source0: http://www.sax.de/~adlibit/%{name}-%{version}.tar.gz |
ddad8dd4 | 10 | # Source0-md5: a76dd61c52a80a1f4d3938a4ce54c62e |
caf000fc | 11 | Source1: %{name}-editor.sh |
fd79123c | 12 | Patch0: %{name}-gcc421.patch |
90e33b9f | 13 | URL: http://www.sax.de/~adlibit/ |
222eb78c | 14 | %ifarch %{ix86} |
caf000fc | 15 | BuildRequires: nasm |
222eb78c | 16 | %endif |
58219f3f | 17 | BuildRequires: perl-base |
251f1071 JB |
18 | %ifarch %{x8664} |
19 | BuildRequires: yasm | |
20 | %endif | |
caf000fc | 21 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
222eb78c | 22 | |
01ae3a9b | 23 | %define no_install_post_strip 1 |
24 | ||
ef1f92dd | 25 | %description |
2b68b904 | 26 | e3 is a text micro editor with a code size less than 10000 bytes. |
27 | Except for 'undo' and 'syntax highlighting', e3 supports all of the | |
28 | basic functions one expects. If you have installed the stream editor | |
29 | 'sed' or 'ex' you can use these tools as sub-processes, getting the | |
a3693a3f | 30 | full power of regular expressions. e3 can use Wordstar-, EMACS-, Pico, |
31 | Nedit or vi-like key bindings, whichever the user chooses. e3 is | |
32 | designed to be INDEPENDENT OF LIBC OR ANY OTHER library. | |
2b68b904 | 33 | |
22181821 JR |
34 | %description -l pl.UTF-8 |
35 | e3 jest mikroskopijnym wręcz edytorem tekstu, jego rozmiar nie | |
36 | przekracza 10000 bajtów. Wspiera on wszystkie podstawowe funkcje, | |
37 | jakich można oczekiwać od edytora, z wyjątkiem podświetlania składni | |
38 | i cofania dokonanych zmian (undo). Jeśli chcesz skorzystać z potęgi | |
39 | wyrażeń regularnych, to e3 może wywołać zewnętrzny edytor strumieni | |
40 | ('sed' lub 'ex'). e3 potrafi emulować ustawienia klawiszy Wordstara, | |
41 | EMACSA, Pico, Nedit oraz vi. e3 nie jest zależny od żadnej biblioteki | |
42 | (wliczając glibc). | |
ef1f92dd | 43 | |
44 | %prep | |
897905a9 | 45 | %setup -q |
fd79123c | 46 | %patch0 -p1 |
e45a777e | 47 | |
ef1f92dd | 48 | %build |
222eb78c | 49 | %ifarch %{ix86} |
ef1f92dd | 50 | %{__make} |
222eb78c | 51 | %endif |
251f1071 JB |
52 | %ifarch %{x8664} |
53 | %{__make} yasm64 \ | |
54 | AFLAGS=- | |
55 | %endif | |
99848189 | 56 | %{__cc} %{rpmcflags} %{rpmldflags} -DLIBDIR=\"%{_libdir}\" e3c/e3.c -o e3c.bin |
ef1f92dd | 57 | |
58 | %install | |
59 | rm -rf $RPM_BUILD_ROOT | |
04ace664 | 60 | install -d $RPM_BUILD_ROOT{%{_bindir},%{_mandir}/man1,%{_libdir}} |
251f1071 | 61 | %ifarch %{ix86} %{x8664} |
222eb78c MM |
62 | install e3 $RPM_BUILD_ROOT%{_bindir}/e3 |
63 | %else | |
222eb78c MM |
64 | ln -sf e3c $RPM_BUILD_ROOT%{_bindir}/e3 |
65 | %endif | |
caf000fc | 66 | |
99848189 | 67 | install e3c.bin $RPM_BUILD_ROOT%{_bindir}/e3c |
222eb78c | 68 | |
99848189 | 69 | install %{SOURCE1} $RPM_BUILD_ROOT%{_bindir}/e3-editor.sh |
ef1f92dd | 70 | install e3.man $RPM_BUILD_ROOT%{_mandir}/man1/e3.1 |
222eb78c MM |
71 | install e3c/e3c.man $RPM_BUILD_ROOT%{_mandir}/man1/e3c.1 |
72 | ||
73 | install e3c/*.{hlp,res} $RPM_BUILD_ROOT%{_libdir} | |
caf000fc | 74 | |
222eb78c MM |
75 | for i in ws em pi vi ne; do |
76 | ln -sf e3 $RPM_BUILD_ROOT%{_bindir}/e3${i} | |
908aed1a | 77 | done |
78 | ||
222eb78c | 79 | for i in emacs vi pico ne ws; do |
99848189 | 80 | ln -sf e3-editor.sh $RPM_BUILD_ROOT%{_bindir}/e3-$i |
908aed1a | 81 | done |
ef1f92dd | 82 | |
83 | %clean | |
84 | rm -rf $RPM_BUILD_ROOT | |
85 | ||
86 | %files | |
87 | %defattr(644,root,root,755) | |
251f1071 JB |
88 | %doc COPYRIGHT ChangeLog README |
89 | %attr(755,root,root) %{_bindir}/e3* | |
90 | %{_mandir}/man1/e3*.1* | |
fd79123c | 91 | %{_libdir}/*.hlp |
92 | %{_libdir}/*.res |