File openvas-cli.spec of Package openvas-cli
#
# spec file for package openvas-cli
#
# Copyright (c) 2011 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: openvas-cli
Version: 1.1.3
Release: 1.0
License: GPL-2.0+
Group: Productivity/Networking/Security
Url: http://www.openvas.org
Source: %{name}-%{version}.tar.gz
Patch0: openvas-cli-1.1.3-linking.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%if 0%{?mandriva_version}
BuildRequires: pinentry-gtk2
%endif
BuildRequires: cmake
BuildRequires: glib2-devel
BuildRequires: libopenvas-devel
BuildRequires: pkgconfig
Summary: Command Line Tools for OpenVAS
%description
OpenVAS-CLI collects command line tools
to handle with the OpenVAS services via the respective
protocols.
%prep
%setup -q
%patch0
%build
export CFLAGS="$RPM_OPT_FLAGS"
%__mkdir build
cd build
cmake .. -DCMAKE_VERBOSE_MAKEFILE=ON \
-DCMAKE_INSTALL_PREFIX=%{_prefix} \
-DCMAKE_BUILD_TYPE=Release
%__make %{?_smp_mflags}
%install
cd build
%__make install DESTDIR=%{buildroot}
%clean
test "%{buildroot}" != "/" && %__rm -rf %{buildroot}
%files
%defattr(-,root,root)
%doc CHANGES COPYING README
%{_bindir}/omp
%{_mandir}/man8/omp.8*
%changelog