File transmission-remote-cli.spec of Package transmission-remote-cli

# vim: set sw=4 ts=4 et nu:

# Copyright (c) 2012 Pascal Bleser <>
# 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

Name:           transmission-remote-cli
Version:        1.6.2
Release:        0
Summary:        Console Frontend for the Transmission Torrent Client
Source:         transmission-remote-cli-%{version}.tar.gz
Source1:        transmission-remote-cli.desktop
Group:          Productivity/Networking/Other
License:        GPL-3.0+
BuildRoot:      %{_tmppath}/build-%{name}-%{version}
BuildRequires:  update-desktop-files
BuildArch:      noarch
Requires:       python-curses
# pbleser: not actually required for build, just to make the build fail if it isn't
BuildRequires:  python-curses
BuildRequires:  python-adns
BuildRequires:  python-GeoIP
Recommends:     transmission >= 1.90
Recommends:     python-adns
Recommends:     python-GeoIP

Full-screen curses interface for the daemon of the BitTorrent client

%setup -q


%__install -D -m0755 transmission-remote-cli "%{buildroot}%{_bindir}/transmission-remote-cli"
%__install -D -m0644 transmission-remote-cli.1 "%{buildroot}%{_mandir}/man1/transmission-remote-cli.1"

%__install -D -m0644 completion/bash/ "%{buildroot}/etc/bash_completion.d/%{name}.sh"

%__install -D -m0644 "%{SOURCE1}" "%{buildroot}%{_datadir}/applications/%{name}.desktop"
%suse_update_desktop_file -r "%{name}" Network FileTransfer

%{?buildroot:%__rm -rf "%{buildroot}"}

%doc %{_mandir}/man1/transmission-remote-cli.1*
%config /etc/bash_completion.d/%{name}.sh