File kde3-klamav.spec of Package kde3-klamav
#
# spec file for package klamav
#
# Copyright (c) 2011 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: kde3-klamav
Provides: klamav = %{version}
Obsoletes: klamav <= %{version}
BuildRequires: clamav curl-devel gmp-devel kdelibs3-devel sqlite-devel unsermake
%if %suse_version > 1020
BuildRequires: fdupes
%endif
Url: http://klamav.sourceforge.net/
License: GPLv2+
Group: Productivity/Security
Summary: Frontend for clamav
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Version: 0.46
Release: 15
Source0: klamav-%{version}-source.tar.bz2
Patch4: external-sqlite.diff
Patch7: build-c.diff
Patch8: klamav-gcc43.diff
Patch9: 01_kdepot.patch
Patch10: 03_no_update_software_config_section.patch
Patch11: 04_fix_french_translation.patch
Patch12: 08-use-default-database-path.patch
Patch13: 09-disable-autoscan.patch
Patch14: 10-fix-window-size.patch
Patch15: 11_desktop_directory.diff
Patch16: 12_no_mediaslave.diff
Patch17: 13_ltmail.sh_fix.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
%patch9 -p1
%patch10 -p1
%patch11 -p1
%patch12 -p1
%patch13 -p1
%patch14 -p1
%patch15 -p1
%patch16 -p1
%patch17 -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 klamav Utility Security
kde_post_install
%find_lang klamav
chmod a+x $RPM_BUILD_ROOT/opt/kde3/bin/ScanWithKlamAV
%if %suse_version > 1020
%fdupes $RPM_BUILD_ROOT/opt/kde3/share/
%endif
%files -f klamav.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