File 9base.spec of Package 9base
#
# spec file for package 9base
#
# Copyright (c) 2013 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: 9base
Version: 6
Release: 0
License: MIT
Summary: Port of various original Plan 9 tools for Unix
Url: http://tools.suckless.org/lsw
Group: TBD
Source: %{name}-%{version}.tar.gz
Patch0: config.mk.patch
#BuildRequires: pkgconfig(x11)
BuildRequires: glibc-devel
BuildRequires: glibc-devel-static
#BuildRequires: bison
%if 0%{?suse_version}
BuildRequires: fdupes
%endif
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
9base is a port of various original Plan 9 tools for Unix, based
on plan9port.
It currently contains the following original (no source changes) shell
commands from Plan 9 for Unix:
ascii, awk, basename, bc, cal, cat, cleanname, cmp, date, dc, du, dd, diff,
echo, ed, factor, fortune, fmt, freq, getflags, grep, hoc, join, look, ls, mk,
mkdir, mtime, pbd, primes, rc, read, sam, sha1sum, sed, seq, sleep, sort,
split, strings, tail, tee, test, touch, tr, troff, unicode, uniq, unutf.
It also contains the Plan 9 libc, libbio, libregexp, libfmt and libutf. The
overall SLOC is about 66kSLOC, so this userland + all libs is much smaller
than, e.g. bash (duh!). Prints all executable file names of given absolute
paths to standard output.
%prep
%setup -q
%patch0 -p1
%build
#%config_suckless
sed -i 's@^PREFIX[?[:blank:]]*=.*@PREFIX = /opt/9base@' config.mk
export CFLAGS="%{optflags}"
make %{?_smp_mflags}
%install
%make_install
%if 0%{?suse_version}
%fdupes -s %{buildroot}/opt
%endif
%files
%defattr(-,root,root)
%doc README LICENSE
/opt/9base
%changelog