forked from pool/python-pylast
Accepting request 486009 from home:alarrosa:branches:devel:languages:python
New singlespec package to replace python3-pylast in devel:languages:python3 OBS-URL: https://build.opensuse.org/request/show/486009 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pylast?expand=0&rev=1
This commit is contained in:
69
python-pylast.spec
Normal file
69
python-pylast.spec
Normal file
@@ -0,0 +1,69 @@
|
||||
#
|
||||
# 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: fdupes
|
||||
BuildRequires: %{python_module devel}
|
||||
BuildRequires: %{python_module setuptools}
|
||||
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_exec setup.py install -O1 --skip-build --prefix=%{_prefix} --root=%{buildroot}
|
||||
%fdupes -s %{buildroot}
|
||||
|
||||
%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
|
Reference in New Issue
Block a user