forked from pool/busybox
b9446f38d0
- Remove redundant tags/sections from specfile - Remove unexplained ExcludeArch directive OBS-URL: https://build.opensuse.org/request/show/82931 OBS-URL: https://build.opensuse.org/package/show/Base:System/busybox?expand=0&rev=14
94 lines
3.0 KiB
RPMSpec
94 lines
3.0 KiB
RPMSpec
#
|
|
# spec file for package busybox-static
|
|
#
|
|
# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
|
#
|
|
# All modifications and additions to the file contributed by third parties
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
# upon. The license for this file, and modifications and additions to the
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
# license for the pristine package is not an Open Source License, in which
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
# published by the Open Source Initiative.
|
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
#
|
|
|
|
|
|
|
|
Name: busybox-static
|
|
Url: http://www.busybox.net/
|
|
Version: 1.18.3
|
|
Release: 1
|
|
Summary: The Swiss Army Knife of Embedded Linux
|
|
License: GPLv2+
|
|
Group: System/Base
|
|
Source: http://busybox.net/downloads/busybox-%{version}.tar.bz2
|
|
Source1: BusyBox.1
|
|
Source2: busybox.SuSE.config
|
|
Source3: mkinitrd-setup.sh
|
|
Source4: mkinitrd-boot.sh
|
|
# upstream patches
|
|
Patch0: busybox-1.18.3-buildsys.patch
|
|
Patch1: busybox-1.18.3-cksum.patch
|
|
Patch2: busybox-1.18.3-klogd.patch
|
|
Patch3: busybox-1.18.3-menuconfig.patch
|
|
Patch4: busybox-1.18.3-modutils24.patch
|
|
Patch5: busybox-1.18.3-wget.patch
|
|
# other patches
|
|
Patch99: busybox.uClibc-build-fix.patch
|
|
Patch100: busybox.install.patch
|
|
Patch101: busybox-1.18.3-libarchive.patch
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
BuildRequires: uClibc-devel
|
|
|
|
%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 -n busybox-%{version}
|
|
%patch0 -p1
|
|
%patch1 -p1
|
|
%patch2 -p1
|
|
%patch3 -p1
|
|
%patch4 -p1
|
|
%patch5 -p1
|
|
%patch99 -p1
|
|
%patch100 -p1
|
|
%patch101 -p1
|
|
%{__cp} -a %{S:1} docs/
|
|
%{__cp} -a %{S:2} .config
|
|
find -name CVS | xargs rm -rf
|
|
find -name .cvsignore | xargs rm -rf
|
|
find -name .svn | xargs rm -rf
|
|
find -name .gitignore | xargs rm -rf
|
|
|
|
%build
|
|
export VERBOSE=-v
|
|
export BUILD_VERBOSE=2
|
|
export CFLAGS="%{optflags} -fno-strict-aliasing"
|
|
# somehow uClibc prefers it's own ar.h header, so rename it
|
|
mv include/ar.h include/b_ar.h
|
|
sed -i -e 's/"ar.h"/"b_ar.h"/' archival/*.c archival/*/*.c
|
|
make -e oldconfig
|
|
make -e CC=gcc-uClibc %{?_smp_mflags}
|
|
|
|
%install
|
|
install -d $RPM_BUILD_ROOT/usr/bin
|
|
install busybox $RPM_BUILD_ROOT/usr/bin/busybox-static
|
|
|
|
%files
|
|
%defattr(-,root,root)
|
|
/usr/bin/busybox-static
|
|
|
|
%changelog
|