File gsd.spec of Package gsd

# spec file for package gsd
# Copyright (c) 2012 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

Name:           gsd
Version:        1.2.2
Release:        0
Source:         %{name}-%{version}.tar.gz
Patch0:         gsd-1.2.0-linking.patch
Patch1:         gsd-gcc47-compat.patch
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildRequires:  cmake
BuildRequires:  doxygen
BuildRequires:  gcc-c++
BuildRequires:  glib2-devel
BuildRequires:  libgcrypt-devel
BuildRequires:  libopenvas-devel
BuildRequires:  libqt4-devel
BuildRequires:  pkgconfig
%if 0%{?fedora_version} > 13
BuildRequires:  qt-webkit-devel

%if 0%{?mandriva_version}
BuildRequires:  pinentry-gtk2

%if 0%{?suse_version}
BuildRequires:  libQtWebKit-devel

Summary:        A Desktop Client that connects to the OpenVAS Manager
License:        GPL-2.0+
Group:          Productivity/Networking/Security

GSD is a desktop client that connects to the OpenVAS Manager using
the OMP protocol.

%setup -q
%patch1 -p1


%__mkdir build
cd build
        -DCMAKE_INSTALL_PREFIX=%{_prefix} \
        -DSYSCONFDIR=%{_sysconfdir} \
        -DLOCALSTATEDIR=%{_localstatedir} \
%__make %{?_smp_mflags} VERBOSE=1

cd build
%__make install DESTDIR=%{buildroot} install

%__mkdir_p %{buildroot}%{_localstatedir}/log/openvas
touch %{buildroot}%{_localstatedir}/log/openvas/gsd.log

test "%{buildroot}" != "/" && %__rm -rf %{buildroot}

%dir %{_sysconfdir}/openvas
%config(noreplace) %{_sysconfdir}/openvas/gsd_log.conf
%dir %{_datadir}/openvas/translations
%dir %{_localstatedir}/log/openvas
%ghost %{_localstatedir}/log/openvas/gsd.log

openSUSE Build Service is sponsored by