spotify-linux-installer.spec 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. #
  2. # spec file for package spotify-linux-installer
  3. #
  4. Name: spotify-linux-installer
  5. Summary: Automatically downloads and installs the latest Spotify version on Linux.
  6. Version: 1.0.1
  7. Release: 1
  8. #Requires: binutils
  9. BuildRoot: %{_tmppath}/%{name}-%{version}-build
  10. BuildArch: noarch
  11. License: MIT
  12. Group: Productivity/Multimedia/Sound/Players
  13. Source0: https://github.com/paolorotolo/spotify-linux-installer/archive/master.zip
  14. URL: https://github.com/paolorotolo/spotify-linux-installer
  15. %description
  16. If installing Spotify is very easy on Debian based distros, it can be tricky on other Linux systems like OpenSuse. In fact, projects like opensuse-spotify-installer or spotify-make still uses a very old and now unstable version of Spotify that requires additional dependencies to work. Using this script, you'll install latest Spotify available (1.0.*). The script has been tested on a fresh OpenSuse installation and it doesn't require additional dependancies to make Spotify work.
  17. %prep
  18. %setup -q
  19. %install
  20. mkdir -p %{buildroot}/opt/spotify-linux-installer
  21. cp -a artwork %{buildroot}/opt/spotify-linux-installer
  22. cp -a install-spotify.sh %{buildroot}/opt/spotify-linux-installer
  23. cp -a LICENSE %{buildroot}/opt/spotify-linux-installer
  24. cp -a README.md %{buildroot}/opt/spotify-linux-installer
  25. cp -a spotify.desktop %{buildroot}/opt/spotify-linux-installer
  26. cp -a uninstall-spotify.sh %{buildroot}/opt/spotify-linux-installer
  27. %post
  28. /opt/spotify-linux-installer/install-spotify.sh
  29. %preun
  30. /opt/spotify-linux-installer/uninstall-spotify.sh
  31. %files
  32. %defattr(-,root,root)
  33. %license /opt/spotify-linux-installer/LICENSE
  34. %doc /opt/spotify-linux-installer/README.md
  35. /opt/spotify-linux-installer/artwork
  36. /opt/spotify-linux-installer/install-spotify.sh
  37. /opt/spotify-linux-installer/LICENSE
  38. /opt/spotify-linux-installer/README.md
  39. /opt/spotify-linux-installer/spotify.desktop
  40. /opt/spotify-linux-installer/uninstall-spotify.sh
  41. %changelog
  42. * Sun 09 Jul 2017 Jonathan Landrum <me@jonlandrum.com> - 1.0.1
  43. - Initial version with RPM support