2 %define egg_name Mopidy
3 Summary: Music server with MPD and Spotify support
8 Group: Development/Libraries
9 Source0: https://github.com/mopidy/mopidy/archive/v%{version}/%{name}-%{version}.tar.gz
10 # Source0-md5: ada9471fe369a7c70c2d4cb3f0e10abc
12 Source2: %{name}.service
13 URL: http://www.mopidy.com/
14 BuildRequires: rpm-pythonprov
15 BuildRequires: rpmbuild(macros) >= 1.714
16 Requires: python-backports-ssl_match_hostname
17 Requires: python-certifi
19 Requires: python-gstreamer
20 Requires: python-pygobject
21 Requires: python-pykka
22 Requires: python-requests
23 Requires: python-tornado
25 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
28 Mopidy is a Python application that runs in a terminal or in the
29 background on Linux computers or Macs that have network connectivity
30 and audio output. Out of the box, Mopidy is an MPD and HTTP server.
31 Additional frontends for controlling Mopidy can be installed from
41 rm -rf $RPM_BUILD_ROOT
45 # install mopidy config file
46 install -d $RPM_BUILD_ROOT%{_sysconfdir}/%{name}
47 cp %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/%{name}/%{name}.conf
49 # install mopidy service file
50 install -d $RPM_BUILD_ROOT%{systemdunitdir}
51 cp %{SOURCE2} $RPM_BUILD_ROOT%{systemdunitdir}/%{name}.service
54 rm -rf $RPM_BUILD_ROOT
57 %defattr(644,root,root,755)
58 %dir %{_sysconfdir}/%{name}
59 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}/%{name}.conf
60 %{systemdunitdir}/%{name}.service
61 %attr(755,root,root) %{_bindir}/mopidy
62 %{py_sitescriptdir}/%{module}
63 %{py_sitescriptdir}/%{egg_name}-%{version}-py*.egg-info