]> git.pld-linux.org Git - packages/busybox.git/blame - busybox.spec
580f7cc09689d71c04c8952f792741f6 busybox-sh-name.patch
[packages/busybox.git] / busybox.spec
CommitLineData
ee61dafa
MM
1Summary: Set of common unix utils for embeded systems
2Name: busybox
4ab971f9 3Version: 0.51
f0fddde7 4Release: 2
ee61dafa 5License: GPL
d79d7625 6Group: Applications
7Group(de): Applikationen
8Group(pl): Aplikacje
65512310 9Source0: ftp://ftp.lineo.com/pub/busybox/%{name}-%{version}.tar.gz
ee61dafa 10Source1: %{name}-config.h
f1ff2c35 11Patch0: %{name}-logconsole.patch
12Patch1: %{name}-tee.patch
ea0cda84 13Patch2: %{name}-sh-name.patch
65512310 14URL: http://busybox.lineo.com/
ee61dafa 15BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
bb4ca08e 16BuildRequires: uClibc-devel-BOOT
ee61dafa
MM
17
18%description
65512310 19BusyBox combines tiny versions of many common UNIX utilities into a
20single small executable. It provides minimalist replacements for most
21of the utilities you usually find in fileutils, shellutils, findutils,
22textutils, grep, gzip, tar, etc. BusyBox provides a fairly complete
23POSIX environment for any small or embedded system. The utilities in
24BusyBox generally have fewer options than their full-featured GNU
25cousins; however, the options that are included provide the expected
26functionality and behave very much like their GNU counterparts.
27
28BusyBox has been written with size-optimization and limited resources
29in mind. It is also extremely modular so you can easily include or
30exclude commands (or features) at compile time. This makes it easy to
31customize your embedded systems. To create a working system, just add
32a kernel, a shell (such as ash), and an editor (such as elvis-tiny or
33ae).
ee61dafa 34
bb4ca08e 35%package BOOT
36Summary: busybox for bootdisk
d79d7625 37Group: Applications
bb4ca08e 38
39%description BOOT
40
ee61dafa
MM
41%prep
42%setup -q
f1ff2c35 43%patch0
ee61dafa 44%patch1
ea0cda84 45%patch2 -p1
46
ee61dafa
MM
47
48%build
bb4ca08e 49# BOOT
ee61dafa 50cp %{SOURCE1} Config.h
bb4ca08e 51%{__make} \
d79d7625 52 CFLAGS_EXTRA="-I%{_libdir}/bootdisk%{_includedir}" \
bb4ca08e 53 LDFLAGS="-nostdlib -s" \
d79d7625 54 LIBRARIES="%{_libdir}/bootdisk%{_libdir}/crt0.o %{_libdir}/bootdisk%{_libdir}/libc.a -lgcc"
bb4ca08e 55
56# TODO make main package dynamically linked
ee61dafa
MM
57
58%install
59rm -rf $RPM_BUILD_ROOT
bb4ca08e 60# BOOT
d79d7625 61%{__install} -d $RPM_BUILD_ROOT%{_libdir}/bootdisk/bin/
62%{__install} -d $RPM_BUILD_ROOT%{_libdir}/bootdisk%{_libdir}/busybox
63%{__install} busybox $RPM_BUILD_ROOT%{_libdir}/bootdisk/bin/busybox
64for i in `cat busybox.links`; do ln -sfn busybox "$RPM_BUILD_ROOT%{_libdir}/bootdisk/bin/`basename $i`"; done
65%{__install} busybox.links $RPM_BUILD_ROOT%{_libdir}/bootdisk%{_libdir}/busybox
ea0cda84 66# change sh to lash (see sh_name patch)
67mv -f $RPM_BUILD_ROOT%{_libdir}/bootdisk/bin/{sh,lash}
65512310 68
bb4ca08e 69%{__install} -d $RPM_BUILD_ROOT{%{_bindir},%{_libdir}/busybox,%{_mandir}/man1}
65512310 70%{__install} busybox $RPM_BUILD_ROOT%{_bindir}
71%{__install} busybox.links $RPM_BUILD_ROOT%{_libdir}/busybox
72%{__install} docs/BusyBox.1 $RPM_BUILD_ROOT%{_mandir}/man1
73echo ".so BusyBox.1" > $RPM_BUILD_ROOT%{_mandir}/man1/busybox.1
ee61dafa 74
bb4ca08e 75
ee61dafa
MM
76gzip -9nf AUTHORS TODO Changelog README
77
78%clean
79rm -rf $RPM_BUILD_ROOT
80
81%files
82%defattr(644,root,root,755)
83%doc *.gz
65512310 84%attr(755,root,root) %{_bindir}/*
85%{_libdir}/busybox
86%{_mandir}/man1/*
bb4ca08e 87
88%files BOOT
89%defattr(644,root,root,755)
d79d7625 90%attr(755,root,root) %{_libdir}/bootdisk/bin/*
91%{_libdir}/bootdisk%{_libdir}/*
This page took 1.160105 seconds and 4 git commands to generate.