File openvas-libnasl.spec of Package openvas-libnasl

#
# spec file for package openvas-libnasl (Version 1.0.1)
#
# Copyright (c) 2008 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/
#

# norootforbuild


Name:           openvas-libnasl
Version:        1.0.1
Release:        2
License:        GPL v2 only
Group:          Productivity/Networking/Security
Url:            http://www.openvas.org
Source:         %{name}-%{version}.tar.gz
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildRequires:  bison gnutls-devel libgcrypt-devel libpcap-devel openvas-libraries-devel
%if %{defined suse_version}
BuildRequires:  texlive-latex
%if 0%{?suse_version} > 1020
BuildRequires:  libgpgme-devel
%endif
%if 0%{?suse_version} < 1030
BuildRequires:  gpgme-devel
%endif
%endif
%if %{defined mandriva_version}
BuildRequires:  gpgme-devel
BuildRequires:  tetex-latex
%endif
%if %{defined fedora_version}
BuildRequires:  gpgme-devel
%if 0%{?fedora_version} >= 9
BuildRequires:  texlive-latex
%endif
%if 0%{?fedora_version} < 9
BuildRequires:  tetex-latex
%endif
%endif
Summary:        Support libraries for the Open Vulnerability Assessment System (OpenVAS) Server

%description
openvas-libnasl is the NASL interpreter library for the OpenVAS network
security scanner.



%define debug_package_requires libopenvasnasl1 = %{version}-%{release}

%package -n libopenvasnasl1
License:        GPL v2 only
Group:          Productivity/Networking/Security
PreReq:         glibc
Summary:        Support libraries for the Open Vulnerability Assessment System (OpenVAS) Server

%description -n libopenvasnasl1
openvas-libnasl is the NASL interpreter library for the OpenVAS network
security scanner.



%package -n libopenvasnasl-devel
License:        GPL v2 only
Group:          Development/Libraries/C and C++
Requires:       libopenvasnasl1 = %{version}
Summary:        Development files for openvas-libraries

%description -n libopenvasnasl-devel
This package contains the development files (mainly C header files) for
openvas-libnasl.



%prep
%setup -q

%build
%configure --disable-static
%__make
cd doc
%__make

%install
%makeinstall
%__rm %{buildroot}%{_libdir}/libopenvasnasl.la

%post -n libopenvasnasl1 -p /sbin/ldconfig

%postun -n libopenvasnasl1 -p /sbin/ldconfig

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

%files -n libopenvasnasl1
%defattr(-,root,root)
%doc ChangeLog CHANGES COPYING doc/signatures-howto.txt doc/nasl_guide.ps
%{_libdir}/libopenvasnasl.so.*

%files -n libopenvasnasl-devel
%defattr(-,root,root)
%{_bindir}/openvas-nasl
%{_bindir}/openvas-libnasl-config
%{_includedir}/openvas/nasl.h
%{_libdir}/libopenvasnasl.so
%{_mandir}/man1/openvas-nasl.1*
%{_mandir}/man1/openvas-libnasl-config.1*

%changelog
* Wed Sep 17 2008 mrueckert@suse.de
- fix requires of the debug package
* Mon Sep 08 2008 anosek@suse.cz
- update to version 1.0.1
  * Changed version requirements for gpgme from 1.1.5 to 1.1.2; 1.1.2 is the
  default version in Debian Etch and already contains sufficient functionality.
  * Added packaging files for Debian, OpenSUSE and Fedora.
  * Preparation for support for OpenVAS OIDs.
  * Changed version requirements for openvas-libraries from 0.9.2 to 1.0.2 due to
  API extension for OpenVAS OIDs.
  * Removed proprietary NASL2 reference.
  * Improved copyright information, various copyright clarifications.
  * Various code cleanups.
- dropped obsoleted patches:
  (destdir_support-Makefile.patch) (destdir_support-nasl-Makefile.patch)
  (gpgme_version-configure.patch) (gpgme_version-configure.in.patch)
* Thu Jun 26 2008 anosek@suse.cz
- not using macros on %%package/%%description lines in spec file
* Wed Jun 18 2008 anosek@suse.cz
- initial version 1.0.0
- package taken from BS project home:bitshuffler:openvas
openSUSE Build Service is sponsored by