File systester.spec of Package systester

#
# spec file for package systester
#
# 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:           systester
Version:        1.5.1
Release:        0
Summary:        Benchmark and system stabilty tool
License:        GPL-2.0+
Group:          System/Benchmark
Url:            http://systester.sourceforge.net
Source:         http://sourceforge.net/projects/systester/files/systester/1.5.0/%{name}-%{version}.tar.gz
BuildRequires:  gmp-devel
BuildRequires:  hicolor-icon-theme
BuildRequires:  libqt4-devel
BuildRequires:  update-desktop-files
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
ExclusiveArch:  ix86 x86_64

%description
System Stability Tester tries to test the system's stability by
calculating up to 128 millions of Pi digits. It supports multiple
calculation algorithms. For the moment only two have been
implemented. The Quadratic Convergence of Borwein and Gauss-Legendre,
the algorithm SuperPi uses.

%prep
%setup -q

%build
# not a standard configure, don't replace with macro
./configure \
	--prefix=%{_prefix}
make %{?_smp_mflags}
pushd cli
make %{?_smp_mflags}
make %{?_smp_mflags} lite
popd

%install
mkdir -p %{buildroot}/%{_bindir}
mkdir -p %{buildroot}/%{_docdir}/%{name}
mkdir -p %{buildroot}/%{_datadir}/applications
mkdir -p %{buildroot}/%{_datadir}/pixmaps
cp systester %{buildroot}/%{_bindir}
cp Authors Changelog COPYING FAQ.txt %{buildroot}/%{_docdir}/%{name}
cp images/systester.png %{buildroot}/%{_datadir}/pixmaps
cp systester.desktop %{buildroot}/%{_datadir}/applications
pushd cli
cp systester-cli %{buildroot}/%{_bindir}
cp systester-lite %{buildroot}/%{_bindir}
popd
%suse_update_desktop_file  -r %{name} Education Math System Monitor

%post
%desktop_database_post
%icon_theme_cache_post

%postun
%desktop_database_postun
%icon_theme_cache_postun

%files
%defattr(-,root,root)
%doc COPYING
%{_bindir}/systester
%{_bindir}/systester-cli
%{_bindir}/systester-lite
%doc %{_docdir}/%{name}
%{_datadir}/applications/systester.desktop
%{_datadir}/pixmaps/systester.png

%changelog
openSUSE Build Service is sponsored by