%global debug_package %{nil}
%global python_package_name mopidy_spotify

Name:       mopidy-spotify
Version:    3.1.0
Release:    1%{?dist}
Summary:    Mopidy extension for playing music from Spotify

License:    ASL 2.0
URL:        https://github.com/mopidy/mopidy-spotify
Source0:    https://github.com/mopidy/%{name}/archive/v%{version}/%{name}-%{version}.tar.gz

BuildRequires: python2-devel
#Requires:

%description
# @TODO We need a better description, not to copy summary
Mopidy extension for playing music from Spotify.


%prep
%setup -q


%build


%install
%py2_install

# @FIXME py2_install is not installing site-packages/mopidy-spotify directory
mkdir -p %{buildroot}%{python2_sitelib}/%{python_package_name}/
cp -ar %{python_package_name}/* tests %{buildroot}%{python2_sitelib}/%{python_package_name}/


%files
%{python2_sitelib}/Mopidy_Spotify-%{version}-*
%{python2_sitelib}/%{python_package_name}/


%changelog
* Thu Jun 06 2019 jkadlcik <jkadlcik@redhat.com> - 2.2.2-1
- Initial package