# # spec file for package spotify # # Copyright (c) 2012 Marguerite Su, Adam Spiers # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed # upon. The license for this file, and modifications and additions to the # file, is the same license as for the pristine package itself (unless the # license for the pristine package is not an Open Source License, in which # case the license is the MIT License). An "Open Source License" is a # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. Name: spotify-client Version: VERTOKEN Release: RELTOKEN License: Commercial Summary: Desktop client for Spotify streaming music service Url: http://www.spotify.com/download/linux Group: Productivity/Multimedia/Sound/Players %ifarch x86_64 Source0: DEB_AMD64 %else Source0: DEB_I386 %endif NoSource: 0 %if 0%{?suse_version} Requires: mozilla-nss Requires: mozilla-nspr Requires: libopenssl1_0_0 Requires: libpng12-0 Recommends: libmp3lame0 Recommends: ffmpeg Recommends: zenity %endif # not currently tested on Fedora or Mandriva, but leaving # these here in case anyone wants to step up and do it :) %if 0%{?fedora_version} Requires: nss Requires: nspr Requires: openssl >= 1.0.0 %endif %if 0%{?mandriva_version} Requires: libnss3 Requires: libnspr4 Requires: libopenssl1.0.0 Conflicts: libopenssl0.9.8 %endif BuildRoot: %{_tmppath}/%{name}-%{version}-build %description Spotify is a "Freemium" proprietary, DRM-restricted digital music service that gives you access to millions of songs. It includes the following features: - Custom playlists - Last.fm integration - Customized radio dynamically generated to the user's tastes - Social media integration with Facebook and Twitter - 3rd-party applications integrated into the client %prep %setup -T -c %{name}-%{version} # unpack deb ar -x %{SOURCE0} # unpack data tar -xf data.tar.gz # remove used files rm {control.tar.gz,data.tar.gz} debian-binary # rewrite or remove some requires %define _use_internal_dependency_generator 0 %define __find_requires %_builddir/%{name}-%{version}/find-requires.sh cat >%__find_requires <<'EOF' #!/bin/sh /usr/lib/rpm/find-requires | \ sed -e 's/lib\(nss3\|nssutil3\|smime3\|plc4\|nspr4\)\.so\.[01]d/lib\1.so/ /lib\(curl\|crypto\|ssl\|gcrypt\)\.so/d' EOF chmod +x %__find_requires %build # no need to build %install mv usr %{buildroot} %define spotifydir /usr/share/spotify #%define spotifylibdir %spotifydir # Copy spotify.desktop file and icon to builddir so the suse_update_desktop_file macro finds them cp %{buildroot}%{spotifydir}/spotify.desktop %{_builddir}/spotify.desktop cp %{buildroot}%{spotifydir}/icons/spotify-linux-512.png %{_builddir}/spotify-client.png # http://en.opensuse.org/openSUSE:Packaging_Conventions_RPM_Macros#.25suse_update_desktop_file # http://en.opensuse.org/openSUSE:Packaging_desktop_menu_categories#Multimedia %suse_update_desktop_file -i spotify mkdir -p %{buildroot}%{_docdir}/%{name} mv %{buildroot}/usr/share/doc/spotify-client/* %{buildroot}%{_docdir}/%{name}/ cat >%{buildroot}%{_docdir}/%{name}/README < - add README * Sat Jan 05 2013 Adam Spiers - update to 0.8.8 (moved to /opt) - rename to spotify-client for consistency with original Debian package - use provided register.sh and unregister.sh - remove need to conflict with libopenssl0_9_8 - fix automatically generated dependencies - fix XDG categories - move dedicated library directory to /opt/spotify/spotify-client/lib - remove spotify-linux-512x512.png since redistribution probably violates Spotify copyright - fix SPOTIFY_CLEAN_CACHE test - fix passing of multiple arguments to spotify binary * Mon Aug 20 2012 Marguerite Su - 0.8.4.103.g9cb117b.260 - initial version with Spotify App support. - use libopenssl1_0_0 instead of libopenssl0_9_8 to fix a crash and other linkings ready. - use wrapper to clear cache manually