File openvas-libraries.spec of Package openvas-libraries

#
# spec file for package openvas-libraries (Version 2.0.3)
#
# 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-libraries
Version:        2.0.3
Release:        1
License:        GPL v2 only
Group:          Productivity/Networking/Security
Url:            http://www.openvas.org
Source:         %{name}-%{version}.tar.bz2
Patch0:         openvas-libraries-Makefile-2.0.0.patch
Patch1:         openvas-libraries-lgcrypt-2.0.3.patch
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildRequires:  glib2-devel gnutls-devel libpcap-devel
Summary:        Support libraries for Open Vulnerability Assessment (OpenVAS) Server

%description
openvas-libraries is the base library for the OpenVAS network security scanner.

%package -n libopenvas2
License:        GPL v2 only
Group:          System/Libraries
PreReq:         glibc
Summary:        Support libraries for Open Vulnerability Assessment (OpenVAS) Server

%description -n libopenvas%{soname}
The support libraries for Open Vulnerability Assessment (OpenVAS) Server.

%package -n libopenvas_hg2
License:        GPL v2 only
Group:          System/Libraries
PreReq:         glibc
Summary:        Support libraries for Open Vulnerability Assessment (OpenVAS) Server

%description -n libopenvas_hg%{soname}
The support libraries for Open Vulnerability Assessment (OpenVAS) Server.

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

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


%prep
%setup -q
%patch0
%patch1

%build
%configure --disable-static
%__make

%install
%makeinstall
find %{buildroot} -name *.la -exec %__rm {} \;

%post -n libopenvas%{soname} -p /sbin/ldconfig

%post -n libopenvas_hg%{soname} -p /sbin/ldconfig

%postun -n libopenvas%{soname} -p /sbin/ldconfig

%postun -n libopenvas_hg%{soname} -p /sbin/ldconfig

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

%files -n libopenvas%{soname}
%defattr(-,root,root)
%doc ChangeLog CHANGES TODO
%{_libdir}/libopenvas.so.%{soname}*

%files -n libopenvas_hg%{soname}
%defattr(-,root,root)
%{_libdir}/libopenvas_hg.so.%{soname}*

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

%changelog
openSUSE Build Service is sponsored by