File trinity.spec of Package trinity

#
# spec file for package trinity
#
# Copyright (c) 2014 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:           trinity
BuildRequires:  gcc
BuildRequires:  make
BuildRequires:  xz
Summary:        A Linux System call fuzz tester
License:        GPL-2.0
Group:          Development/Tools/Other
Version:        20140119
Release:        0
Url:            http://codemonkey.org.uk/projects/trinity/
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
Source0:        trinity-%{version}.tar.xz
Patch0:         modify_ldt-initialize-scratch.patch

%description
The basic idea is fairly simple. As 'fuzz testing' suggests, we call syscalls
at random, with random arguments.  Not an original idea, and one that has been
done many times before on Linux, and on other operating systems.  Where
Trinity differs is that the arguments it passes are not purely random.

%prep
%setup -q -n %name-%{version}
%patch0 -p1

%build
./configure.sh
make %{?_smp_mflags}

%install
make DESTDIR=$RPM_BUILD_ROOT/usr install

%clean
%{?buildroot:%__rm -rf "%{buildroot}"}

%files
%defattr(-,root,root)
%doc README
%{_bindir}/trinity

%changelog
openSUSE Build Service is sponsored by