blob: c613f9dc08755e5c08d09c5e53984e865134c4f4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
|
Name: toybox
Version: 0.5.1
Release: 1%{?dist}
Summary: ToyBox Core utilities
Group: Base/Utilities
License: BSD-2-Clause-FreeBSD
URL: http://landley.net/toybox/about.html
Source: %{name}-%{version}.tar.bz2
Source1: config
BuildRequires : smack-devel
BuildRequires : libattr-devel
Requires : libattr
%description
Toybox combines the most common Linux command line utilities together into a single BSD-licensed executable
%prep
%setup -q
%build
cp %{SOURCE1} ./.config
USE_SMACK=1 make %{?_smp_mflags} toybox
%install
output="build"
mkdir -p ./${output}
make PREFIX=./${output} install
mkdir -p %{buildroot}%{_bindir}
mkdir -p %{buildroot}%{_sbindir}
cp --preserve=links ./${output}/bin/* %{buildroot}%{_bindir}
cp --preserve=links ./${output}/sbin/* %{buildroot}%{_sbindir}
cp --preserve=links ./${output}/usr/bin/* %{buildroot}%{_bindir}
cp --preserve=links ./${output}/usr/sbin/* %{buildroot}%{_sbindir}
%files
%{_bindir}/*
%{_sbindir}/*
|