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

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

# 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:           transmission-remote-cli
Version:        1.6.2
Release:        0
Summary:        Console Frontend for the Transmission Torrent Client
# https://github.com/fagga/transmission-remote-cli/archive/v%{version}.tar.gz
Source:         transmission-remote-cli-%{version}.tar.gz
Source1:        transmission-remote-cli.desktop
URL:            https://github.com/fagga/transmission-remote-cli
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
%{py_requires}

%description
Full-screen curses interface for the daemon of the BitTorrent client
Transmission.

%prep
%setup -q

%build

%install
%__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/transmission-remote-cli-bash-completion.sh "%{buildroot}/etc/bash_completion.d/%{name}.sh"

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

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

%files
%defattr(-,root,root)
%doc README.md NEWS COPYING
%{_bindir}/transmission-remote-cli
%doc %{_mandir}/man1/transmission-remote-cli.1*
%{_datadir}/applications/%{name}.desktop
%config /etc/bash_completion.d/%{name}.sh

%changelog