File thunar-sendto-clamtk.spec of Package thunar-sendto-clamtk

#
# spec file for package thunar-sendto-clamtk
#
# Copyright (c) 2017 SUSE LINUX 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/
#


Name:           thunar-sendto-clamtk
Version:        0.06
Release:        0
Summary:        Adds a right-click, context menu to scan files or folders in Thunar
License:        GPL-1.0+
Group:          Productivity/File utilities
Url:            https://dave-theunsub.github.io/clamtk/
Source:         https://bitbucket.org/davem_/thunar-sendto-clamtk/downloads/thunar-sendto-clamtk-%{version}.tar.xz
Source1:        https://bitbucket.org/davem_/thunar-sendto-clamtk/downloads/thunar-sendto-clamtk-%{version}.tar.xz.asc
Source2:        %{name}.keyring
BuildRequires:  gzip
Requires:       clamtk >= 5.00
Requires:       thunar
BuildArch:      noarch

%description
All this plugin does is copy a desktop file to Thunar's send-to
directory.  If this seems redundant, that's because it is:
this plugin depends on clamtk, which already has this directory
file. So, it stands to reason we should be able to just find that
file and copy it, rather than having our own copy.

%prep
%setup -q

%build
gunzip thunar-sendto-clamtk.1.gz

%install
install -Dm 644 thunar-sendto-clamtk.desktop %{buildroot}%{_usr}/share/Thunar/sendto/thunar-sendto-clamtk.desktop
install -Dm 644 thunar-sendto-clamtk.1 %{buildroot}%{_mandir}/man1/thunar-sendto-clamtk.1

%files
%doc CHANGES DISCLAIMER README
%license LICENSE
%dir %{_usr}/share/Thunar/
%dir %{_usr}/share/Thunar/sendto/
%{_usr}/share/Thunar/sendto/thunar-sendto-clamtk.desktop
%{_mandir}/man1/thunar-sendto-clamtk.1%{?ext_man}

%changelog

openSUSE Build Service is sponsored by