File kvirustotal.spec of Package kvirustotal

#
# spec file for package kvirustotal
#
# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany.
# Copyright (c) 8/2011 open-slx GmbH <Sascha.Manns@open-slx.de>
# Copyright (c) 2/2011 Sascha Manns <saigkill@opensuse.org>
#
# 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/
#


#
%define _gitver 20120721

Name:           kvirustotal
Version:        0.30.0.%{_gitver}
Release:        0
Summary:        Online-based Antivirus and Anti-Phising tool
License:        GPL-3.0+
Group:          Productivity/Security
Url:            http://kde-apps.org/content/download.php?content=139065&id=1&tan=92669599
Source:         %{name}-%{_gitver}.tar.bz2
BuildRequires:  cmake
BuildRequires:  fdupes
BuildRequires:  gcc-c++
BuildRequires:  kdelibs4
BuildRequires:  kdelibs4-core
BuildRequires:  kdesdk4-scripts
BuildRequires:  libkde4-devel
BuildRequires:  libqca2-devel
BuildRequires:  libqjson-devel
BuildRequires:  update-desktop-files
Requires:       %{name}-lang = %{version}
Requires:       kdelibs4
Requires:       kdelibs4-core
Requires:       libqjson0
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
%kde4_runtime_requires

%description
KVirusTotal is an online-based antivirus and anti-phising tool. It 
allows you to submit files that will be analysed by more than 40 
up-to-dated antivirus. Besides, it will accept URLs that will be 
tested against the main anti-phising sytems.


%lang_package
%prep
%setup -q -n kvirustotal

%build
export CFLAGS="%{optflags}" CXXFLAGS="%{optflags}"
%cmake_kde4
%make_jobs

%install
%makeinstall
%suse_update_desktop_file -r %{name} System Security

%find_lang %{name} --with-kde
%kde_post_install

%files
%defattr(-,root,root)
%doc AUTHORS ChangeLog COPYING TODO
%dir %{_datadir}/kde4/apps/%{name}
%dir %{_datadir}/kde4/apps/%{name}/pics
%{_bindir}/%{name}
%{_datadir}/applications/kde4/%{name}.desktop
%{_datadir}/icons/hicolor/*/apps/%{name}.png
%{_datadir}/kde4/apps/kvirustotal/pics/%{name}-connecting.gif
%{_datadir}/kde4/apps/kvirustotal/pics/*.png
%{_datadir}/kde4/services/ServiceMenus/kvirustotal_servicemenu.desktop

%files lang -f %{name}.lang
%defattr(-,root,root)

%changelog