File klamav.spec of Package klamav
#
# spec file for package klamav (Version 0.46)
#
# 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
Name: klamav
BuildRequires: clamav curl-devel gmp-devel kdelibs3-devel sqlite-devel
%if %suse_version > 1020
BuildRequires: fdupes
%endif
Url: http://klamav.sourceforge.net/
License: GPL v2 or later
Group: Productivity/Security
Summary: Frontend for clamav
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Version: 0.46
Release: 2
Source0: klamav-%{version}-source.tar.bz2
Patch4: external-sqlite.diff
Patch7: build-c.diff
Patch8: klamav-gcc43.diff
%description
A KDE front-end for the Clam AntiVirus antivirus toolkit.
Authors:
--------
Robert Hogan <robert@roberthogan.net>
%prep
%setup -q -n klamav-%version-source/klamav-%version
%patch4
%patch7
%patch8 -p1
. /etc/opt/kde3/common_options
rm -rf src/klamd src/sqlite
update_admin
%build
. /etc/opt/kde3/common_options
./configure $configkde \
%ifarch amd64 x86_64 ia32e ppc64 s390x
--enable-libsuffix=64 \
%endif
--disable-final \
--without-included-sqlite
make
%install
. /etc/opt/kde3/common_options
make DESTDIR=$RPM_BUILD_ROOT $INSTALL_TARGET
%suse_update_desktop_file %name Utility Security
kde_post_install
%find_lang %name
chmod a+x $RPM_BUILD_ROOT/opt/kde3/bin/ScanWithKlamAV
%if %suse_version > 1020
%fdupes $RPM_BUILD_ROOT/opt/kde3/share/
%endif
%files -f %name.lang
%defattr(-,root,root)
%doc README AUTHORS ChangeLog COPYING NEWS TODO
/opt/kde3/bin/ScanWithKlamAV
/opt/kde3/bin/klamarkollon
/opt/kde3/bin/klamav
/opt/kde3/bin/klammail
/opt/kde3/share/applications/kde/klamav.desktop
/opt/kde3/share/apps/klamav
%dir /opt/kde3/share/apps/konqueror
%dir /opt/kde3/share/apps/konqueror/servicemenus
/opt/kde3/share/apps/konqueror/servicemenus/klamav-dropdown.desktop
/opt/kde3/share/config.kcfg/klamavconfig.kcfg
/opt/kde3/share/icons/*/*/*
%doc %lang(en) /opt/kde3/share/doc/HTML/en/klamav02
%changelog