File mingw32-busybox.spec of Package mingw32-busybox
#
# spec file for package mingw32-busybox
#
# Copyright (c) 2015 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/
#
%define _basename busybox
Name: mingw32-%{_basename}
Version: TIG_1_23_0
Release: 0
#!BuildIgnore: post-build-checks
Summary: The Swiss Army Knife of Embedded Linux
License: GPL-2.0-or-later
Group: System/Base
Url: http://intgat.tigress.co.uk/rmy/busybox/index.html
Source: https://github.com/rmyorston/busybox-w32/archive/%{version}.tar.gz
Patch0: busybox-mingw-headers-9-compile-fix.patch
BuildRequires: mingw32-cross-binutils
BuildRequires: mingw32-cross-gcc
BuildRequires: mingw32-cross-pkg-config
BuildRequires: mingw32-filesystem
%_mingw32_package_header_debug
BuildArch: noarch
%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.
This is a port of BusyBox to the WIN32 API used by the Microsoft Windows operating
system. It brings a subset of the functionality of BusyBox to that platform.
%_mingw32_debug_package
%prep
%setup -q -n %{_basename}-w32-%{version}
%autopatch -p1
%build
%{_mingw32_make} mingw32_defconfig
%{_mingw32_make} %{?_smp_mflags} V=1
%install
install -m 755 -D busybox_unstripped.exe %{buildroot}%{_mingw32_bindir}/busybox.exe
%files
%defattr(-,root,root)
%doc LICENSE README README.md
%{_mingw32_bindir}/busybox.exe
%changelog