SHA256
1
0
forked from pool/epour
epour/epour.spec

68 lines
1.8 KiB
RPMSpec
Raw Normal View History

#
# spec file for package epour
#
# Copyright (c) 2014 SUSE LINUX Products 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: 0.6.0
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: python-efl
BuildRequires: efl-devel
BuildRequires: dbus-1-python-devel
BuildRequires: python-xdg
BuildRequires: python-distutils-extra
BuildRequires: intltool
BuildRequires: libtorrent-rasterbar-devel >= 0.16.0
buildroot: %{_tmppath}/%{name}-%{version}-build
%if 0%{?suse_version}
BuildRequires: fdupes
BuildRequires: update-desktop-files
%endif
%description
EFL and libtorrent based BitTorrent client.
%prep
%setup -q
%build
python setup.py build
%install
python setup.py install --root "%{buildroot}"
%if 0%{?suse_version}
%fdupes %{buildroot}/%{_datadir}
%suse_update_desktop_file epour
mv %{_datadir}/icons/ %{_datadir}/pixmaps/
%endif
rm -rf "%{buildroot}/%{_datadir}/doc"
%files
%defattr(-,root,root,-)
%doc README AUTHORS TODO
%{_bindir}/epour
%{python_sitelib}/epour*
%{_datadir}/icons/*
%{_datadir}/applications/epour.desktop
%changelog