File scap-workbench.spec of Package scap-workbench

# spec file for package scap-workbench
# 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

Name:           scap-workbench
Version:        1.1.1
Release:        0
Summary:        A SCAP scanner and SCAP content editor
License:        GPL-3.0
Group:          System/Security
BuildRequires:  cmake
BuildRequires:  openscap-devel
# SLE 11 SP3: libopenscap needs libxslt without requiring it
# libxslt nees pcre
%if 0%{?suse_version} < 1140
BuildRequires:  libxslt-devel
BuildRequires:  pcre-devel
BuildRequires:  pkg-config
# QXmlQuery is in 4.8 and later
BuildRequires:  libqt4-devel >= 4.8
BuildRequires:  update-desktop-files
%if 0%{?suse_version} >= 1140
BuildRequires:  libwebkitgtk-devel
BuildRequires:  libwebkit-devel
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

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

%package doc
Summary:        Documentation for scap-workbench
Group:          Documentation

%description doc
This package provides HTML documentation for scap-workbench.

%setup -q

%if 0%{?cmake}
%cmake -DCMAKE_INSTALL_DOCDIR=%{_docdir}/%{name} -DCMAKE_INSTALL_LIBEXECDIR=%{_libdir}/%{name}
rm -rf build
mkdir build
(cd build;
(cd build; make %{?jobs:-j%jobs})

(cd build; %make_install)

%if 0%{?suse_version}
%suse_update_desktop_file -i -u %name Utility DesktopUtility

%dir %{_datadir}/appdata/
%dir %{_datadir}/%name
%dir %{_datadir}/%name/translations
%dir %{_datadir}/polkit-1
%dir %{_datadir}/polkit-1/actions
%dir %{_libdir}/%{name}
%exclude %{_docdir}/%{name}/*.html

%files doc
%doc %{_docdir}/%{name}/*.html

openSUSE Build Service is sponsored by