File epour.spec of Package epour
#
# spec file for package epour
#
# 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: epour
Version: @SERVICE@
Release: 0
Summary: BitTorrent client
License: GPL-3.0
Group: Productivity/Networking/File-Sharing
Url: https://phab.enlightenment.org/w/projects/epour/
Source0: %{name}-%{version}.tar.xz
BuildRequires: edje
BuildRequires: hicolor-icon-theme
BuildRequires: intltool
BuildRequires: python3-devel
BuildRequires: python3-distutils-extra
Requires: python3-dbus-python
Requires: python3-efl
Requires: python3-libtorrent-rasterbar
Requires: python3-xdg
Recommends: %{name}-lang = %{version}
BuildArch: noarch
%if 0%{?suse_version}
BuildRequires: fdupes
BuildRequires: update-desktop-files
%endif
%description
EFL and libtorrent based BitTorrent client.
%lang_package
%prep
%setup -q
%build
python3 setup.py build
%install
python3 setup.py install --root %{buildroot}
rm -rf "%{buildroot}/%{_datadir}/doc"
%find_lang %{name}
%if 0%{?suse_version}
%suse_update_desktop_file %{name}
%fdupes %{buildroot}/%{_datadir}
%endif
%if 0%{?suse_version} < 1320
%post
%icon_theme_cache_post
%desktop_database_post
%postun
%icon_theme_cache_postun
%desktop_database_postun
%endif
%{?suse_version:%files}
%{!?suse_version:%files -f %{name}.lang}
%doc README AUTHORS TODO
%{_bindir}/%{name}
%{_datadir}/%{name}/
%{python3_sitelib}/%{name}*
%{_datadir}/applications/%{name}.desktop
%{_datadir}/icons/hicolor/*/*/*.??g
%{?suse_version:%files lang -f %{name}.lang}
%changelog