commit d6a910b80e911a83a1515b7f5a18ade0c917e121 Author: Elan Ruusamäe <g...@delfi.ee> Date: Tue Sep 20 16:28:46 2016 +0300
new, version 2.0.0 based on dirkdavidis' Mopidy package https://copr-be.cloud.fedoraproject.org/results/dirkdavidis/Mopidy/fedora-24-x86_64/00360822-mopidy/mopidy-2.0.0-2.src.rpm mopidy.conf | 8 ++++++++ mopidy.service | 10 ++++++++++ mopidy.spec | 63 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 81 insertions(+) --- diff --git a/mopidy.spec b/mopidy.spec new file mode 100644 index 0000000..0df8be9 --- /dev/null +++ b/mopidy.spec @@ -0,0 +1,63 @@ +%define module mopidy +%define egg_name Mopidy +Summary: Music server with MPD and Spotify support +Name: mopidy +Version: 2.0.0 +Release: 0.1 +License: Apache v2.0 +Group: Development/Libraries +Source0: https://github.com/mopidy/mopidy/archive/v%{version}/%{name}-%{version}.tar.gz +# Source0-md5: ada9471fe369a7c70c2d4cb3f0e10abc +Source1: %{name}.conf +Source2: %{name}.service +URL: http://www.mopidy.com/ +BuildRequires: rpm-pythonprov +BuildRequires: rpmbuild(macros) >= 1.714 +Requires: gstreamer-python +Requires: pykka +Requires: python-backports-ssl_match_hostname +Requires: python-dbus +Requires: python-pygobject +Requires: python-pygobject +Requires: python-requests +Requires: python-tornado +Requires: python2-certifi +BuildArch: noarch +BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) + +%description +Mopidy is a Python application that runs in a terminal or in the +background on Linux computers or Macs that have network connectivity +and audio output. Out of the box, Mopidy is an MPD and HTTP server. +Additional frontends for controlling Mopidy can be installed from +extensions. + +%prep +%setup -q + +%build +%py_build + +%install +rm -rf $RPM_BUILD_ROOT +%py_install +%py_postclean + +# install mopidy config file +install -d $RPM_BUILD_ROOT%{_sysconfdir}/%{name} +cp %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/%{name}/%{name}.conf + +# install mopidy service file +install -d $RPM_BUILD_ROOT%{systemdunitdir} +cp %{SOURCE2} $RPM_BUILD_ROOT%{systemdunitdir}/%{name}.service + +%clean +rm -rf $RPM_BUILD_ROOT + +%files +%defattr(644,root,root,755) +%config(noreplace) %{_sysconfdir}/%{name}/%{name}.conf +%{systemdunitdir}/%{name}.service +%attr(755,root,root) %{_bindir}/mopidy +%{py_sitescriptdir}/%{module} +%{py_sitescriptdir}/%{egg_name}-%{version}-py*.egg-info diff --git a/mopidy.conf b/mopidy.conf new file mode 100644 index 0000000..95b8b42 --- /dev/null +++ b/mopidy.conf @@ -0,0 +1,8 @@ +[logging] +debug_file = /var/log/mopidy/mopidy-debug.log + +[local] +enabled = true +data_dir = /var/lib/mopidy/local +media_dir = /var/lib/mopidy/media +playlists_dir = /var/lib/mopidy/playlists diff --git a/mopidy.service b/mopidy.service new file mode 100644 index 0000000..742fac2 --- /dev/null +++ b/mopidy.service @@ -0,0 +1,10 @@ +[Unit] +Description=mopidy +After=network.target + +[Service] +User=mopidy +ExecStart=/usr/bin/mopidy --config /etc/mopidy/mopidy.conf + +[Install] +WantedBy=multi-user.target ================================================================ ---- gitweb: http://git.pld-linux.org/gitweb.cgi/packages/mopidy.git/commitdiff/d6a910b80e911a83a1515b7f5a18ade0c917e121 _______________________________________________ pld-cvs-commit mailing list pld-cvs-commit@lists.pld-linux.org http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit