1 # _without_static - don't build static version
2 Summary: Set of common unix utils for embeded systems
3 Summary(pl): Zestaw narzêdzi uniksowych dla systemów wbudowanych
4 Summary(pt_BR): BusyBox é um conjunto de utilitários UNIX em um único binário
10 Source0: ftp://ftp.lineo.com/pub/busybox/%{name}-%{version}.tar.gz
11 Source1: %{name}-config.h
12 Patch0: %{name}-logconsole.patch
13 Patch1: %{name}-tee.patch
14 Patch3: %{name}-printf-gettext.patch
15 Patch4: %{name}-loadfont.patch
16 Patch5: %{name}-cread.patch
17 Patch6: %{name}-malloc.patch
18 Patch7: %{name}-pivot_root.patch
19 URL: http://busybox.lineo.com/
20 %{!?_without_static:BuildRequires: glibc-static}
21 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
24 BusyBox combines tiny versions of many common UNIX utilities into a
25 single small executable. It provides minimalist replacements for most
26 of the utilities you usually find in fileutils, shellutils, findutils,
27 textutils, grep, gzip, tar, etc. BusyBox provides a fairly complete
28 POSIX environment for any small or embedded system. The utilities in
29 BusyBox generally have fewer options than their full-featured GNU
30 cousins; however, the options that are included provide the expected
31 functionality and behave very much like their GNU counterparts.
33 BusyBox has been written with size-optimization and limited resources
34 in mind. It is also extremely modular so you can easily include or
35 exclude commands (or features) at compile time. This makes it easy to
36 customize your embedded systems. To create a working system, just add
37 a kernel, a shell (such as ash), and an editor (such as elvis-tiny or
41 BusyBox sk³ada ma³e wersje wielu narzêdzi uniksowych w jeden ma³y plik
42 wykonywalny. Zapewnia minimalne zastêpniki wiêkszo¶ci narzêdzi
43 zawartych w pakietach fileutils, shellutils, findutils, grep, gzip,
44 tar itp. BusyBox daje w miarê kompletne ¶rodowisko POSIX dla ma³ych
45 lub wbudowanych systemów. Narzêdzia maj± mniej opcji ni¿ ich pe³ne
46 odpowiedniki GNU, ale maj± podstawow± funkcjonalno¶æ. Do dzia³aj±cego
47 systemu potrzeba jeszcze tylko kernela, shella (np. ash) oraz edytora
48 (np. elvis-tiny albo ae).
51 BusyBox combina versões reduzidas de muitos utilitários UNIX num único
52 executável, fornecendo substitutos minimalistas para muitos dos
53 executáveis encontrados em pacotes como fileutils, shellutils,
54 findutils, textutils, grep, gzip, tar, etc. Os utilitários do BusyBox
55 em geral têm menos opções que os utilitários GNU, mas as opções
56 implementadas comportam-se de maneira similar aos equivalentes GNU.
59 Summary: Static busybox
60 Summary(pl): Statycznie linkowany busybox
66 %description static -l pl
67 Statycznie linkowany busybox.
80 cp -f %{SOURCE1} Config.h
82 %if %{?_without_static:0}%{!?_without_static:1}
84 CFLAGS_EXTRA="%{rpmcflags}" \
85 LDFLAGS="%{rpmldflags} -static"
86 mv -f busybox busybox.static
91 CFLAGS_EXTRA="%{rpmcflags}" \
92 LDFLAGS="%{rpmldflags}" \
96 rm -rf $RPM_BUILD_ROOT
97 install -d $RPM_BUILD_ROOT{%{_bindir},%{_mandir}/man1,%{_libdir}/busybox}
99 %{!?_without_static:install busybox.static $RPM_BUILD_ROOT%{_bindir}}
101 install busybox $RPM_BUILD_ROOT%{_bindir}
102 install busybox.links $RPM_BUILD_ROOT%{_libdir}/busybox
103 install docs/BusyBox.1 $RPM_BUILD_ROOT%{_mandir}/man1
104 echo ".so BusyBox.1" > $RPM_BUILD_ROOT%{_mandir}/man1/busybox.1
106 gzip -9nf AUTHORS TODO Changelog README
109 rm -rf $RPM_BUILD_ROOT
112 %defattr(644,root,root,755)
114 %attr(755,root,root) %{_bindir}/busybox
118 %if %{?_without_static:0}%{!?_without_static:1}
120 %defattr(644,root,root,755)
121 %attr(755,root,root) %{_bindir}/busybox.static