79 lines
2.2 KiB
RPMSpec
79 lines
2.2 KiB
RPMSpec
|
%define spotify_make_ver 20130831git
|
||
|
Name: spotify
|
||
|
Version: @spotifyver@
|
||
|
Release: 1mamba
|
||
|
Summary: Listen to music using Spotify
|
||
|
Group: Graphical Desktop/Applications/Multimedia
|
||
|
Vendor: @vendor@
|
||
|
Distribution: @distribution@
|
||
|
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
|
||
|
URL: https://www.spotify.com/us/download/previews/
|
||
|
## GITSOURCE https://github.com/leamas/spotify-make.git master
|
||
|
Source: https://github.com/leamas/spotify-make.git/master/spotify-make-%{spotify_make_ver}.tar.bz2
|
||
|
Source1: LICENSE
|
||
|
License: Not distributable
|
||
|
## AUTOBUILDREQ-BEGIN
|
||
|
## AUTOBUILDREQ-END
|
||
|
BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
||
|
|
||
|
%description
|
||
|
Listen to music using Spotify.
|
||
|
|
||
|
%debug_package
|
||
|
|
||
|
%prep
|
||
|
%setup -q -n spotify-make-%{spotify_make_ver}
|
||
|
|
||
|
%build
|
||
|
./configure \
|
||
|
--prefix=/opt/spotify \
|
||
|
--mandir=%{_mandir}
|
||
|
|
||
|
make download
|
||
|
|
||
|
%install
|
||
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
||
|
%makeinstall
|
||
|
|
||
|
install -d -m0755 %{buildroot}%{_datadir}
|
||
|
mv %{buildroot}/opt/spotify/share/applications %{buildroot}%{_datadir}
|
||
|
mv %{buildroot}/opt/spotify/share/icons %{buildroot}%{_datadir}
|
||
|
|
||
|
%clean
|
||
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
||
|
|
||
|
%post
|
||
|
if [ $1 -ge 1 ]; then
|
||
|
gtk-update-icon-cache --ignore-theme-index %{_datadir}/icons/hicolor
|
||
|
desktop-file-validate %{_datadir}/applications/spotify.desktop
|
||
|
update-desktop-database %{_datadir}/applications
|
||
|
fi
|
||
|
:
|
||
|
|
||
|
%postun
|
||
|
if [ $1 -eq 0 ]; then
|
||
|
gtk-update-icon-cache --ignore-theme-index %{_datadir}/icons/hicolor
|
||
|
desktop-file-validate %{_datadir}/applications/spotify.desktop
|
||
|
update-desktop-database %{_datadir}/applications
|
||
|
fi
|
||
|
:
|
||
|
|
||
|
%files
|
||
|
%defattr(-,root,root)
|
||
|
%dir /opt/spotify
|
||
|
%dir /opt/spotify/bin
|
||
|
/opt/spotify/bin/spotify
|
||
|
%dir /opt/spotify/lib
|
||
|
%dir /opt/spotify/lib/spotify-client
|
||
|
/opt/spotify/lib/spotify-client
|
||
|
/opt/spotify/lib/spotify-client/*
|
||
|
%{_datadir}/applications/spotify.desktop
|
||
|
%{_datadir}/icons/hicolor/*/apps/spotify-client.png
|
||
|
%dir /opt/spotify/share/spotify-client/
|
||
|
/opt/spotify/share/spotify-client/*
|
||
|
%{_mandir}/man1/spotify.1.gz
|
||
|
|
||
|
%changelog
|
||
|
* Sat Aug 31 2013 Silvan Calarco <silvan.calarco@mambasoft.it> 0.9.1.55.gbdd3b79.203-1mamba
|
||
|
- package created by silvan using the webbuild interface
|