commit b15b2a5a51f942eb91829941a57c14535ca7a3cc
Author: Tobias Girstmair <t-rpmfusion(a)girst.at>
Date: Tue Dec 24 12:44:29 2019 +0100
Initial release
.gitignore | 1 +
python-pyspotify.spec | 83 +++++++++++++++++++++++++++++++++++++++++++++++++++
sources | 1 +
3 files changed, 85 insertions(+)
---
diff --git a/.gitignore b/.gitignore
index e69de29..408e25e 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/pyspotify-2.1.2.tar.gz
diff --git a/python-pyspotify.spec b/python-pyspotify.spec
new file mode 100644
index 0000000..605ca85
--- /dev/null
+++ b/python-pyspotify.spec
@@ -0,0 +1,83 @@
+%global srcname pyspotify
+
+Name: python-%{srcname}
+Version: 2.1.2
+Release: 1%{?dist}
+Summary: Python bindings for libspotify
+
+License: ASL 2.0
+URL:
https://pyspotify.mopidy.com/
+Source0: %{pypi_source pyspotify}
+
+ExclusiveArch: i686 x86_64 armv7hl
+
+%global _description %{expand:
+pyspotify provides a Python interface to Spotify's online music streaming
+service.}
+
+%description %_description
+
+%package -n python3-%{srcname}
+Summary: %{summary}
+BuildRequires: gcc
+BuildRequires: python3-devel
+BuildRequires: libspotify-devel
+BuildRequires: python3-cffi
+BuildRequires: python3-invoke
+BuildRequires: python3-setuptools
+Requires: python3-cffi
+%{?python_provide:%python_provide python3-%{srcname}}
+
+%description -n python3-%{srcname} %_description
+
+%package doc
+BuildRequires: python3-mock
+BuildRequires: python3-sphinx
+Summary: Documentation for pyspotify
+BuildArch: noarch
+
+%description doc
+Documentation for pyspotify, the Python bindings for libspotify.
+
+
+%prep
+%autosetup -n %{srcname}-%{version}
+rm spotify/api.processed.h
+# overwriting upstream's manifest as it includes a lot of files we do not want,
+# and we need some additional excludes as well
+cat > MANIFEST.in <<-'EOF'
+ exclude spotify/api.h
+ exclude spotify/api.processed.h
+ exclude spotify/_spotify_build.py
+EOF
+
+%build
+# regenerate api.processed.h before attempting to build the module (note: this
+# prints errors, even though everything worked fine)
+invoke3 preprocess-header
+%py3_build
+
+cd docs
+make SPHINXBUILD=sphinx-build-3 html
+rm _build/html/.buildinfo
+
+%install
+%py3_install
+
+%check
+%{__python3} setup.py test
+
+%files -n python3-%{srcname}
+%license LICENSE
+%doc README.rst
+%{python3_sitearch}/%{srcname}-*.egg-info/
+%{python3_sitearch}/spotify/
+
+%files doc
+%doc docs/_build/html
+
+
+%changelog
+
+* Sun Dec 22 2019 Tobias Girstmair <t-rpmfusion(a)girst.at> - 2.1.2-1
+- Initial release
diff --git a/sources b/sources
index e69de29..a7199e4 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+SHA512 (pyspotify-2.1.2.tar.gz) =
7307bcd61ba1f234cd8f5027f1a1bd56d88d8dacea9f566dca5e9eae0fd8c77818cfc7982adbd596f33908fb72101ce7f002a99a53f150f73eac5620bf878302