File rkhunter.spec of Package rkhunter

#
# spec file for package rkhunter (Version 1.3.4)
#
# Copyright 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.

Summary: Security monitoring and analyzing tool
Name: rkhunter
Version: 1.3.4
Release: 2
Source0: %{name}-%{version}.tar.bz2
Patch0: %{name}-%{version}-rpm-installer.patch
Vendor: %{vendor}
URL: http://rkhunter.sourceforge.net/
License: GPL
Group: Productivity/Security
Requires: wget >= 1.09
BuildArch: noarch
BuildRoot: %{_builddir}/%{name}-%{version}-build

%description
Rootkit Hunter (RKH) is an easy-to-use tool which
checks computers running UNIX (clones) for the
presence of rootkits and other unwanted tools.

%prep
%setup -q
%patch0 -p1

%build
#%debug_package

%install
./installer.sh --layout RPM --install


%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root,-)
%attr(0755,root,root)%{_bindir}/%{name}
%config /etc/%{name}.conf
/usr/lib/%{name}
%{_localstatedir}/lib/%{name}

%doc %{_mandir}/man8/%{name}.8.gz
%exclude %{_docdir}/%name
# Weird error:
# rkhunter-1.3.4-2.noarch.rpm: directories not owned by a package
#%doc %{_docdir}/%name/CHANGELOG
#%doc %{_docdir}/%name/FAQ
#%doc %{_docdir}/%name/LICENSE
#%doc %{_docdir}/%name/README
#%doc %{_docdir}/%name/WISHLIST
#%doc %{_docdir}/%name/ACKNOWLEDGMENTS


%changelog
* Mon Jun 22 2009 Mario GarcĂ­a H. <code933k@gmail.com> - 1.3.4
- Initial package.
openSUSE Build Service is sponsored by