]> git.pld-linux.org Git - packages/busybox.git/blame - busybox.spec
- EA: i586
[packages/busybox.git] / busybox.spec
CommitLineData
02a5a01c 1#
ee61dafa
MM
2Summary: Set of common unix utils for embeded systems
3Name: busybox
02a5a01c 4Version: 1.8.3
04ca9553 5Release: 1
ee61dafa 6License: GPL
02a5a01c 7Group: Applications
8Source0: http://www.busybox.net/downloads/%{name}-%{version}.tar.bz2
9# Source0-md5: 38616bdac37732c8f702f332bc375784
10Source1: %{name}-initrd.config
11Source2: %{name}-system.config
12Patch1: %{name}-logconsole.patch
13Patch2: %{name}-printf-gettext.patch
14Patch3: %{name}-loadfont.patch
15Patch4: %{name}-ash_exec.patch
16Patch5: %{name}-kernel_headers.patch
17Patch6: %{name}-insmod-morearchs.patch
18Patch7: %{name}-dhcp.patch
19Patch8: %{name}-fix_64_archs.patch
20URL: http://www.busybox.net/
21BuildRequires: gcc >= 3.2
22BuildRequires: perl-tools-pod
23BuildRequires: rpmbuild(macros) >= 1.333
24BuildRequires: uClibc-static >= 2:0.9.21
ea453652 25ExclusiveArch: i586
ee61dafa
MM
26BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
27
02a5a01c 28%define _bindir /bin
29%define _initrd_bindir /bin
30
31%if "%{_target_base_arch}" != "%{_arch}"
32 %define CrossOpts CROSS="%{_target_cpu}-pld-linux-"
33%else
34 %define CrossOpts %{nil}
35%endif
36
ee61dafa 37%description
02a5a01c 38BusyBox combines tiny versions of many common UNIX utilities into a
39single small executable. It provides minimalist replacements for most
40of the utilities you usually find in fileutils, shellutils, findutils,
41textutils, grep, gzip, tar, etc. BusyBox provides a fairly complete
42POSIX environment for any small or embedded system. The utilities in
43BusyBox generally have fewer options than their full-featured GNU
44cousins; however, the options that are included provide the expected
45functionality and behave very much like their GNU counterparts.
46
47BusyBox has been written with size-optimization and limited resources
48in mind. It is also extremely modular so you can easily include or
49exclude commands (or features) at compile time. This makes it easy to
50customize your embedded systems. To create a working system, just add
51a kernel, a shell (such as ash), and an editor (such as elvis-tiny or
52ae).
53
54%package CRI-initrd
55Summary: Busybox for CRI initrd images
56Group: Applications
57Conflicts: geninitrd < 3075
58
59%description CRI-initrd
60Busybox for CRI initrd images.
61
62%package CRI-system
63Summary: Busybox for CRI system images
64Group: Applications
65Conflicts: geninitrd < 3075
66
67%description CRI-system
68Busybox for CRI system images.
52db7bd4 69
ee61dafa 70%prep
693dc2a0 71%setup -q
02a5a01c 72%patch1 -p1
73%patch2 -p1
74%patch3 -p1
75%patch4 -p1
76%patch5 -p1
77%patch6 -p1
78%patch7 -p1
79%patch8 -p1
ea0cda84 80
ee61dafa 81%build
02a5a01c 82install -d built
83install %{SOURCE1} .config
84%{__make} oldconfig
85%{__make} \
86 CROSS_CFLAGS="%{rpmcflags} -Os -D_BSD_SOURCE" \
87 LDFLAGS="%{ld_rpmldflags} -static" \
88%if "%{_target_base_arch}" != "%{_arch}"
89 CROSS="%{_target_cpu}-uclibc-" \
90%endif
91 CC="%{_target_cpu}-uclibc-gcc"
92
93mv -f busybox built/busybox.initrd
94%{__make} clean
95
96install %{SOURCE2} .config
97%{__make} oldconfig
98%{__make} \
99 CROSS_CFLAGS="%{rpmcflags} -Os -D_BSD_SOURCE" \
100 LDFLAGS="%{ld_rpmldflags} -static" \
101%if "%{_target_base_arch}" != "%{_arch}"
102 CROSS="%{_target_cpu}-uclibc-" \
103%endif
104 CC="%{_target_cpu}-uclibc-gcc"
105
106mv -f busybox built/busybox.system
107%{__make} clean
108
4e2ab1f5 109
ee61dafa
MM
110%install
111rm -rf $RPM_BUILD_ROOT
02a5a01c 112install -d $RPM_BUILD_ROOT%{_bindir}
ee61dafa 113
02a5a01c 114install built/busybox.initrd $RPM_BUILD_ROOT%{_bindir}
115install built/busybox.system $RPM_BUILD_ROOT%{_bindir}
d635bde0 116
ee61dafa
MM
117%clean
118rm -rf $RPM_BUILD_ROOT
119
02a5a01c 120%files CRI-initrd
121%defattr(644,root,root,755)
122%attr(755,root,root) %{_bindir}/busybox.initrd
123
124%files CRI-system
ee61dafa 125%defattr(644,root,root,755)
02a5a01c 126%attr(755,root,root) %{_bindir}/busybox.system
This page took 0.121698 seconds and 4 git commands to generate.