]> git.pld-linux.org Git - packages/e3.git/blame - e3.spec
- no_install_post_strip is back, e3 binary is statically linked and after
[packages/e3.git] / e3.spec
CommitLineData
2b68b904 1Summary: Tiny editor
1354634c 2Summary(pl.UTF-8): Mikroedytorek
ef1f92dd 3Name: e3
ddad8dd4 4Version: 2.7.0
e45a777e 5Release: 1
ddad8dd4 6Epoch: 1
251f1071 7License: GPL v2
ef1f92dd 8Group: Applications/Editors
90e33b9f 9Source0: http://www.sax.de/~adlibit/%{name}-%{version}.tar.gz
ddad8dd4 10# Source0-md5: a76dd61c52a80a1f4d3938a4ce54c62e
caf000fc 11Source1: %{name}-editor.sh
fd79123c 12Patch0: %{name}-gcc421.patch
90e33b9f 13URL: http://www.sax.de/~adlibit/
222eb78c 14%ifarch %{ix86}
caf000fc 15BuildRequires: nasm
222eb78c 16%endif
58219f3f 17BuildRequires: perl-base
251f1071
JB
18%ifarch %{x8664}
19BuildRequires: yasm
20%endif
caf000fc 21BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
222eb78c 22
01ae3a9b 23%define no_install_post_strip 1
24
ef1f92dd 25%description
2b68b904 26e3 is a text micro editor with a code size less than 10000 bytes.
27Except for 'undo' and 'syntax highlighting', e3 supports all of the
28basic 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 30full power of regular expressions. e3 can use Wordstar-, EMACS-, Pico,
31Nedit or vi-like key bindings, whichever the user chooses. e3 is
32designed to be INDEPENDENT OF LIBC OR ANY OTHER library.
2b68b904 33
22181821
JR
34%description -l pl.UTF-8
35e3 jest mikroskopijnym wręcz edytorem tekstu, jego rozmiar nie
36przekracza 10000 bajtów. Wspiera on wszystkie podstawowe funkcje,
37jakich można oczekiwać od edytora, z wyjątkiem podświetlania składni
38i cofania dokonanych zmian (undo). Jeśli chcesz skorzystać z potęgi
39wyrażeń regularnych, to e3 może wywołać zewnętrzny edytor strumieni
40('sed' lub 'ex'). e3 potrafi emulować ustawienia klawiszy Wordstara,
41EMACSA, 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
59rm -rf $RPM_BUILD_ROOT
04ace664 60install -d $RPM_BUILD_ROOT{%{_bindir},%{_mandir}/man1,%{_libdir}}
251f1071 61%ifarch %{ix86} %{x8664}
222eb78c
MM
62install e3 $RPM_BUILD_ROOT%{_bindir}/e3
63%else
222eb78c
MM
64ln -sf e3c $RPM_BUILD_ROOT%{_bindir}/e3
65%endif
caf000fc 66
99848189 67install e3c.bin $RPM_BUILD_ROOT%{_bindir}/e3c
222eb78c 68
99848189 69install %{SOURCE1} $RPM_BUILD_ROOT%{_bindir}/e3-editor.sh
ef1f92dd 70install e3.man $RPM_BUILD_ROOT%{_mandir}/man1/e3.1
222eb78c
MM
71install e3c/e3c.man $RPM_BUILD_ROOT%{_mandir}/man1/e3c.1
72
73install e3c/*.{hlp,res} $RPM_BUILD_ROOT%{_libdir}
caf000fc 74
222eb78c
MM
75for i in ws em pi vi ne; do
76 ln -sf e3 $RPM_BUILD_ROOT%{_bindir}/e3${i}
908aed1a 77done
78
222eb78c 79for i in emacs vi pico ne ws; do
99848189 80 ln -sf e3-editor.sh $RPM_BUILD_ROOT%{_bindir}/e3-$i
908aed1a 81done
ef1f92dd 82
83%clean
84rm -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
This page took 0.076511 seconds and 4 git commands to generate.