File scap-workbench.spec of Package scap-workbench
#
# spec file for package scap-workbench
#
# 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: scap-workbench
Version: 0.8.6
Release: 0
Summary: A SCAP scanner and SCAP content editor
License: GPL-3.0
Group: System/Security
Url: https://fedorahosted.org/scap-workbench/
Source: https://fedorahosted.org/released/scap-workbench/%{name}-%{version}.tar.bz2
# bash is not in /usr/bin, kkaempf@suse.de
Patch: scap-workbench-0.8.6.patch
BuildRequires: cmake
BuildRequires: openscap-devel
BuildRequires: pkg-config
BuildRequires: qt-devel
BuildRequires: update-desktop-files
%if 0%{?suse_version} >= 1140
BuildRequires: libwebkitgtk-devel
%else
BuildRequires: libwebkit-devel
%endif
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
The main goal of this application is to lower the initial barrier of
using SCAP. Therefore, the scope of very narrow - scap-workbench only
scans a single machine and only with XCCDF/SDS (no direct OVAL
evaluation). The assumption is that this is enough for users who want
to scan a few machines and users with huge amount of machines to scan
will just use scap-workbench to test or hand-tune their content before
deploying it with more advanced (and harder to use) tools like
​spacewalk.
%package doc
Summary: Documentation for scap-workbench
Group: Documentation
%description doc
This package provides HTML documentation for scap-workbench.
%prep
%setup
%patch -p1
%build
%cmake -DCMAKE_INSTALL_DOCDIR=%{_docdir}/%{name} -DCMAKE_INSTALL_LIBEXECDIR=%{_libdir}/%{name}
make %{?jobs:-j%jobs}
%install
(cd build; %make_install)
%if 0%{?suse_version}
%suse_update_desktop_file -i -u %name Utility DesktopUtility
%endif
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root,0755)
%doc README COPYING
%{_bindir}/%{name}
%{_datadir}/applications/%name.desktop
%{_datadir}/pixmaps/%{name}*
%{_datadir}/polkit-1/actions/%{name}*
%{_mandir}/man8/%{name}*
%dir %{_libdir}/%{name}
%{_libdir}/%{name}/*sh
%exclude %{_docdir}/%{name}/*.html
%files doc
%defattr(-,root,root,0755)
%doc %{_docdir}/%{name}/*.html
%changelog