From 6d492c51da4d790b6b8960a9c366130a01ff90240e012b51fda7b7af10d862ff Mon Sep 17 00:00:00 2001 From: Marcus Meissner Date: Wed, 27 Jan 2016 12:32:05 +0000 Subject: [PATCH] Accepting request 355491 from home:posophe:branches:security update OBS-URL: https://build.opensuse.org/request/show/355491 OBS-URL: https://build.opensuse.org/package/show/security/clamtk?expand=0&rev=56 --- clamtk-5.19.tar.gz | 3 -- clamtk-5.20.tar.gz | 3 ++ clamtk.changes | 11 +++++ clamtk.spec | 117 +++++++++++++++++++++++---------------------- 4 files changed, 73 insertions(+), 61 deletions(-) delete mode 100644 clamtk-5.19.tar.gz create mode 100644 clamtk-5.20.tar.gz diff --git a/clamtk-5.19.tar.gz b/clamtk-5.19.tar.gz deleted file mode 100644 index 2a4d77e..0000000 --- a/clamtk-5.19.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:8c20d50aafc49c5a145868f35dcb74fa67b4e4ccaf30e742de3e71b5c76545f2 -size 899760 diff --git a/clamtk-5.20.tar.gz b/clamtk-5.20.tar.gz new file mode 100644 index 0000000..6d891f2 --- /dev/null +++ b/clamtk-5.20.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:e63c36b1e33fd1231452f243734e019e6ab8c47bfe6894e04c05e26a71b30d76 +size 897173 diff --git a/clamtk.changes b/clamtk.changes index dfa2126..583ddec 100644 --- a/clamtk.changes +++ b/clamtk.changes @@ -1,3 +1,14 @@ +------------------------------------------------------------------- +Sat Jan 23 14:04:23 UTC 2016 - p.drouand@gmail.com + +- Update to version 5.20 + * Remove nautilus as dependency for clamtk (BZ #1260284) + * Updated language files: Khmer (km), Thai (th), Lao (lo), + French (fr) +- Perform a spec-cleaner +- Add %{perl_requires} macro +- Install perl libraries into %{perl_vendorlib} + ------------------------------------------------------------------- Sun Jul 19 11:27:55 UTC 2015 - ecsos@opensuse.org diff --git a/clamtk.spec b/clamtk.spec index e0d46d6..2e911ac 100644 --- a/clamtk.spec +++ b/clamtk.spec @@ -1,3 +1,7 @@ +# +# spec file for package spec +# +# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany. # Copyright (c) 2012 Pascal Bleser # # All modifications and additions to the file contributed by third parties @@ -10,39 +14,18 @@ # published by the Open Source Initiative. # Please submit bugfixes or comments via http://bugs.opensuse.org/ +# -# vim: set ts=4 sw=4 et: Name: clamtk -Version: 5.19 +Version: 5.20 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 -Url: http://code.google.com/p/clamtk/ -Group: Productivity/Security -License: GPL-1.0+ or Artistic-1.0 -BuildRoot: %{_tmppath}/build-%{name}-%{version} -Requires: clamav >= 0.88 -Recommends: clamav-db -Requires: perl -Requires: perl(Cwd) -Requires: perl(Time::Piece) -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(LWP::UserAgent) -Requires: perl(Locale::gettext) -Requires: perl(Net::DNS) -Requires: perl(Text::CSV) -Requires: zenity -Requires: gnome-icon-theme BuildRequires: desktop-file-utils # not actually needed, but to make the build fail if the dependencies # won't be available at runtime: @@ -52,70 +35,87 @@ BuildRequires: perl(Digest::MD5) BuildRequires: perl(Encode) BuildRequires: perl(File::Basename) BuildRequires: perl(File::Copy) -BuildRequires: perl(Text::CSV) ## BuildRequires: perl(File::Find::Rule) BuildRequires: perl(File::Path) BuildRequires: perl(Glib) BuildRequires: perl(Gtk2) >= 1.241 BuildRequires: perl(Gtk2::SimpleList) -BuildRequires: perl(LWP::UserAgent) -BuildRequires: perl(Locale::gettext) -BuildRequires: perl(Net::DNS) -BuildRequires: zenity -BuildRequires: update-desktop-files -BuildArch: noarch #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 +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.desktop "%{buildroot}%{_datadir}/applications/%{name}.desktop" -%__install -D -m 0644 clamtk.1 "%{buildroot}%{_mandir}/man1/clamtk.1" +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 -%__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 -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/ -# use /usr/lib, not %%{_libdir}: -%__install -d "%{buildroot}%{_prefix}/lib/ClamTk" -%__install -m0644 lib/*.pm "%{buildroot}%{_prefix}/lib/ClamTk/" +# 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" + 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" + rm -rf %{buildroot}%{_datadir}/locale/$l done -%suse_update_desktop_file -r "%{name}" System Security +%suse_update_desktop_file -i -r %{name} System Security -%find_lang "%{name}" "%{?no_lang_C}" - -%clean -%{?buildroot:%__rm -rf "%{buildroot}"} +%find_lang %{name} %{?no_lang_C} %post %desktop_database_post @@ -126,13 +126,14 @@ done %files %defattr(-,root,root) %doc CHANGES DISCLAIMER LICENSE README -%doc %{_datadir}/help/C/%{name}/ +%{_datadir}/help/C/%{name}/ %{_bindir}/clamtk -%{_prefix}/lib/ClamTk +%{perl_vendorlib}/ClamTk %{_datadir}/pixmaps/clamtk.png %{_datadir}/applications/%{name}.desktop -%doc %{_mandir}/man1/clamtk.1%{ext_man} +%{_mandir}/man1/clamtk.1%{ext_man} -%files lang -f "%{name}.lang" +%files lang -f %{name}.lang +%defattr(-,root,root) -%changelog +%changelog \ No newline at end of file