%define _prefix /usr %define _default_patch_fuzz 2 Summary: Support libraries for Open Vulnerability Assessment (OpenVAS) Server Name: openvas-libraries Version: 8.0.8 Release: 25 Source0: %{name}-%{version}.tar.gz Patch0: openvas-libraries-bsdsource.patch Patch1: openvas-libraries-libssh.patch Patch2: bugfix-r24105.patch License: GNU LGPLv2 URL: http://www.openvas.org Group: System Environment/Libraries Vendor: OpenVAS Development Team, http://www.openvas.org Packager: Scott R. Shinn BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root Prefix: %{_prefix} BuildRequires: libssh-devel BuildRequires: zlib-devel BuildRequires: libtool BuildRequires: openldap-devel BuildRequires: openvas-smb BuildRequires: hiredis-devel BuildRequires: xmltoman BuildRequires: net-snmp-devel BuildRequires: libksba-devel %if 0%{?fedora} >= 12 || 0%{?rhel} >= 6 BuildRequires: libuuid libuuid-devel %else BuildRequires: e2fsprogs e2fsprogs-devel %endif # OV-8 %if 0%{?rhel} == 6 BuildRequires: atomic-gnutls3-gnutls-devel BuildConflicts: gnutls gnutls-devel BuildRequires: atomic-glib2-glib2-devel Requires: atomic-gnutls3-gnutls atomic-glib2-glib2 %else BuildRequires: gnutls-devel BuildRequires: glib2 >= 2.6.0, glib2-devel >= 2.6.0, %endif BuildRequires: doxygen BuildRequires: graphviz # 3.0 BuildRequires: gpgme gpgme-devel bison flex pkgconfig BuildRequires: cmake Requires: gpgme Obsoletes: openvas-libnasl BuildRequires: libpcap-devel BuildRequires: libgcrypt-devel %description openvas-libraries is the base library for the OpenVAS network security scanner. %package devel Summary: Development files for openvas-libraries Group: Development/Libraries Requires: %{name} = %{version}-%{release} %description devel This package contains the development files (mainly C header files) for openvas-libraries. %package doc Summary: Documentation for %{name} Group: Documentation Requires: %{name} = %{version}-%{release} %description doc This package contains documentation for %{name}. %prep %setup -q #%if 0%{?fedora} >= 21 #%patch0 -p 1 -b .bsdsource #%patch1 -p 1 -b .libssh #%endif #%patch2 -p1 -b .r24105 %build %if 0%{?rhel} == 6 export CC="gcc -Wl,-rpath,/opt/atomic/atomic-gnutls3/root/usr/lib,-rpath,/opt/atomic/atomic-gnutls3/root/usr/lib64,-rpath,/opt/atomic/atomic-glib2/root/usr/lib64/,-rpath,/opt/atomic/atomic-glib2/root/usr/lib/" export LDFLAGS="-L/opt/atomic/atomic-gnutls3/root/usr/lib -L/opt/atomic/atomic-gnutls3/root/usr/lib64 -L/lib -L/usr/openvas/lib/ -L/usr/openvas/lib64/" export CFLAGS="-I/opt/atomic/atomic-gnutls3/root/usr/include -I/usr/openvas/include" export GNUTLS_LIBS=/opt/atomic/atomic-gnutls3/root/usr/lib:/opt/atomic/atomic-gnutls3/root/usr/lib64 export PKG_CONFIG_PATH=/opt/atomic/atomic-glib2/root/usr/lib64/pkgconfig:/opt/atomic/atomic-gnutls3/root/usr/lib/pkgconfig:/opt/atomic/atomic-gnutls3/root/usr/lib64/pkgconfig:/usr/lib/pkgconfig/ %endif %if 0%{?fedora} > 23 export CFLAGS="$RPM_OPT_FLAGS -Wno-unused-const-variable -Wno-error=misleading-indentation" %endif %cmake -DCMAKE_VERBOSE_MAKEFILE=ON \ -DCMAKE_INSTALL_PREFIX=%{_prefix} \ -DSYSCONFDIR=%{_sysconfdir} \ -DLIBDIR=%{_libdir} \ -DLOCALSTATEDIR=%{_localstatedir} \ -DBUILD_WITH_LDAP=ON make %if 0%{!?el5} %{__make} doc %endif %install make install DESTDIR=$RPM_BUILD_ROOT %post /sbin/ldconfig %postun /sbin/ldconfig %clean rm -rf $RPM_BUILD_ROOT %files %defattr(-,root,root,-) %doc COPYING %{_bindir}/openvas-nasl %{_bindir}/openvas-nasl-lint %{_libdir}/libopenvas_* %{_mandir}/man1/openvas-nasl.1.gz #/usr/share/openvas/openvas-services #/usr/share/openvas/openvas-lsc-rpm-creator.sh %files devel %defattr(-,root,root,-) #{_bindir}/libopenvas-config #{_mandir}/man1/libopenvas-config.1.gz %{_libdir}/pkgconfig/libopenvas*.pc %{_includedir}/openvas/ %if 0%{!?el5} %files doc %defattr(-,root,root,-) %doc doc/generated/html %doc doc/example.auth.conf %doc doc/example.target.locators %doc doc/signatures-howto.txt %doc doc/test_ipv6_packet_forgery.nasl %doc doc/wmi-howto.txt %endif %changelog * Wed Aug 31 2016 Scott R. Shinn - 8.0.8-25 - Update to 8.0.8 * Fri Mar 18 2016 Scott R. Shinn - 8.0.7-24 - Update to 8.0.7 * Wed Jan 13 2016 Scott R. Shinn - 8.0.6-23 - Backport r24104 (Patch originally from Guillaume Castagnino) * misc/openvas_server.c: Replace 'SECURE' with 'NORMAL'. * Mon Dec 21 2015 Scott R. Shinn - 8.0.6-22 - Update to 8.0.6 * Mon Jul 13 2015 Scott R. Shinn - 8.0.4-20 - Update to 8.0.4 * Sat May 23 2015 Scott R. Shinn - 8.0.3-19 - Update to 8.0.3 * Tue Mar 17 2015 Scott R. Shinn - 7.0.9-18 - Update to 7.0.9 * Fri Jan 30 2015 Scott R. Shinn - 7.0.7-17 - UPdate to 7.0.7 * Mon Dec 15 2014 Scott R. Shinn - 7.0.6-16 - Fedora 21 updates * Thu Nov 27 2014 Scott R. Shinn - 7.0.6-15 - Update to 7.0.6 * Mon Nov 17 2014 Scott R. Shinn - 7.0.5-14 - Update to 7.0.5 * Tue Sep 9 2014 Scott R. Shinn - 7.0.4-13 - Update to 7.0.4 * Fri Aug 1 2014 Scott R. Shinn - 7.0.3-12 - Update to 7.0.3 * Wed Jul 2 2014 Scott R. Shinn - 7.0.2-11 - Add libssh support * Mon Jun 16 2014 Scott R. Shinn - 7.0.2-10 - Update to 7.0.2 * Sat May 3 2014 Scott R. Shinn - 7.0.1-9 - Update to 7.0.1 * Fri Feb 28 2014 Scott R. Shinn - 6.0.2-8 - Update to 6.0.2 * Fri Oct 25 2013 Scott R. Shinn - 6.0.1-7 - Update to 6.0.1 * Thu Apr 18 2013 Scott R. Shinn - 6.0.0-6 - Update to 6.0.0 - Remove el4 references * Wed Nov 07 2012 Scott R. Shinn - 5.0.4-5 - Update to 5.0.4 * Mon Aug 20 2012 Scott R. Shinn - 5.0.3-4 - Update to 5.0.3 * Wed Jul 25 2012 Scott R. Shinn - 5.0.1-3 - Backport fix for gnutls 2.17 support * Thu May 10 2012 Scott R. Shinn - 5.0.1-2 - Update to 5.0.1 * Tue Apr 24 2012 Scott R. Shinn - 5.0.0-1 - Update to 5.0.0 - Add in documentation package * Mon Nov 7 2011 Scott R. Shinn - 4.0.6-3 - Bugfix #XXX, correct md5sum for the lsc rpm creation script * Fri Nov 4 2011 Scott R. Shinn - 4.0.6-1 - Update to 4.0.6 * Wed Jun 1 2011 Scott R. Shinn - 4.0.5-1 - Update to 4.0.5 * Wed May 4 2011 Scott R. Shinn - 4.0.4-1 - Update to 4.0.4 * Mon Mar 7 2011 Scott R. Shinn - 4.0.3-1 - Update to 4.0.3 * Wed Feb 23 2011 Scott R. Shinn - 4.0.2-1 - Update to 4.0.2 - Happy 40th Mike! * Tue Feb 22 2011 Scott R. Shinn - 4.0.1-1 - Update to 4.0.1 * Thu Feb 3 2011 Scott R. Shinn - 4.0.0-1 - Update to 4.0 final * Wed Jan 19 2011 Scott R. Shinn - 4.0-0.3 - Update to 4.0-rc2 * Wed Dec 29 2010 Scott R. Shinn - 4.0-0.2 - Update to 4.0-rc1 * Fri Dec 3 2010 Scott R. Shinn - 4.0-beta2 - Update to 4.0-beta2 * Sun Oct 17 2010 Scott R. Shinn - 3.1.3-2 - Rebuild libraries with wmi support * Fri Sep 10 2010 Scott R. Shinn - 3.1.3-1 - Update to 3.1.3 * Thu Aug 26 2010 Scott R. Shinn - 3.1.2-1 - Update to 3.1.2 * Thu Jul 1 2010 Scott R. Shinn - 3.1.0-3 - Update to 3.1.0rc3 * Mon Jun 28 2010 Scott R. Shinn - 3.1.0-2 - Update to 3.1.0rc2 * Wed May 19 2010 Scott R. Shinn - 3.1.0-1 - Update to 3.1.0rc1 * Sun Apr 11 2010 Scott R. Shinn - 3.0.5-1 - Update to 3.0.5 * Wed Mar 3 2010 Scott R. Shinn - 3.0.4-1 - Update to 3.0.4 * Thu Feb 4 2010 Scott R. Shinn - 3.0.3-1 - Update to 3.0.3 * Mon Jan 11 2010 Scott R. Shinn - 3.0.1-1 - Update to 3.0.1 * Fri Dec 18 2009 Scott R. Shinn - 3.0.0-1 - Update to 3.0.0 * Tue Aug 18 2009 Scott R. Shinn - 2.0.4-1 - Update to 2.0.4 * Thu Jun 11 2009 Scott R. Shinn - 2.0.3-1 - Update to 2.0.3 * Fri Mar 6 2009 Scott R. Shinn - 2.0.2-1 - Update to 2.0.2 * Mon Feb 9 2009 Scott R. Shinn - 2.0.1-1 - Update to 2.0.1 * Tue Dec 30 2008 Scott R. Shinn - 2.0.0-2 - Bugfix #XXX, added libtoolize before configure * Mon Dec 22 2008 Scott R. Shinn - 2.0.0 - Update to 2.0.0 * Thu Dec 11 2008 Scott R. Shinn - 2.0.0.rc1 - Update to 2.0.0.rc1 * Mon Nov 17 2008 Scott R. Shinn - 2.0.0.beta2-1 - Update to 2.0.0.beta2 * Fri Nov 7 2008 Scott R. Shinn - 2.0.0.beta1-1 - Update to 2.0.0.beta1 * Wed Nov 5 2008 Scott R. Shinn - 1.0.2-1 - Update to 1.0.2 - Merge into Atomic * Fri Apr 18 2008 Jan-Oliver Wagner - Adapated for Fedora 8 (naming) - %post and %postrun changed to apply ldconfig directly instead of using a (SUSE specific?) scriplet. - extended BuildRequires with libpcap-devel * Tue Apr 15 2008 Jan-Oliver Wagner Initial SUSE 10.2 spec file, tested for i586