File openvas-cli.spec of Package openvas-cli

#
# spec file for package openvas-cli
#
# 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 http://bugs.opensuse.org/
#


Name:           openvas-cli
Version:        1.2.0
Release:        1.9
Url:            http://www.openvas.org
Source:         %{name}-%{version}.tar.gz
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

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

BuildRequires:  cmake
BuildRequires:  glib2-devel
BuildRequires:  libopenvas-devel
BuildRequires:  pkgconfig
BuildRequires:  doxygen
Summary:        Command Line Tools for OpenVAS
License:        GPL-2.0+
Group:          Productivity/Networking/Security

%description
OpenVAS-CLI collects command line tools
to handle with the OpenVAS services via the respective
protocols.


%prep
%setup -q

%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}
%__ln_s %{_mandir}/man8/omp.8.gz %{buildroot}%{_mandir}/man8/check_omp.8.gz
%__ln_s %{_mandir}/man8/omp.8.gz %{buildroot}%{_mandir}/man8/omp-dialog.8.gz

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

%files
%defattr(-,root,root)
%doc CHANGES COPYING README
%{_bindir}/omp
%{_bindir}/check_omp
%{_bindir}/omp-dialog
%{_mandir}/man8/omp.8*
%{_mandir}/man8/check_omp.8*
%{_mandir}/man8/omp-dialog.8*

%changelog
* Thu Apr 18 2013 johann.luce@wanadoo.fr
-Update to 1.2.0
  +2013-04-15  Michael Wiegand <michael.wiegand@greenbone.net>
  Preparing the openvas-cli 1.2.0 release.
  * CHANGES: Updated.
  * CMakeLists.txt: Set version to 1.2.0. Switch version scheme.
  * INSTALL: Update dependencies.
  2013-04-03  Werner Koch  <wk@gnupg.org>
  * omp/omp.c: Include unistd.h.
  (my_gnutls_log_func): New.
  (main): Enable GNUTLS debugging if OPENVAS_GNUTLS_DEBUG envvar is
  set and --verbose is used.
  2013-03-19  Hani Benhabiles <hani.benhabiles@greenbone.net>
  Post release version bump.
  * CMakeLists.txt: Updated version to 1.2+rc2.
  2013-03-19  Hani Benhabiles <hani.benhabiles@greenbone.net>
  Preparing the openvas-cli 1.2+rc1 release.
  * CHANGES: Updated.
  * CMakeLists: Set version to 1.2+rc1.
  2013-03-19  Jan-Oliver Wagner <jan-oliver.wagner@greenbone.net>
  * CMakeLists.txt: Set dependency for gnutls to minimum of 2.8.
  Add .hg and .git to the list of ignored files for packaging.
  2013-02-27  Michael Wiegand <michael.wiegand@greenbone.net>
  * nagios/check_omp.c (main): Use omp_get_tasks_ext instead of
  omp_get_tasks so that observed tasks show up.
  2013-02-22  Michael Wiegand <michael.wiegand@greenbone.net>
  * CHANGES: Fix inconsistent version numbers.
  2013-02-22  Michael Wiegand <michael.wiegand@greenbone.net>
  * nagios/check_omp.c (main): Add space in front of version number.
  2013-02-22  Michael Wiegand <michael.wiegand@greenbone.net>
  Post release version bump.
  * CMakeLists.txt: Updated version to 1.2+beta3.
  2013-02-22  Michael Wiegand <michael.wiegand@greenbone.net>
  * nagios/check_omp.c (main), omp/omp.c (main): Update year in
  copyright notice.
  2013-02-22  Michael Wiegand <michael.wiegand@greenbone.net>
  Preparing the openvas-cli 1.2+beta2 release.
  * CHANGES: Updated.
  2013-02-22  Michael Wiegand <michael.wiegand@greenbone.net>
  * INSTALL: Add instructions for building a static version of the
  Nagios plugin.
  2013-02-21  Michael Wiegand <michael.wiegand@greenbone.net>
  Add support for building a static version of the Nagios plugin.
  * CMakeLists.txt: Retrieve flags for static linking if
  BUILD_STATIC_NAGIOS is set.
  * nagios/CMakeLists.txt: Do static linking if BUILD_STATIC_NAGIOS is
  set. Use target_link_libraries instead of LINK_FLAGS for both dynamic
  and static builds to work with modern compiler infrastructures.
  2013-02-20  Michael Wiegand <michael.wiegand@greenbone.net>
  Move "-Werror" flag to the "Debug" build type.
  * CMakeLists.txt: Move "-Werror" from CMAKE_C_FLAGS to
  CMAKE_C_FLAGS_DEBUG to keep it out of the "Release" build type.
  2013-01-27  Hani Benhabiles <hani.benhabiles@greenbone.net>
  * nagios/CMakeLists.txt: Use OPENVAS_LDFLAGS variable when setting
  target link libraries.
  2013-01-24  Jan-Oliver Wagner <jan-oliver.wagner@greenbone.net>
  * README: Added a sample how to extract base64 files.
  2012-12-14  Michael Wiegand <michael.wiegand@greenbone.net>
  Post release version bump.
  * CMakeLists.txt: Updated version to 1.2+beta2.
  2012-12-14  Michael Wiegand <michael.wiegand@greenbone.net>
  Preparing the openvas-cli 1.2+beta1 release.
  * CHANGES: Updated.
  * INSTALL: Updated.
  2012-12-13  Matthew Mundell <matthew.mundell@greenbone.net>
  * omp/omp.c (main): Use omp_get_task_ext instead of omp_get_tasks so
  that observer tasks are available.
  2012-12-12  Matthew Mundell <matthew.mundell@greenbone.net>
  * omp/omp.c (main): Use omp_get_tasks_ext instead of omp_get_tasks so
  that observed tasks show up.
  2012-12-10  Michael Wiegand <michael.wiegand@greenbone.net>
  Update targets for out-of-source builds.
  * doc/CMakeLists.txt: Update commands and targets to work with
  out-of-source builds.
  * doc/Doxyfile.in: Updated to work with out-of-source builds,
  harmonized with other modules.
  * doc/Doxyfile_full.in: Harmonized with Doxyfile.in.
  * omp/CMakeLists.txt: Ensure that the targets "etags" and "ctags" work
  with out-of-source builds.
  2012-11-30  Hani Benhabiles <hani.benhabiles@greenbone.net>
  * doc/omp.8, doc/omp.8.xml, doc/omp.html: Corrected documentation for
  get targets flag.
  2012-09-19  Michael Wiegand <michael.wiegand@greenbone.net>
  * dialog/CMakeLists.txt: Use CMAKE_SOURCE_DIR instead of
  CMAKE_BINARY_DIR to make out-of-source builds work again.
  2012-09-12  Michael Wiegand <michael.wiegand@greenbone.net>
  * dialog/omp-dialog: Fix typo.
  2012-08-28  Michael Meyer <michael.meyer@greenbone.net>
  * dialog/omp-dialog:
  tempfile is deprecated and not available on all systems. Use
  mktemp instead.
  2012-08-28  Andre Heinecke <aheinecke@intevation.de>
  * dialog/omp-dialog (tasks_menu): Change exit to back and return
  to task list from the task action selection.
  2012-08-28  Michael Wiegand <michael.wiegand@greenbone.net>
  * dialog/omp-dialog: Correct two typos in comments.
  2012-08-28  Matthew Mundell <matthew.mundell@greenbone.net>
  * dialog/omp-dialog (usage): Correct message typo.
  2012-08-28  Jan-Oliver Wagner <jan-oliver.wagner@greenbone.net>
  * dialog/omp-dialog: New. A ncurses based interface using
  the "dialog" tool to implement a graphical text interface
  for OMP. This is a initial version implemented by
  Andre Heinecke.
  * dialog/CMakeLists.txt: New. Installs the script.
  * CMakeLists.txt: Added subdirectory "dialog".
  2012-07-23  Sascha Wilde  <wilde@intevation.de>
  * nagios/check_omp.c (cmd_status_impl): Use new omp_get_report_ext
  semantics to implement overrides as apply_overrides.  This fixes
  the problem that overrides had no effect on the reported status.
  2012-07-23  Sascha Wilde  <wilde@intevation.de>
  * CMakeLists.txt: Build Nagios plugin.
  * nagios/CMakeLists.txt, nagios/check_omp.c: New, Nagios plugin by
  Marcus Brinkmann.
  2012-07-19  Jan-Oliver Wagner <jan-oliver.wagner@greenbone.net>
  Post release version bump.
  * CMakeLists.txt: Updated version number to 1.2.0 and
  increased minimum requirement for openvas-libraries to 6.0.
  2012-07-19  Jan-Oliver Wagner <jan-oliver.wagner@greenbone.net>
  * CMakeLists.txt: Last minute fix on revisioning to
  have proper version numbers in --version.
  2012-07-19  Jan-Oliver Wagner <jan-oliver.wagner@greenbone.net>
openSUSE Build Service is sponsored by