Skip to content
This repository has been archived by the owner on Feb 12, 2021. It is now read-only.

Commit

Permalink
Establish a proper src.rpm (issue #3).
Browse files Browse the repository at this point in the history
Although we havn't the sources, it makes sense to package a complete
srpm which can be used on any supported architecture.
  • Loading branch information
Alec Leamas committed May 24, 2013
1 parent 0bdb22c commit 9e62eba
Showing 1 changed file with 12 additions and 14 deletions.
26 changes: 12 additions & 14 deletions spotify-client.spec
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,6 @@
%global __arch_install_post \
%( echo %{__arch_install_post} | sed '/check-rpaths/d' )

%ifarch x86_64
%global req_64 ()(64bit)
%endif

Name: spotify-client
Version: 0.8.8.323.gd143501.250
Expand All @@ -34,16 +31,19 @@ Summary: Desktop client for Spotify streaming music service
Url: http://www.spotify.com/download/previews/
Group: Productivity/Multimedia/Sound/Players
BuildRoot: %{_tmppath}/%{name}-%{version}-build

ExclusiveArch: i386 i586 i686 x86_64
Source0: %{github_repo}/spotify-make-%{version}-%{shortcommit}.tar.gz
Source1: spotify-client_%{version}-%{release}_amd64.deb
Source2: spotify-client_%{version}-%{release}_i386.deb
Source3: pkg-bundled-README
Source4: spotify.sh

%ifarch x86_64
Source1: spotify-client_%{version}-%{release}_amd64.deb
%global req_64 ()(64bit)
%global spotify_pkg %{SOURCE1}
%else
Source1: spotify-client_%{version}-%{release}_i386.deb
%global spotify_pkg %{SOURCE2}
%endif
Source2: pkg-bundled-README
Source3: spotify.sh
NoSource: 0

BuildRequires: update-desktop-files
BuildRequires: binutils
Expand Down Expand Up @@ -95,14 +95,12 @@ It includes the following features:

%prep
%setup -qn spotify-make-%{commit}
cp %{SOURCE2} README
cp %{SOURCE3} spotify.bash # Use the SUSE wrapper instead of upstream.
cp %{SOURCE3} README
cp %{SOURCE4} spotify.bash.in # Use the SUSE wrapper instead of upstream.


%build
export PATH=$PATH:/sbin:/usr/sbin
env version=%{version} file=$( basename %{SOURCE1} ) \
./configure --prefix=/usr --libdir=%{_libdir} --local
./configure --prefix=/usr --libdir=%{_libdir} --package=%{spotify_pkg}


%install
Expand Down

0 comments on commit 9e62eba

Please sign in to comment.