2016-01-27 13:32:05 +01:00
|
|
|
#
|
|
|
|
# spec file for package spec
|
|
|
|
#
|
|
|
|
# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
|
2012-02-12 17:11:23 +01:00
|
|
|
# Copyright (c) 2012 Pascal Bleser <pascal.bleser@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/
|
2016-01-27 13:32:05 +01:00
|
|
|
#
|
2012-02-12 17:11:23 +01:00
|
|
|
|
2009-03-21 22:53:07 +01:00
|
|
|
|
2009-11-03 06:26:21 +01:00
|
|
|
Name: clamtk
|
2017-01-10 10:48:33 +01:00
|
|
|
Version: 5.24
|
2009-11-03 06:26:21 +01:00
|
|
|
Release: 0
|
|
|
|
Summary: GUI for the ClamAV Antivirus
|
2016-01-27 13:32:05 +01:00
|
|
|
License: GPL-1.0+ or Artistic-1.0
|
|
|
|
Group: Productivity/Security
|
|
|
|
Url: https://github.com/dave-theunsub/clamtk
|
2014-01-03 10:46:05 +01:00
|
|
|
Source: https://bitbucket.org/dave_theunsub/clamtk/downloads/clamtk-%{version}.tar.gz
|
2011-10-16 19:02:28 +02:00
|
|
|
Patch0: clamtk-add_searchpath.patch
|
2014-05-08 13:51:55 +02:00
|
|
|
BuildRequires: desktop-file-utils
|
2011-04-26 08:09:01 +02:00
|
|
|
# not actually needed, but to make the build fail if the dependencies
|
|
|
|
# won't be available at runtime:
|
2011-06-12 01:46:57 +02:00
|
|
|
BuildRequires: perl(Cwd)
|
2011-04-26 08:09:01 +02:00
|
|
|
BuildRequires: perl(Date::Calc)
|
2011-06-12 01:46:57 +02:00
|
|
|
BuildRequires: perl(Digest::MD5)
|
|
|
|
BuildRequires: perl(Encode)
|
|
|
|
BuildRequires: perl(File::Basename)
|
|
|
|
BuildRequires: perl(File::Copy)
|
2012-05-27 08:36:20 +02:00
|
|
|
## BuildRequires: perl(File::Find::Rule)
|
2011-06-12 01:46:57 +02:00
|
|
|
BuildRequires: perl(File::Path)
|
|
|
|
BuildRequires: perl(Glib)
|
2014-01-03 10:46:05 +01:00
|
|
|
BuildRequires: perl(Gtk2) >= 1.241
|
2011-06-12 01:46:57 +02:00
|
|
|
BuildRequires: perl(Gtk2::SimpleList)
|
2009-11-03 06:26:21 +01:00
|
|
|
#Obsoletes: clamtk-kde
|
2014-01-03 10:46:05 +01:00
|
|
|
# for Virustotal API:
|
|
|
|
BuildRequires: perl(JSON)
|
|
|
|
BuildRequires: perl(LWP::Protocol::https)
|
2016-01-27 13:32:05 +01:00
|
|
|
BuildRequires: perl(LWP::UserAgent)
|
|
|
|
BuildRequires: perl(Locale::gettext)
|
|
|
|
BuildRequires: perl(Net::DNS)
|
|
|
|
BuildRequires: perl(Text::CSV)
|
|
|
|
BuildRequires: update-desktop-files
|
|
|
|
BuildRequires: zenity
|
|
|
|
Requires: clamav >= 0.88
|
|
|
|
Requires: gnome-icon-theme
|
|
|
|
Requires: perl(Cwd)
|
|
|
|
Requires: perl(Digest::SHA)
|
|
|
|
Requires: perl(Encode)
|
|
|
|
Requires: perl(File::Basename)
|
|
|
|
Requires: perl(File::Copy)
|
|
|
|
## Requires: perl(File::Find::Rule)
|
|
|
|
Requires: perl(File::Path)
|
|
|
|
Requires: perl(Glib)
|
|
|
|
Requires: perl(Gtk2) >= 1.241
|
|
|
|
Requires: perl(Gtk2::SimpleList)
|
2014-01-03 10:46:05 +01:00
|
|
|
Requires: perl(JSON)
|
|
|
|
Requires: perl(LWP::Protocol::https)
|
2016-01-27 13:32:05 +01:00
|
|
|
Requires: perl(LWP::UserAgent)
|
|
|
|
Requires: perl(Locale::gettext)
|
|
|
|
Requires: perl(Net::DNS)
|
|
|
|
Requires: perl(Text::CSV)
|
|
|
|
Requires: perl(Time::Piece)
|
|
|
|
Requires: zenity
|
|
|
|
Recommends: clamav-db
|
|
|
|
BuildArch: noarch
|
|
|
|
%{perl_requires}
|
2009-03-21 22:53:07 +01:00
|
|
|
|
|
|
|
%description
|
|
|
|
ClamTk is a GUI front-end for ClamAV using Gtk2-perl.
|
|
|
|
It is designed to be an easy-to-use, point and click virus scanner.
|
|
|
|
|
2009-12-06 00:42:44 +01:00
|
|
|
%lang_package
|
2016-01-27 13:32:05 +01:00
|
|
|
|
2009-03-21 22:53:07 +01:00
|
|
|
%prep
|
2009-04-27 00:42:11 +02:00
|
|
|
%setup -q
|
2009-11-03 06:26:21 +01:00
|
|
|
%patch0
|
2009-03-21 22:53:07 +01:00
|
|
|
|
|
|
|
%build
|
2016-01-27 13:32:05 +01:00
|
|
|
gzip -dc clamtk.1.gz > clamtk.1
|
|
|
|
rm clamtk.1.gz
|
2009-03-21 22:53:07 +01:00
|
|
|
|
|
|
|
%install
|
2016-01-27 13:32:05 +01:00
|
|
|
install -D -m 0755 clamtk %{buildroot}%{_bindir}/clamtk
|
|
|
|
install -D -m 0644 images/clamtk.png %{buildroot}%{_datadir}/pixmaps/clamtk.png
|
|
|
|
install -D -m 0644 clamtk.1 %{buildroot}%{_mandir}/man1/clamtk.1
|
2009-03-21 22:53:07 +01:00
|
|
|
|
2017-01-10 10:48:33 +01:00
|
|
|
# Removed built-in help documentation until updated and translated. See changelog 5.24
|
|
|
|
#install -d %%{buildroot}%%{_datadir}/help/C/clamtk
|
|
|
|
#install -d %%{buildroot}%%{_datadir}/help/C/clamtk/figures
|
|
|
|
#install -D -m 0644 help/C/clamtk/*.page %%{buildroot}%%{_datadir}/help/C/clamtk/
|
|
|
|
#install -D -m 0644 help/C/clamtk/figures/*.png %%{buildroot}%%{_datadir}/help/C/clamtk/figures/
|
2014-08-25 10:56:57 +02:00
|
|
|
|
|
|
|
|
2016-01-27 13:32:05 +01:00
|
|
|
# install in the perl vendorlib location:
|
|
|
|
install -d %{buildroot}/%{perl_vendorlib}/ClamTk
|
|
|
|
install -m0644 lib/*.pm %{buildroot}/%{perl_vendorlib}/ClamTk/
|
2009-03-21 22:53:07 +01:00
|
|
|
|
|
|
|
pushd po
|
|
|
|
for mo in *.mo; do
|
2011-06-12 01:46:57 +02:00
|
|
|
lang="${mo%%.mo}"
|
2016-01-27 13:32:05 +01:00
|
|
|
install -D -m 0644 ${mo} %{buildroot}%{_datadir}/locale/${lang}/LC_MESSAGES/%{name}.mo
|
2009-03-21 22:53:07 +01:00
|
|
|
done
|
|
|
|
popd #po
|
2011-01-10 00:16:08 +01:00
|
|
|
for l in cs_CZ el_GR nl_BE ast; do
|
2016-01-27 13:32:05 +01:00
|
|
|
rm -rf %{buildroot}%{_datadir}/locale/$l
|
2009-12-06 00:42:44 +01:00
|
|
|
done
|
2009-03-21 22:53:07 +01:00
|
|
|
|
2016-01-27 13:32:05 +01:00
|
|
|
%suse_update_desktop_file -i -r %{name} System Security
|
2009-03-21 22:53:07 +01:00
|
|
|
|
2016-01-27 13:32:05 +01:00
|
|
|
%find_lang %{name} %{?no_lang_C}
|
2009-03-21 22:53:07 +01:00
|
|
|
|
2014-05-08 13:51:55 +02:00
|
|
|
%post
|
|
|
|
%desktop_database_post
|
|
|
|
|
|
|
|
%postun
|
|
|
|
%desktop_database_postun
|
|
|
|
|
2009-12-06 00:42:44 +01:00
|
|
|
%files
|
2009-04-27 00:42:11 +02:00
|
|
|
%defattr(-,root,root)
|
2017-01-10 10:48:33 +01:00
|
|
|
%doc CHANGES DISCLAIMER LICENSE README.md
|
|
|
|
# Removed built-in help documentation until updated and translated. See changelog 5.24
|
|
|
|
#%%{_datadir}/help/C/%%{name}/
|
2009-03-21 22:53:07 +01:00
|
|
|
%{_bindir}/clamtk
|
2016-01-27 13:32:05 +01:00
|
|
|
%{perl_vendorlib}/ClamTk
|
2009-03-21 22:53:07 +01:00
|
|
|
%{_datadir}/pixmaps/clamtk.png
|
|
|
|
%{_datadir}/applications/%{name}.desktop
|
2016-01-27 13:32:05 +01:00
|
|
|
%{_mandir}/man1/clamtk.1%{ext_man}
|
2009-03-21 22:53:07 +01:00
|
|
|
|
2016-01-27 13:32:05 +01:00
|
|
|
%files lang -f %{name}.lang
|
|
|
|
%defattr(-,root,root)
|
2009-12-06 00:42:44 +01:00
|
|
|
|
2017-01-10 10:48:33 +01:00
|
|
|
%changelog
|