]>
Commit | Line | Data |
---|---|---|
ee61dafa MM |
1 | Summary: Set of common unix utils for embeded systems |
2 | Name: busybox | |
3 | Version: 0.50 | |
4 | Release: 1 | |
5 | License: GPL | |
6 | Group: Applications/File | |
65512310 | 7 | Group(de): Applikationen/Datei |
8 | Group(pl): Aplikacje/Pliki | |
9 | Source0: ftp://ftp.lineo.com/pub/busybox/%{name}-%{version}.tar.gz | |
ee61dafa | 10 | Source1: %{name}-config.h |
65512310 | 11 | Patch0: %{name}-0.50.patch |
12 | Patch1: %{name}-logconsole.patch | |
13 | Patch2: %{name}-tee.patch | |
14 | URL: http://busybox.lineo.com/ | |
ee61dafa MM |
15 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
16 | ||
17 | %description | |
65512310 | 18 | BusyBox combines tiny versions of many common UNIX utilities into a |
19 | single small executable. It provides minimalist replacements for most | |
20 | of the utilities you usually find in fileutils, shellutils, findutils, | |
21 | textutils, grep, gzip, tar, etc. BusyBox provides a fairly complete | |
22 | POSIX environment for any small or embedded system. The utilities in | |
23 | BusyBox generally have fewer options than their full-featured GNU | |
24 | cousins; however, the options that are included provide the expected | |
25 | functionality and behave very much like their GNU counterparts. | |
26 | ||
27 | BusyBox has been written with size-optimization and limited resources | |
28 | in mind. It is also extremely modular so you can easily include or | |
29 | exclude commands (or features) at compile time. This makes it easy to | |
30 | customize your embedded systems. To create a working system, just add | |
31 | a kernel, a shell (such as ash), and an editor (such as elvis-tiny or | |
32 | ae). | |
ee61dafa MM |
33 | |
34 | %prep | |
35 | %setup -q | |
36 | %patch0 -p1 | |
37 | %patch1 | |
38 | %patch2 | |
39 | ||
40 | %build | |
41 | cp %{SOURCE1} Config.h | |
42 | %{__make} | |
43 | ||
44 | %install | |
45 | rm -rf $RPM_BUILD_ROOT | |
65512310 | 46 | %{__install} -d $RPM_BUILD_ROOT{%{_bindir},%{_libdir}/busybox,%{_mandir}/man1} |
47 | ||
48 | %{__install} busybox $RPM_BUILD_ROOT%{_bindir} | |
49 | %{__install} busybox.links $RPM_BUILD_ROOT%{_libdir}/busybox | |
50 | %{__install} docs/BusyBox.1 $RPM_BUILD_ROOT%{_mandir}/man1 | |
51 | echo ".so BusyBox.1" > $RPM_BUILD_ROOT%{_mandir}/man1/busybox.1 | |
ee61dafa MM |
52 | |
53 | gzip -9nf AUTHORS TODO Changelog README | |
54 | ||
55 | %clean | |
56 | rm -rf $RPM_BUILD_ROOT | |
57 | ||
58 | %files | |
59 | %defattr(644,root,root,755) | |
60 | %doc *.gz | |
65512310 | 61 | %attr(755,root,root) %{_bindir}/* |
62 | %{_libdir}/busybox | |
63 | %{_mandir}/man1/* |