forked from pool/python-pylast
- Use %python_exec to call %fdupes separately on each python_sitelib directory. Otherwise a symlink from the python3 sitelib directory was created to the python2 one, breaking the python3 package when the python2 package wasn't installed. OBS-URL: https://build.opensuse.org/request/show/493491 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pylast?expand=0&rev=3
70 lines
2.2 KiB
RPMSpec
70 lines
2.2 KiB
RPMSpec
#
|
|
# spec file for package python-pylast
|
|
#
|
|
# 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/
|
|
#
|
|
|
|
|
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
|
Name: python-pylast
|
|
Version: 1.8.0
|
|
Release: 0
|
|
Summary: A python interface to Last.fm
|
|
License: Apache-2.0
|
|
Group: Development/Languages/Python
|
|
Url: https://github.com/pylast/pylast
|
|
Source0: https://files.pythonhosted.org/packages/source/p/pylast/pylast-%{version}.tar.gz
|
|
BuildRequires: %{python_module devel}
|
|
BuildRequires: %{python_module setuptools}
|
|
BuildRequires: fdupes
|
|
BuildRequires: python-rpm-macros
|
|
Requires: python-six
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
BuildArch: noarch
|
|
|
|
%python_subpackages
|
|
|
|
%description
|
|
A Python interface to Last.fm and other API-compatible websites such as Libre.fm
|
|
|
|
Features:
|
|
- Simple public interface.
|
|
- Access to all the data exposed by the Last.fm webservices.
|
|
- Scrobbling support.
|
|
- Full object-oriented design.
|
|
- Proxy support.
|
|
- Internal caching support for some webservices calls (disabled by default).
|
|
- No extra dependencies but python itself.
|
|
- Support for other API-compatible networks like Libre.fm
|
|
- Python3-friendly (Starting from 0.5).
|
|
|
|
%prep
|
|
%setup -q -n pylast-%{version}
|
|
|
|
%build
|
|
%python_build
|
|
|
|
%install
|
|
%python_install
|
|
%python_exec %fdupes -s %{buildroot}/%{python_sitelib}
|
|
|
|
%files %{python_files}
|
|
%defattr(-,root,root)
|
|
%doc COPYING
|
|
%dir %{python_sitelib}/pylast
|
|
%{python_sitelib}/pylast/*
|
|
%{python_sitelib}/pylast-%{version}-py%{py_ver}.egg-info
|
|
|
|
%changelog
|