File stress.spec of Package stress

#
# spec file for package stress
#
# Copyright (c) 2015 SUSE LINUX 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:           stress
Version:        1.0.4
Release:        0
Summary:        Imposes a configurable Amount of Load on your System
License:        GPL-2.0
Group:          System/Benchmark
Url:            http://weather.ou.edu/~apw/projects/stress/
Source:         %{name}-%{version}.tar.gz
# PATCH-FIX-UPSTREAM -- disable the build of the info-pages (broken sources)
Patch0:         stress-fix-build
BuildRequires:  autoconf
BuildRequires:  automake
BuildRequires:  gcc
BuildRequires:  glibc-devel
BuildRequires:  libtool
BuildRequires:  make
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
stress is a simple tool that imposes a configurable amount of CPU, memory,
I/O, and disk stress on POSIX-compliant operating systems. It is written in
portable ANSI C, and uses the GNU Autotools to compile on most UNIX-like
operating systems.

stress is not a benchmark. It is a tool used by system administrators to
evaluate how well their systems will scale, by kernel programmers to evaluate
perceived performance characteristics, and by systems programmers to expose
the classes of bugs which only or more frequently manifest themselves when the
system is under heavy load.

%prep
%setup -q
%patch0 -p1
chmod 0644 AUTHORS NEWS README

%build
autoreconf -fiv
%configure
make OPTFLAGS="%{optflags}" %{?_smp_mflags}

%install
make DESTDIR=%{buildroot} install %{?_smp_mflags}

%files
%defattr(-,root,root)
%doc AUTHORS ChangeLog COPYING NEWS README
%doc doc/stress.html
%{_bindir}/stress
%{_mandir}/man1/stress.1*

%changelog
openSUSE Build Service is sponsored by