]> git.pld-linux.org Git - packages/busybox.git/blob - busybox.spec
- updated to 0.60.2 (release 5).
[packages/busybox.git] / busybox.spec
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
5 Name:           busybox
6 Version:        0.60.2
7 Release:        5
8 License:        GPL
9 Group:          Applications
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)
22
23 %description
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.
32
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
38 ae).
39
40 %description -l pl
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).
49
50 %description -l pt_BR
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.
57
58 %package static
59 Summary:        Static busybox
60 Summary(pl):    Statycznie linkowany busybox
61 Group:          Applications
62
63 %description static
64 Static busybox.
65
66 %description static -l pl
67 Statycznie linkowany busybox.
68
69 %prep
70 %setup -q
71 %patch0 -p1
72 %patch1 -p1
73 %patch3 -p1
74 %patch4 -p1
75 %patch5 -p1
76 %patch6 -p1
77 %patch7 -p1
78
79 %build
80 cp -f %{SOURCE1} Config.h
81
82 %if %{?_without_static:0}%{!?_without_static:1}
83 %{__make} \
84         CFLAGS_EXTRA="%{rpmcflags}" \
85         LDFLAGS="%{rpmldflags} -static"
86 mv -f busybox busybox.static
87 %{__make} clean
88 %endif
89
90 %{__make} \
91         CFLAGS_EXTRA="%{rpmcflags}" \
92         LDFLAGS="%{rpmldflags}" \
93         CC="%{__cc}"
94
95 %install
96 rm -rf $RPM_BUILD_ROOT
97 install -d $RPM_BUILD_ROOT{%{_bindir},%{_mandir}/man1,%{_libdir}/busybox}
98
99 %{!?_without_static:install busybox.static $RPM_BUILD_ROOT%{_bindir}}
100
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
105
106 gzip -9nf AUTHORS TODO Changelog README
107
108 %clean
109 rm -rf $RPM_BUILD_ROOT
110
111 %files
112 %defattr(644,root,root,755)
113 %doc *.gz
114 %attr(755,root,root) %{_bindir}/busybox
115 %{_libdir}/busybox
116 %{_mandir}/man1/*
117
118 %if %{?_without_static:0}%{!?_without_static:1}
119 %files static
120 %defattr(644,root,root,755)
121 %attr(755,root,root) %{_bindir}/busybox.static
122 %endif
This page took 0.078405 seconds and 4 git commands to generate.