forked from paolorotolo/spotify-linux-installer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathspotify-linux-installer.spec
51 lines (43 loc) · 2 KB
/
spotify-linux-installer.spec
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
#
# spec file for package spotify-linux-installer
#
Name: spotify-linux-installer
Summary: Automatically downloads and installs the latest Spotify version on Linux.
Version: 1.0.1
Release: 1
#Requires: binutils
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildArch: noarch
License: MIT
Group: Productivity/Multimedia/Sound/Players
Source0: https://github.com/paolorotolo/spotify-linux-installer/archive/master.zip
URL: https://github.com/paolorotolo/spotify-linux-installer
%description
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.
%prep
%setup -q
%install
mkdir -p %{buildroot}/opt/spotify-linux-installer
cp -a artwork %{buildroot}/opt/spotify-linux-installer
cp -a install-spotify.sh %{buildroot}/opt/spotify-linux-installer
cp -a LICENSE %{buildroot}/opt/spotify-linux-installer
cp -a README.md %{buildroot}/opt/spotify-linux-installer
cp -a spotify.desktop %{buildroot}/opt/spotify-linux-installer
cp -a uninstall-spotify.sh %{buildroot}/opt/spotify-linux-installer
%post
/opt/spotify-linux-installer/install-spotify.sh
%preun
/opt/spotify-linux-installer/uninstall-spotify.sh
%files
%defattr(-,root,root)
%license /opt/spotify-linux-installer/LICENSE
%doc /opt/spotify-linux-installer/README.md
/opt/spotify-linux-installer/artwork
/opt/spotify-linux-installer/install-spotify.sh
/opt/spotify-linux-installer/LICENSE
/opt/spotify-linux-installer/README.md
/opt/spotify-linux-installer/spotify.desktop
/opt/spotify-linux-installer/uninstall-spotify.sh
%changelog
* Sun 09 Jul 2017 Jonathan Landrum <me@jonlandrum.com> - 1.0.1
- Initial version with RPM support