Marcus Meissner
558d8cce85
update to 5.24 OBS-URL: https://build.opensuse.org/request/show/449178 OBS-URL: https://build.opensuse.org/package/show/security/clamtk?expand=0&rev=58
142 lines
4.4 KiB
RPMSpec
142 lines
4.4 KiB
RPMSpec
#
|
|
# spec file for package spec
|
|
#
|
|
# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
|
|
# 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/
|
|
#
|
|
|
|
|
|
Name: clamtk
|
|
Version: 5.24
|
|
Release: 0
|
|
Summary: GUI for the ClamAV Antivirus
|
|
License: GPL-1.0+ or Artistic-1.0
|
|
Group: Productivity/Security
|
|
Url: https://github.com/dave-theunsub/clamtk
|
|
Source: https://bitbucket.org/dave_theunsub/clamtk/downloads/clamtk-%{version}.tar.gz
|
|
Patch0: clamtk-add_searchpath.patch
|
|
BuildRequires: desktop-file-utils
|
|
# not actually needed, but to make the build fail if the dependencies
|
|
# won't be available at runtime:
|
|
BuildRequires: perl(Cwd)
|
|
BuildRequires: perl(Date::Calc)
|
|
BuildRequires: perl(Digest::MD5)
|
|
BuildRequires: perl(Encode)
|
|
BuildRequires: perl(File::Basename)
|
|
BuildRequires: perl(File::Copy)
|
|
## BuildRequires: perl(File::Find::Rule)
|
|
BuildRequires: perl(File::Path)
|
|
BuildRequires: perl(Glib)
|
|
BuildRequires: perl(Gtk2) >= 1.241
|
|
BuildRequires: perl(Gtk2::SimpleList)
|
|
#Obsoletes: clamtk-kde
|
|
# for Virustotal API:
|
|
BuildRequires: perl(JSON)
|
|
BuildRequires: perl(LWP::Protocol::https)
|
|
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)
|
|
Requires: perl(JSON)
|
|
Requires: perl(LWP::Protocol::https)
|
|
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}
|
|
|
|
%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.
|
|
|
|
%lang_package
|
|
|
|
%prep
|
|
%setup -q
|
|
%patch0
|
|
|
|
%build
|
|
gzip -dc clamtk.1.gz > clamtk.1
|
|
rm clamtk.1.gz
|
|
|
|
%install
|
|
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
|
|
|
|
# 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/
|
|
|
|
|
|
# install in the perl vendorlib location:
|
|
install -d %{buildroot}/%{perl_vendorlib}/ClamTk
|
|
install -m0644 lib/*.pm %{buildroot}/%{perl_vendorlib}/ClamTk/
|
|
|
|
pushd po
|
|
for mo in *.mo; do
|
|
lang="${mo%%.mo}"
|
|
install -D -m 0644 ${mo} %{buildroot}%{_datadir}/locale/${lang}/LC_MESSAGES/%{name}.mo
|
|
done
|
|
popd #po
|
|
for l in cs_CZ el_GR nl_BE ast; do
|
|
rm -rf %{buildroot}%{_datadir}/locale/$l
|
|
done
|
|
|
|
%suse_update_desktop_file -i -r %{name} System Security
|
|
|
|
%find_lang %{name} %{?no_lang_C}
|
|
|
|
%post
|
|
%desktop_database_post
|
|
|
|
%postun
|
|
%desktop_database_postun
|
|
|
|
%files
|
|
%defattr(-,root,root)
|
|
%doc CHANGES DISCLAIMER LICENSE README.md
|
|
# Removed built-in help documentation until updated and translated. See changelog 5.24
|
|
#%%{_datadir}/help/C/%%{name}/
|
|
%{_bindir}/clamtk
|
|
%{perl_vendorlib}/ClamTk
|
|
%{_datadir}/pixmaps/clamtk.png
|
|
%{_datadir}/applications/%{name}.desktop
|
|
%{_mandir}/man1/clamtk.1%{ext_man}
|
|
|
|
%files lang -f %{name}.lang
|
|
%defattr(-,root,root)
|
|
|
|
%changelog
|