%global debug_package %{nil} %global pkgname spotify Name: pyspotify Version: 2.0.5 Release: 1%{?dist} Summary: A Python Spotify library License: ASL 2.0 URL: https://github.com/mopidy/pyspotify Source0: https://github.com/mopidy/%{name}/archive/v%{version}/%{name}-%{version}.tar.gz BuildRequires: python2-devel BuildRequires: python2-cffi Requires: libspotify %description pyspotify provides a Python interface to Spotify's online music streaming service. With pyspotify you can access music metadata, search in Spotify's library of 20+ million tracks, manage your Spotify playlists, and play music from Spotify. All from your own Python applications. %prep %setup -q %build %install %py2_install # @FIXME py2_install is not installing site-packages/spotify directory mkdir -p %{buildroot}%{python2_sitelib}/%{pkgname}/ cp -ar %{pkgname}/* tests %{buildroot}%{python2_sitelib}/%{pkgname}/ %files %{python2_sitearch}/%{name}-%{version}-*.egg-info/ %{python2_sitelib}/%{pkgname}/ %changelog * Thu Jun 06 2019 jkadlcik - 2.2.2-1 - Initial package