commit b7419e51f0f4f5f3b8048e394607d4dd6b8a4196
Author: Tobias Girstmair <t-rpmfusion(a)girst.at>
Date: Thu Dec 12 21:13:54 2019 +0100
Change upstream to Mopidy's Spotify SDK archive
Remove unsupported arches armv5 and armv6
.gitignore | 3 ++
dead.package | 1 -
libspotify.spec | 105 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++
sources | 3 ++
4 files changed, 111 insertions(+), 1 deletion(-)
---
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..9a7a0d1
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,3 @@
+/libspotify-12.1.51-Linux-armv7-release.tar.gz
+/libspotify-12.1.51-Linux-i686-release.tar.gz
+/libspotify-12.1.51-Linux-x86_64-release.tar.gz
diff --git a/libspotify.spec b/libspotify.spec
new file mode 100644
index 0000000..03b1957
--- /dev/null
+++ b/libspotify.spec
@@ -0,0 +1,105 @@
+Name: libspotify
+Version: 12.1.51
+Release: 6%{?dist}
+Summary: Official Spotify API
+License: Redistributable, no modification permitted
+URL:
https://mopidy.github.io/libspotify-archive/
+Source0:
https://mopidy.github.io/libspotify-archive/libspotify-%{version}-Linux-i...
+Source1:
https://mopidy.github.io/libspotify-archive/libspotify-%{version}-Linux-x...
+Source4:
https://mopidy.github.io/libspotify-archive/libspotify-%{version}-Linux-a...
+ExclusiveArch: i686 x86_64 armv7hl
+
+%description
+libspotify is the official Spotify API. Applications can use this API to play
+music using a user's Spotify account, provided that the user has a Spotify
+Premium Account.
+
+%package devel
+Summary: Development files for official Spotify API
+Requires: %{name}%{?_isa} = %{version}-%{release}
+
+%description devel
+This contains the files needed to develop using libspotify
+
+%prep
+%ifarch i686
+%setup -q -b 0 -n %{name}-%{version}-Linux-i686-release
+%endif
+%ifarch x86_64
+%setup -q -b 1 -n %{name}-%{version}-Linux-x86_64-release
+sed -i 's,prefix)/lib,prefix)/lib64,g' Makefile
+%endif
+%ifarch armv7hl
+%setup -q -b 4 -n %{name}-%{version}-Linux-armv7-release
+%endif
+%ifnarch i686 x86_64 armv7hl
+echo "This cpu architecture is not supported"
+exit 1
+%endif
+cat Makefile | grep -v ldconfig > Makefile.new
+rm -f Makefile
+mv Makefile.new Makefile
+
+%install
+%ifnarch i686 x86_64 armv7hl
+echo "This cpu architecture is not supported"
+exit 1
+%endif
+make install prefix=%{buildroot}/usr
+ls -l ./
+cd %{buildroot}%{_libdir}/pkgconfig
+cat libspotify.pc | grep -v "^prefix=" > libspotify.pc.new
+echo "prefix=/usr" > libspotify.pc
+cat libspotify.pc.new >> libspotify.pc
+rm -f libspotify.pc.new
+%ifarch x86_64
+sed -i s/"\/lib"/"\/lib64"/g libspotify.pc
+%endif
+chmod 644 %{buildroot}%{_includedir}/libspotify/*
+
+%build
+
+%files
+%license LICENSE licenses.xhtml
+%doc README
+%{_libdir}/libspotify.so.12
+%{_libdir}/libspotify.so.12.1.51
+
+%files devel
+%license LICENSE licenses.xhtml
+%doc README
+%{_includedir}/*
+%{_libdir}/libspotify.so
+%{_libdir}/pkgconfig/*
+
+
+%changelog
+* Sun Dec 08 2019 Tobias Girstmair <t-rpmfusion(a)girst.at> - 12.1.51-6
+- Change upstream to Mopidy's Spotify SDK archive
+- Remove unsupported arches armv5 and armv6
+
+* Sun Mar 26 2017 RPM Fusion Release Engineering <kwizart(a)rpmfusion.org> -
12.1.51-5
+- Rebuilt for
https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
+
+* Sun Aug 31 2014 Sérgio Basto <sergio(a)serjux.com> - 12.1.51-4
+- Rebuilt for
https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
+
+* Tue Mar 12 2013 Nicolas Chauvet <kwizart(a)gmail.com> - 12.1.51-3
+-
https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
+
+* Wed Jul 11 2012 Jonathan Dieter <jdieter(a)gmail.com> - 12.1.51-2
+- Add in armv5, armv6 and armv7
+
+* Thu Jun 28 2012 Jonathan Dieter <jdieter(a)gmail.com> - 12.1.51-1
+- Update to 12.1.51
+
+* Mon Mar 26 2012 Jonathan Dieter <jdieter(a)gmail.com> - 10.1.16-3
+- Change license
+- Add empty build section to make rpmlint happy
+
+* Mon Jan 23 2012 Jonathan Dieter <jdieter(a)gmail.com> - 10.1.16-2
+- Add documentation to both main and devel package
+- Only prep tarball that we're going to use when building
+
+* Wed Jan 4 2012 Jonathan Dieter <jdieter(a)gmail.com> - 10.1.16-1
+- Initial release
diff --git a/sources b/sources
new file mode 100644
index 0000000..6f3c24e
--- /dev/null
+++ b/sources
@@ -0,0 +1,3 @@
+SHA512 (libspotify-12.1.51-Linux-armv7-release.tar.gz) =
384255babf70778eaeb7f25c8a8c4831fce5f392ff8cf165ee0f589c321017bbbf8ac48e6ccf6bc474b21ec72c9473508507d8f4c2ab3fd988e404e9c172e762
+SHA512 (libspotify-12.1.51-Linux-i686-release.tar.gz) =
c16d53d8ec57913eb5b47ad3c2d01a804bd494a681c23a770f436b712cdadf89baa0c4c7db13ef96bf7b1e14599afbcb1323556ec24669f9020fc824d9ecd59e
+SHA512 (libspotify-12.1.51-Linux-x86_64-release.tar.gz) =
3c636e1739a75910a0da9270c3d2203b52fe1c2d69615159a09bcc8b57c8909f1d005aa22dc5cef529489c6f3a9ee5bde4d6a922be536f8017185c25432c3666