summaryrefslogtreecommitdiff
path: root/packaging
diff options
context:
space:
mode:
authorxroche <xavier.roche@open.eurogiciel.org>2014-10-13 16:09:05 +0200
committerxroche <xavier.roche@open.eurogiciel.org>2014-12-09 09:48:20 +0100
commitdcfbd665ae122e78c1ef6fdd7d4f7e311d27897c (patch)
tree9cabe17d2be8574f28a38eef32a8a1f354df0c4e /packaging
parent05423b7d418fa33f4c812b8262c21f9401ee3a98 (diff)
downloadtoybox-dcfbd665ae122e78c1ef6fdd7d4f7e311d27897c.tar.gz
toybox-dcfbd665ae122e78c1ef6fdd7d4f7e311d27897c.tar.bz2
toybox-dcfbd665ae122e78c1ef6fdd7d4f7e311d27897c.zip
Adding smack integration in toybox
Change-Id: I5cad2fbdd42d27a26debb536ab05a7b753c26b85 Signed-off-by: xroche <xavier.roche@open.eurogiciel.org>
Diffstat (limited to 'packaging')
-rw-r--r--packaging/toybox.spec32
1 files changed, 32 insertions, 0 deletions
diff --git a/packaging/toybox.spec b/packaging/toybox.spec
new file mode 100644
index 0000000..6893325
--- /dev/null
+++ b/packaging/toybox.spec
@@ -0,0 +1,32 @@
+Name: toybox
+Version: 0.5.0
+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
+
+%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
+make PREFIX=./ install
+mkdir -p %{buildroot}%{_bindir}
+##mkdir -p %{buildroot}%{_sbindir}
+cp --preserve=links ./bin/* %{buildroot}%{_bindir}
+##cp --preserve=links ./sbin/* %{buildroot}%{_sbindir}
+
+%files
+%{_bindir}/*
+##%{_sbindir}/*