forked from pool/busybox
Dirk Mueller
4e8b0edbfb
- Trim marketing from description. OBS-URL: https://build.opensuse.org/request/show/730727 OBS-URL: https://build.opensuse.org/package/show/Base:System/busybox?expand=0&rev=55
128 lines
4.2 KiB
RPMSpec
128 lines
4.2 KiB
RPMSpec
#
|
|
# spec file for package busybox
|
|
#
|
|
# Copyright (c) 2019 SUSE LINUX 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 https://bugs.opensuse.org/
|
|
#
|
|
|
|
|
|
Name: busybox
|
|
Version: 1.30.1
|
|
Release: 0
|
|
Summary: Minimalist variant of UNIX utilities linked in a single executable
|
|
License: GPL-2.0-or-later
|
|
Group: System/Base
|
|
Url: http://www.busybox.net/
|
|
Source: http://busybox.net/downloads/%{name}-%{version}.tar.bz2
|
|
Source1: BusyBox.1
|
|
Source2: busybox.config
|
|
Source3: busybox-static.config
|
|
Source4: busybox-container.config
|
|
# other patches
|
|
Patch: busybox.install.patch
|
|
Provides: useradd_or_adduser_dep
|
|
BuildRequires: glibc-devel-static
|
|
BuildRequires: libtirpc-devel
|
|
|
|
%description
|
|
BusyBox combines tiny versions of many common UNIX utilities into a
|
|
single executable. It provides minimalist replacements for utilities
|
|
usually found in fileutils, shellutils, findutils, textutils, grep,
|
|
gzip, tar, and more. BusyBox provides a fairly complete POSIX
|
|
environment for small or embedded systems. The utilities in BusyBox
|
|
generally have fewer options than their GNU cousins. The options that
|
|
are included provide the expected functionality and behave much like
|
|
their GNU counterparts.
|
|
|
|
%package static
|
|
Summary: Static linked version of Busybox, a compact UNIX utility collection
|
|
Group: System/Base
|
|
|
|
%description static
|
|
BusyBox combines tiny versions of many common UNIX utilities into a
|
|
single executable.
|
|
|
|
%package container
|
|
Summary: A version of Busybox configured for containers
|
|
Group: System/Base
|
|
Provides: useradd_or_adduser_dep
|
|
|
|
%description container
|
|
This is a small BusyBox version which contains only the tools which
|
|
makes sense in a container.
|
|
|
|
%prep
|
|
%setup -q
|
|
%patch -p0
|
|
cp -a %{SOURCE1} docs/
|
|
find "(" -name CVS -o -name .cvsignore -o -name .svn -o -name .gitignore ")" \
|
|
-exec rm -Rf {} +
|
|
|
|
%build
|
|
export KCONFIG_NOTIMESTAMP=KCONFIG_NOTIMESTAMP
|
|
export VERBOSE=-v
|
|
export BUILD_VERBOSE=2
|
|
export CFLAGS="%{optflags} -fno-strict-aliasing -I/usr/include/tirpc"
|
|
export CC="gcc"
|
|
export HOSTCC=gcc
|
|
cp -a %{SOURCE4} .config
|
|
make %{?_smp_mflags} -e oldconfig
|
|
make -e %{?_smp_mflags}
|
|
mv busybox busybox-container
|
|
make busybox.links
|
|
mv busybox.links busybox-container.links
|
|
sed -e 's|busybox.links|busybox-container.links|g' -e 's|/usr/bin/busybox|/usr/bin/busybox-container|g' applets/install.sh > busybox-container.install
|
|
cp -a %{SOURCE3} .config
|
|
make %{?_smp_mflags} -e oldconfig
|
|
make -e %{?_smp_mflags}
|
|
mv busybox busybox-static
|
|
make -e %{?_smp_mflags} clean
|
|
cp -a %{SOURCE2} .config
|
|
make %{?_smp_mflags} -e oldconfig
|
|
make -e %{?_smp_mflags}
|
|
make -e doc busybox.links %{?_smp_mflags}
|
|
|
|
%install
|
|
install -d %{buildroot}/%{_bindir}
|
|
install -d %{buildroot}/%{_datadir}/busybox
|
|
install -m 0644 busybox.links %{buildroot}%{_datadir}/busybox
|
|
install -m 0644 busybox-container.links %{buildroot}%{_datadir}/busybox
|
|
install applets/install.sh %{buildroot}%{_bindir}/busybox.install
|
|
install busybox-container.install %{buildroot}%{_bindir}/busybox-container.install
|
|
install -m 0755 busybox %{buildroot}/%{_bindir}
|
|
install -m 0755 busybox-static %{buildroot}/%{_bindir}
|
|
install -m 0755 busybox-container %{buildroot}/%{_bindir}
|
|
install -d %{buildroot}%{_mandir}/man1
|
|
install -m 644 docs/BusyBox.1 %{buildroot}%{_mandir}/man1
|
|
|
|
%files
|
|
%license LICENSE
|
|
%doc docs/mdev.txt
|
|
%doc %{_mandir}/man1/BusyBox.1.gz
|
|
%{_bindir}/busybox
|
|
%{_bindir}/busybox.install
|
|
%dir %{_datadir}/busybox
|
|
%{_datadir}/busybox/busybox.links
|
|
|
|
%files static
|
|
%license LICENSE
|
|
%{_bindir}/busybox-static
|
|
|
|
%files container
|
|
%license LICENSE
|
|
%{_bindir}/busybox-container
|
|
%{_bindir}/busybox-container.install
|
|
%{_datadir}/busybox/busybox-container.links
|
|
|
|
%changelog
|