File openvas-libnasl.spec of Package openvas-libnasl
#
# spec file for package openvas-libnasl (Version 2.0.1)
#
# Copyright (c) 2009 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
%define soname 2
Name: openvas-libnasl
Version: 2.0.1
Release: 2
License: GPL v2 only
Group: Productivity/Networking/Security
Url: http://www.openvas.org
Source: %{name}-%{version}.tar.bz2
Patch0: openvas-libnasl-gcrypt_linking-2.0.1.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: bison glib2-devel gnutls-devel libgcrypt-devel libgpgme-devel libopenvas-devel libpcap-devel texlive-latex
Summary: The NASL interpreter library for the OpenVAS server
%description
The NASL interpreter library for the Open Vulnerability Assessment System (OpenVAS) network security scanner.
%package -n libopenvasnasl2
License: GPL v2 only
Group: System/Libraries
PreReq: glibc
Summary: The NASL interpreter library for the OpenVAS server
%description -n libopenvasnasl%{soname}
The NASL interpreter library for the Open Vulnerability Assessment System (OpenVAS) network security scanner.
%package -n libopenvasnasl-devel
License: GPL v2 only
Group: Development/Libraries/C and C++
Requires: libopenvasnasl%{soname} = %{version}
Summary: The NASL interpreter library for the OpenVAS server
%description -n libopenvasnasl-devel
The NASL interpreter library for the Open Vulnerability Assessment System (OpenVAS) network security scanner.
%package -n libopenvasnasl-doc
License: GPL v2 only
Group: Documentation/Man
Summary: The documentation of the NASL interpreter library for the OpenVAS server
%description -n libopenvasnasl-doc
The documentation of the NASL interpreter library for the Open Vulnerability Assessment System (OpenVAS) network security scanner.
%prep
%setup -q
%patch0
%build
%configure --disable-static
%__make
cd doc
%__make
%install
%makeinstall
find %{buildroot} -name *.la -exec %__rm {} \;
%post -n libopenvasnasl%{soname} -p /sbin/ldconfig
%postun -n libopenvasnasl%{soname} -p /sbin/ldconfig
%clean
test "%{buildroot}" != "/" && %__rm -rf %{buildroot}
%files -n libopenvasnasl%{soname}
%defattr(-,root,root)
%doc ChangeLog CHANGES COPYING doc/signatures-howto.txt
%{_libdir}/libopenvasnasl.so.%{soname}*
%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*
%files -n libopenvasnasl-doc
%defattr(-,root,root)
%doc doc/nasl_guide.ps
%changelog