summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2023-05-17 02:49:56 +0000
committerCoprDistGit <infra@openeuler.org>2023-05-17 02:49:56 +0000
commitbdfff6338e5218e67e2c22f7aa35816c115c30b5 (patch)
tree9c9a00e10ca0c54e61c891bfeaadee9144c2543f
parent0b90bed8cdfee1ba7623b07facbce0c12bb6938f (diff)
automatic import of python-pyspotify
-rw-r--r--.gitignore1
-rw-r--r--python-pyspotify.spec132
-rw-r--r--sources1
3 files changed, 134 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index e69de29..e87a6c9 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/pyspotify-2.1.4.tar.gz
diff --git a/python-pyspotify.spec b/python-pyspotify.spec
new file mode 100644
index 0000000..e1cdff2
--- /dev/null
+++ b/python-pyspotify.spec
@@ -0,0 +1,132 @@
+%global _empty_manifest_terminate_build 0
+Name: python-pyspotify
+Version: 2.1.4
+Release: 1
+Summary: Python wrapper for libspotify
+License: Apache License, Version 2.0
+URL: https://pyspotify.readthedocs.io/
+Source0: https://mirrors.nju.edu.cn/pypi/web/packages/fb/7b/091752856beb58a78affad51b2ea65de7b053fdf2dd92904438f05a871ec/pyspotify-2.1.4.tar.gz
+BuildArch: noarch
+
+
+%description
+pyspotify is a Python wrapper around the libspotify C library, and thus depends
+on libspotify for everything it does.
+In May 2015, libspotify was deprecated by Spotify and active maintenance
+stopped. At this point, libspotify had been the main way to integrate with
+Spotify for six years, and was part of numerous open source projects and
+commercial applications, including many receivers and even cars. It remained
+the only API for playback outside Android and iOS.
+In February 2016, server side changes to the Spotify API caused the search
+functionality to stop working, without Spotify ever acknowledging it. Users of
+pyspotify could work around this by using the Spotify web API for searches and
+pyspotify for playback.
+In April 2022, `Spotify announced
+<https://developer.spotify.com/community/news/2022/04/12/libspotify-sunset/>`_
+that they would sunset the libspotify API one month later.
+In May 2022, new libspotify connections to Spotify started failing. With
+libspotify dead, pyspotify was dead too.
+After two years in development from May 2013 to May 2015, and seven years of
+loyal service this project has reached its end.
+**There will be no further updates to pyspotify.**
+Hopefully, the pyspotify source code can still serve as a complete example of
+how to successfully wrap a large C library in Python using CFFI.
+
+%package -n python3-pyspotify
+Summary: Python wrapper for libspotify
+Provides: python-pyspotify
+BuildRequires: python3-devel
+BuildRequires: python3-setuptools
+BuildRequires: python3-pip
+%description -n python3-pyspotify
+pyspotify is a Python wrapper around the libspotify C library, and thus depends
+on libspotify for everything it does.
+In May 2015, libspotify was deprecated by Spotify and active maintenance
+stopped. At this point, libspotify had been the main way to integrate with
+Spotify for six years, and was part of numerous open source projects and
+commercial applications, including many receivers and even cars. It remained
+the only API for playback outside Android and iOS.
+In February 2016, server side changes to the Spotify API caused the search
+functionality to stop working, without Spotify ever acknowledging it. Users of
+pyspotify could work around this by using the Spotify web API for searches and
+pyspotify for playback.
+In April 2022, `Spotify announced
+<https://developer.spotify.com/community/news/2022/04/12/libspotify-sunset/>`_
+that they would sunset the libspotify API one month later.
+In May 2022, new libspotify connections to Spotify started failing. With
+libspotify dead, pyspotify was dead too.
+After two years in development from May 2013 to May 2015, and seven years of
+loyal service this project has reached its end.
+**There will be no further updates to pyspotify.**
+Hopefully, the pyspotify source code can still serve as a complete example of
+how to successfully wrap a large C library in Python using CFFI.
+
+%package help
+Summary: Development documents and examples for pyspotify
+Provides: python3-pyspotify-doc
+%description help
+pyspotify is a Python wrapper around the libspotify C library, and thus depends
+on libspotify for everything it does.
+In May 2015, libspotify was deprecated by Spotify and active maintenance
+stopped. At this point, libspotify had been the main way to integrate with
+Spotify for six years, and was part of numerous open source projects and
+commercial applications, including many receivers and even cars. It remained
+the only API for playback outside Android and iOS.
+In February 2016, server side changes to the Spotify API caused the search
+functionality to stop working, without Spotify ever acknowledging it. Users of
+pyspotify could work around this by using the Spotify web API for searches and
+pyspotify for playback.
+In April 2022, `Spotify announced
+<https://developer.spotify.com/community/news/2022/04/12/libspotify-sunset/>`_
+that they would sunset the libspotify API one month later.
+In May 2022, new libspotify connections to Spotify started failing. With
+libspotify dead, pyspotify was dead too.
+After two years in development from May 2013 to May 2015, and seven years of
+loyal service this project has reached its end.
+**There will be no further updates to pyspotify.**
+Hopefully, the pyspotify source code can still serve as a complete example of
+how to successfully wrap a large C library in Python using CFFI.
+
+%prep
+%autosetup -n pyspotify-2.1.4
+
+%build
+%py3_build
+
+%install
+%py3_install
+install -d -m755 %{buildroot}/%{_pkgdocdir}
+if [ -d doc ]; then cp -arf doc %{buildroot}/%{_pkgdocdir}; fi
+if [ -d docs ]; then cp -arf docs %{buildroot}/%{_pkgdocdir}; fi
+if [ -d example ]; then cp -arf example %{buildroot}/%{_pkgdocdir}; fi
+if [ -d examples ]; then cp -arf examples %{buildroot}/%{_pkgdocdir}; fi
+pushd %{buildroot}
+if [ -d usr/lib ]; then
+ find usr/lib -type f -printf "/%h/%f\n" >> filelist.lst
+fi
+if [ -d usr/lib64 ]; then
+ find usr/lib64 -type f -printf "/%h/%f\n" >> filelist.lst
+fi
+if [ -d usr/bin ]; then
+ find usr/bin -type f -printf "/%h/%f\n" >> filelist.lst
+fi
+if [ -d usr/sbin ]; then
+ find usr/sbin -type f -printf "/%h/%f\n" >> filelist.lst
+fi
+touch doclist.lst
+if [ -d usr/share/man ]; then
+ find usr/share/man -type f -printf "/%h/%f.gz\n" >> doclist.lst
+fi
+popd
+mv %{buildroot}/filelist.lst .
+mv %{buildroot}/doclist.lst .
+
+%files -n python3-pyspotify -f filelist.lst
+%dir %{python3_sitelib}/*
+
+%files help -f doclist.lst
+%{_docdir}/*
+
+%changelog
+* Wed May 17 2023 Python_Bot <Python_Bot@openeuler.org> - 2.1.4-1
+- Package Spec generated
diff --git a/sources b/sources
new file mode 100644
index 0000000..600eb12
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+ad6df2d23d98c6ce8c2d09c2f1077925 pyspotify-2.1.4.tar.gz