File deluge.spec of Package deluge

# spec file for package deluge
# 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

Name:           deluge
Version:        1.3.15
Release:        0
Summary:        BitTorrent Client
License:        SUSE-GPL-3.0-with-openssl-exception
Group:          Productivity/Networking/File-Sharing
# PATCH-FIX-OPENSUSE deluge-suse-geoip-location.patch -- Point to the right GeoIP.dat location.
Patch0:         %{name}-suse-geoip-location.patch
# PATCH-FIX-UPSTREAM deluge-update_7z_binary.patch
Patch1:         %{name}-update_7z_binary.patch
BuildRequires:  fdupes
BuildRequires:  gettext
BuildRequires:  hicolor-icon-theme
BuildRequires:  intltool
BuildRequires:  python-devel
BuildRequires:  python-setuptools
BuildRequires:  update-desktop-files
Requires:       python-Mako
Requires:       python-Twisted >= 8.1
Requires:       python-chardet
Requires:       python-gtk >= 2.12
Requires:       python-libtorrent-rasterbar >= 0.14
Requires:       python-pyOpenSSL
Requires:       python-setuptools
Requires:       python-xdg
Requires:       xdg-utils
Recommends:     %{name}-lang
Recommends:     python-GeoIP
Recommends:     python-notify
Recommends:     python-pygame
Recommends:     python-service_identity
Recommends:     python-setproctitle
BuildArch:      noarch

Deluge is a Free Software, cross-platform BitTorrent client on
Python and Gtk2 with multiple user interfaces in client/server


%setup -q
%patch0 -p1

python2 build

python2 install \
  --root=%{buildroot} --prefix=%{_prefix}

mv -f %{buildroot}%{python_sitelib}/%{name}/i18n/ %{buildroot}%{_datadir}/locale/
ln -s %{_datadir}/locale %{buildroot}%{python_sitelib}/%{name}/i18n

%fdupes %{buildroot}%{python_sitelib}/
%find_lang %{name}




%files lang -f %{name}.lang

openSUSE Build Service is sponsored by