forked from aspiers/opensuse-spotify-installer
-
Notifications
You must be signed in to change notification settings - Fork 6
/
spotify-installer.spec
59 lines (48 loc) · 1.58 KB
/
spotify-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
52
53
54
55
56
57
58
59
#
# spec file for package spotify-installer
#
# Copyright (c) 2012 Adam Spiers
#
Name: spotify-installer
Version: 0.8.8.323.gd143501.250
Release: 2
License: MIT
Summary: Installer for Spotify desktop client
Url: https://github.com/aspiers/opensuse-spotify-installer/
Group: Productivity/Multimedia/Sound/Players
Source0: spotify-client.spec
Source1: install-spotify.sh
Source2: README.md
Requires: sudo
BuildRequires: python-markdown
BuildArch: noarch
Recommends: brp-check-suse
%define specdir /usr/src/packages/SPECS
%description
This is an automatic installer for the Spotify desktop client for
Linux, which circumvents the redistribution restrictions on the client
by:
- downloading the .deb from spotify.com
- installing required dependencies
- building an rpm
- installing the rpm
The process is intended to be as user-friendly as possible.
%prep
%build
markdown_py -o html5 %{SOURCE2} > README.html
%install
install -D -m 644 %{SOURCE0} %{buildroot}%{specdir}/spotify-client.spec
install -D -m 755 %{SOURCE1} %{buildroot}%{_bindir}/install-spotify
install -d %{buildroot}%{_docdir}/%{name}
install -D -m 755 README.html %{buildroot}%{_docdir}/%{name}
%files
%defattr(-,root,root)
%{specdir}/*
%{_bindir}/*
%doc README.html
%changelog
* Sat Jan 05 2013 Adam Spiers <[email protected]> - 0.8.8.323.gd143501.250-2
- update README
- add Requires: sudo
* Sat Jan 05 2013 Adam Spiers <[email protected]> - 0.8.8.323.gd143501.250-1
- first version