]>
Commit | Line | Data |
---|---|---|
ef1f92dd | 1 | Summary: Tiny edytor |
2 | Summary(pl): Mikroedytorek | |
3 | Name: e3 | |
4 | Version: 1.3 | |
5 | Release: 1 | |
6 | License: GPL | |
7 | Group: Applications/Editors | |
8 | Source0: %{name}-%{version}.tar.gz | |
908aed1a | 9 | Source1: e3-editor.sh |
ef1f92dd | 10 | Patch0: %{name}-makefile.patch |
11 | #URL: | |
12 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
d99d1ddb | 13 | ExclusiveArch: %{ix86} |
ef1f92dd | 14 | |
15 | %description | |
16 | Small bootloader | |
17 | ||
908aed1a | 18 | %package BOOT |
19 | Summary: e3 for bootdisk | |
20 | Group: Applications/Editors | |
21 | ||
22 | %description BOOT | |
23 | ||
24 | ||
ef1f92dd | 25 | %prep |
26 | %setup -q | |
27 | %patch0 | |
28 | ||
29 | %build | |
30 | %{__make} | |
31 | ||
32 | %install | |
33 | rm -rf $RPM_BUILD_ROOT | |
908aed1a | 34 | install -d $RPM_BUILD_ROOT%{_libdir}/bootdisk/bin |
ef1f92dd | 35 | install -d $RPM_BUILD_ROOT%{_bindir} |
36 | install -d $RPM_BUILD_ROOT%{_mandir}/man1 | |
908aed1a | 37 | install e3 $RPM_BUILD_ROOT%{_libdir}/bootdisk/bin |
38 | install %{SOURCE1} $RPM_BUILD_ROOT%{_libdir}/bootdisk/bin/editor.sh | |
ef1f92dd | 39 | install e3.man $RPM_BUILD_ROOT%{_mandir}/man1/e3.1 |
908aed1a | 40 | for i in ws em pi vi ne; do \ |
41 | ln -sf e3 $RPM_BUILD_ROOT%{_bindir}/e3${i}; \ | |
42 | ln -sf e3 $RPM_BUILD_ROOT%{_libdir}/bootdisk/bin/e3${i}; \ | |
43 | done | |
44 | ||
45 | for i in emacs vi pico ne ws; do \ | |
46 | ln -sf editor.sh $RPM_BUILD_ROOT%{_libdir}/bootdisk/bin/$i; \ | |
47 | done | |
ef1f92dd | 48 | |
49 | %clean | |
50 | rm -rf $RPM_BUILD_ROOT | |
51 | ||
52 | %files | |
53 | %defattr(644,root,root,755) | |
54 | %attr(755,root,root) %{_bindir}/* | |
55 | %{_mandir}/man1/* | |
908aed1a | 56 | |
57 | %files BOOT | |
58 | %defattr(644,root,root,755) | |
59 | %attr(755,root,root) %{_libdir}/bootdisk/bin/* |