File python3-pylast.spec of Package python3-pylast

#
# spec file for package python3-pylast
#
# 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/
#


%define         modname pylast

Name:           python3-%{modname}
Version:        1.0.0
Release:        0
Summary:        A python3 interface to Last.fm
License:        Apache-2.0
Group:          Development/Languages/Python
Url:            https://github.com/pylast/pylast
Source0:        pylast-1.0.0.tar.gz
#Source0 via https://codeload.github.com/pylast/pylast/tar.gz/1.0.0
BuildRequires:  fdupes
BuildRequires:  python3-devel
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildArch:      noarch

%description
A python3 interface to Last.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 %{modname}-%{version}

%build
python3 setup.py build

%install
python3 setup.py install -O1 --skip-build --prefix=%{_prefix} --root=%{buildroot}
%fdupes -s %{buildroot}

%files
%defattr(-,root,root)
%doc COPYING README.md
%{python3_sitelib}/__pycache__
%{python3_sitelib}/%{modname}.*
%{python3_sitelib}/%{modname}-%{version}-py%{py3_ver}.egg-info

%changelog
openSUSE Build Service is sponsored by