]> git.pld-linux.org Git - packages/mopidy.git/commitdiff
new, version 2.0.0
authorElan Ruusamäe <glen@delfi.ee>
Tue, 20 Sep 2016 13:28:46 +0000 (16:28 +0300)
committerElan Ruusamäe <glen@delfi.ee>
Tue, 20 Sep 2016 13:28:46 +0000 (16:28 +0300)
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 [new file with mode: 0644]
mopidy.service [new file with mode: 0644]
mopidy.spec [new file with mode: 0644]

diff --git a/mopidy.conf b/mopidy.conf
new file mode 100644 (file)
index 0000000..95b8b42
--- /dev/null
@@ -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 (file)
index 0000000..742fac2
--- /dev/null
@@ -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
diff --git a/mopidy.spec b/mopidy.spec
new file mode 100644 (file)
index 0000000..0df8be9
--- /dev/null
@@ -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
This page took 0.189933 seconds and 4 git commands to generate.