[openvas-libraries] separate documentation package, build with ldap support
rebus
rebus at fedoraproject.org
Tue Jan 24 07:56:41 UTC 2012
commit 2b7f818f8f351847a679b8414e5900eea74ab610
Author: Michal Ambroz <rebus at seznam.cz>
Date: Tue Jan 24 08:56:18 2012 +0100
separate documentation package, build with ldap support
openvas-libraries.spec | 47 +++++++++++++++++++++++++++++++++++++----------
1 files changed, 37 insertions(+), 10 deletions(-)
---
diff --git a/openvas-libraries.spec b/openvas-libraries.spec
index 8e469ea..ba16227 100644
--- a/openvas-libraries.spec
+++ b/openvas-libraries.spec
@@ -4,7 +4,7 @@ URL: http://www.openvas.org
License: LGPLv2
Group: System Environment/Libraries
Version: 4.0.6
-Release: 3%{?dist}
+Release: 4%{?dist}
Source0: http://wald.intevation.org/frs/download.php/979/%{name}-%{version}.tar.gz
#Reported as bug 1942 Fix compile time errors - variable 'xxx' set but not used
@@ -44,6 +44,13 @@ BuildRequires: cmake >= 2.6.0
BuildRequires: bison
BuildRequires: flex
BuildRequires: pkgconfig
+BuildRequires: doxygen
+BuildRequires: openldap-devel
+
+
+%description
+openvas-libraries is the base library for the OpenVAS network
+security scanner.
%package devel
@@ -51,12 +58,18 @@ Summary: Development files for openvas-libraries
Group: Development/Libraries
Requires: %{name} = %{version}-%{release}
-%description
-openvas-libraries is the base library for the OpenVAS network
-security scanner.
-
%description devel
-Development libraries and headers for use with openvas-libraries.
+Development libraries and headers for use with %{name}.
+
+
+%package doc
+Summary: Documentation for %{name}
+Group: Documentation
+Requires: %{name} = %{version}-%{release}
+
+%description doc
+This package contains documentation for %{name}.
+
%prep
%setup -q
@@ -88,9 +101,10 @@ mv ChangeLog1 ChangeLog
%build
#export CFLAGS=-Werror=unused-but-set-variable
-%cmake -DLOCALSTATEDIR:PATH=%{_var}
+%cmake -DLOCALSTATEDIR:PATH=%{_var} -DBUILD_WITH_LDAP=ON
# No parallel build because it causes compilation problems
make
+make doc
%install
rm -rf %{buildroot}
@@ -111,7 +125,7 @@ rm -rf %{buildroot}
%files
%defattr(-,root,root,-)
-%doc INSTALL README COPYING* ChangeLog CHANGES
+%doc README COPYING* ChangeLog CHANGES
%dir %{_datadir}/openvas
%dir %{_sysconfdir}/openvas
%{_bindir}/openvas-nasl
@@ -133,13 +147,26 @@ rm -rf %{buildroot}
%{_libdir}/libopenvas_omp.so
%{_libdir}/pkgconfig/libopenvas.pc
+%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
+
+
%changelog
+* Tue Jan 24 2012 Michal Ambroz <rebus at, seznam.cz> - 4.0.6-4
+- separate documentation package, build with ldap support
+
* Sun Jan 15 2012 Michal Ambroz <rebus at, seznam.cz> - 4.0.6-3
-- removed pach openvas-libraries-key.patch again as gnutls will be
+- removed pach openvas-libraries-4.0.6-key.patch again as gnutls will be
upgraded to 2.2.14 in Fedora 16 soon
* Mon Jan 09 2012 Michal Ambroz <rebus at, seznam.cz> - 4.0.6-2
-- added openvas-libraries-key.patch to fix use-after-free issue causing
+- added openvas-libraries-4.0.6-key.patch to fix use-after-free issue causing
SIGSEGV fault in gnutls code
* Fri Nov 04 2011 Michal Ambroz <rebus at, seznam.cz> - 4.0.6-1
More information about the scm-commits
mailing list