2013-09-01 00:56:18 +02:00
|
|
|
Name: spotify
|
2014-07-24 13:21:02 +02:00
|
|
|
Version: @SRPMVERSION@
|
|
|
|
Release: @SRPMRELEASE@
|
2013-09-01 00:56:18 +02:00
|
|
|
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
|
2015-08-26 15:44:36 +02:00
|
|
|
#Source: https://github.com/leamas/spotify-make/tarball/master/spotify-make-%{version}.tar.gz
|
2013-09-01 00:56:18 +02:00
|
|
|
Source1: LICENSE
|
|
|
|
License: Not distributable
|
2015-08-26 15:44:36 +02:00
|
|
|
BuildRequires: git
|
2015-04-30 19:11:29 +02:00
|
|
|
Requires: libopenssl100
|
|
|
|
Requires: zenity
|
2013-09-01 00:56:18 +02:00
|
|
|
## AUTOBUILDREQ-BEGIN
|
|
|
|
## AUTOBUILDREQ-END
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
|
|
|
|
|
|
|
%description
|
|
|
|
Listen to music using Spotify.
|
|
|
|
|
|
|
|
%prep
|
2015-08-26 15:44:36 +02:00
|
|
|
%setup -q -c -T
|
|
|
|
git clone --depth=1 https://github.com/leamas/spotify-make.git
|
|
|
|
mv spotify-make/* .
|
2013-09-01 00:56:18 +02:00
|
|
|
|
|
|
|
%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}
|
2015-01-29 11:33:58 +01:00
|
|
|
mv %{buildroot}/opt/spotify/share/appdata %{buildroot}%{_datadir}
|
2013-09-01 00:56:18 +02:00
|
|
|
|
2013-11-03 16:31:48 +01:00
|
|
|
install -d -m0755 %{buildroot}%{_bindir}
|
|
|
|
ln -s /opt/spotify/bin/spotify %{buildroot}%{_bindir}/spotify
|
|
|
|
|
2015-04-30 19:11:29 +02:00
|
|
|
ln -sf /usr/lib64/libcrypto.so.1.0.0 %{buildroot}/opt/spotify/lib/spotify-client/libcrypto.so.1.0.0
|
|
|
|
ln -sf /usr/lib64/libssl.so.1.0.0 %{buildroot}/opt/spotify/lib/spotify-client/libssl.so.1.0.0
|
|
|
|
|
2013-09-01 00:56:18 +02:00
|
|
|
%clean
|
|
|
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
2016-02-12 11:01:35 +01:00
|
|
|
rm -rf %{_builddir}/%{name}-*
|
|
|
|
:
|
2013-09-01 00:56:18 +02:00
|
|
|
|
2013-11-03 16:31:48 +01:00
|
|
|
%pre
|
|
|
|
if [ $1 -ge 1 ]; then
|
|
|
|
rm -f /opt/spotify/share/spotify-client/Data/locales
|
|
|
|
rm -f /opt/spotify/share/spotify-client/Data/resources.zip
|
|
|
|
rm -f /opt/spotify/lib/spotify-client/Data
|
|
|
|
fi
|
|
|
|
:
|
|
|
|
|
2013-09-01 00:56:18 +02:00
|
|
|
%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)
|
2013-11-03 16:31:48 +01:00
|
|
|
%{_bindir}/spotify
|
2015-01-29 11:33:58 +01:00
|
|
|
%{_datadir}/appdata/spotify.xml
|
2013-11-03 16:31:48 +01:00
|
|
|
%{_datadir}/applications/spotify.desktop
|
|
|
|
%{_datadir}/icons/hicolor/*/apps/spotify-client.png
|
2013-09-01 00:56:18 +02:00
|
|
|
%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/*
|
2013-11-03 16:31:48 +01:00
|
|
|
%dir /opt/spotify/share
|
2013-09-01 00:56:18 +02:00
|
|
|
%dir /opt/spotify/share/spotify-client/
|
|
|
|
/opt/spotify/share/spotify-client/*
|
2015-08-26 15:44:36 +02:00
|
|
|
%{_mandir}/man1/spotify.1*
|
2013-09-01 00:56:18 +02:00
|
|
|
|
|
|
|
%changelog
|
2015-08-26 15:44:36 +02:00
|
|
|
* Thu Aug 26 2015 Silvan Calarco <silvan.calarco@mambasoft.it> 20150629-1mamba
|
|
|
|
- fetch spotify-make from git
|
|
|
|
|
2015-01-29 11:33:58 +01:00
|
|
|
* Thu Jan 29 2015 Silvan Calarco <silvan.calarco@mambasoft.it> 20150129-1mamba
|
|
|
|
- updated
|
|
|
|
|
2013-09-01 00:56:18 +02:00
|
|
|
* 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
|