summaryrefslogtreecommitdiff
path: root/packaging/busybox.spec
blob: e1d6d85ee238a52b194200fa70697f1fae0b34c0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
Name:           busybox
Version:        1.22.1
Release:        0
License:        GPL-2.0+
Summary:        The Swiss Army Knife of Embedded Linux
Url:            http://www.busybox.net/
Group:          System/Utilities
Source:         http://busybox.net/downloads/%{name}-%{version}.tar.bz2
Source2:        busybox.tizen.config
Source1001:     busybox.manifest

%description
BusyBox combines tiny versions of many common UNIX utilities into a
small single executable. It provides minimalist replacements for most
of the utilities usually found in fileutils, shellutils, findutils,
textutils, grep, gzip, tar, and more. BusyBox provides a fairly
complete POSIX environment for any small or embedded system. The
utilities in BusyBox generally have fewer options than their
full-featured GNU cousins. The options that are included provide the
expected functionality and behave very much like their GNU
counterparts.

%prep
%setup -q
cp %{SOURCE1001} .
cp -a %{SOURCE2} .config

%build
export VERBOSE=-v
export BUILD_VERBOSE=2
export CFLAGS="%{optflags} -fno-strict-aliasing"
export CC="gcc"
export HOSTCC=gcc
%__make -e oldconfig
%__make -e %{?_smp_mflags}
%__make -e doc busybox.links %{?_smp_mflags}

%install
install -d %{buildroot}%{_prefix}/bin
install -d %{buildroot}%{_datadir}/busybox
install busybox.links %{buildroot}%{_datadir}/busybox
install applets/install.sh %{buildroot}%{_bindir}/busybox.install
install busybox %{buildroot}%{_prefix}/bin

%files
%manifest %{name}.manifest
%defattr(-,root,root)
%license LICENSE
%{_bindir}/busybox
%{_bindir}/busybox.install
%config %{_datadir}/busybox/busybox.links