Name: mopidy Version: 0.6.1 Release: 1%{?dist} Summary: Music server that plays music from Spotify Group: Applications/Multimedia License: ASL 2.0 URL: http://www.mopidy.com/ Source0: http://github.com/mopidy/mopidy/tarball/v0.6.1 BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX) BuildRequires: python2-devel BuildArch: noarch Requires: pyspotify >= 1.6.1, pykka >= 0.13.0, python-alsaaudio, gstreamer-python %description Mopidy is a music server that plays music from a user's Spotify account, given that the user has a Spotify Premium Account. Any MPD clients can connect and control the server %package lastfm Summary: LastFM plugin for Mopidy Requires: pylast Requires: mopidy = %{version}-%{release} %description lastfm This pulls in the packages needed so Mopidy can post to your LastFM account %package serial Summary: Serial driver for Mopidy Requires: pyserial Requires: mopidy = %{version}-%{release} %description serial This pulls in the packages needed so Mopidy can control the volume on your external speakers with a serial controller %prep %setup -q -c DIR=`ls -d mopidy-mopidy-*` mv $DIR/* ./ mv $DIR/.[a-zA-Z0-9]* ./ rmdir $DIR %build CFLAGS="$RPM_OPT_FLAGS" %{__python} setup.py build %install rm -rf $RPM_BUILD_ROOT CFLAGS="$RPM_OPT_FLAGS" %{__python} setup.py install --skip-build --root $RPM_BUILD_ROOT %clean rm -rf $RPM_BUILD_ROOT %files %defattr(-,root,root,-) %doc LICENSE README.rst %{_bindir}/* %{python_sitelib}/Mopidy* %{python_sitelib}/mopidy %files lastfm %defattr(-,root,root,-) %doc LICENSE %files serial %defattr(-,root,root,-) %doc LICENSE %changelog * Wed Jan 4 2012 Jonathan Dieter - 0.6.1-1 - Initial release