commit dcdeffb949918dea1afb891d8fed65c758d5ad1a
Author: Jan200101 <sentrycraft123(a)gmail.com>
Date: Mon Jan 20 21:34:24 2020 +0100
Import srpm
.gitignore | 1 +
mpv-mpris.spec | 56 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++
sources | 1 +
3 files changed, 58 insertions(+)
---
diff --git a/.gitignore b/.gitignore
index e69de29..fecdf98 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/mpv-mpris-0.4.tar.gz
diff --git a/mpv-mpris.spec b/mpv-mpris.spec
new file mode 100644
index 0000000..6ccfb83
--- /dev/null
+++ b/mpv-mpris.spec
@@ -0,0 +1,56 @@
+Name: mpv-mpris
+Version: 0.4
+Release: 3%{?dist}
+Summary: MPRIS plugin for mpv
+
+License: MIT
+URL:
https://github.com/hoyon/mpv-mpris
+Source0: %{url}/archive/%{version}/%{name}-%{version}.tar.gz
+
+BuildRequires: gcc
+BuildRequires: mpv-libs-devel
+BuildRequires: glib2-devel
+BuildRequires: pkg-config
+
+Requires: mpv
+
+%description
+mpv-mpris allows control of mpv using standard media keys
+
+This plugin implements the MPRIS D-Bus interface and can
+be controlled using tools such as playerctl or through
+many Linux DEs, such as Gnome and KDE.
+
+%prep
+%autosetup
+
+%build
+%{set_build_flags}
+%make_build
+
+%install
+mkdir -p %{buildroot}/%{_libdir}/mpv
+mkdir -p %{buildroot}/%{_sysconfdir}/mpv/scripts/
+
+install -p -m 0755 mpris.so %{buildroot}/%{_libdir}/mpv/mpris.so
+ln -sf %{_libdir}/mpv/mpris.so %{buildroot}/%{_sysconfdir}/mpv/scripts/
+
+%files
+%dir %{_libdir}/mpv/
+%{_libdir}/mpv/mpris.so
+%dir %{_sysconfdir}/mpv/scripts
+%{_sysconfdir}/mpv/scripts/mpris.so
+%license LICENSE
+%doc README.md
+
+%changelog
+* Sun Jan 19 2020 Jan Drögehoff <sentrycraft123(a)gmail.com> - 0.4-3
+- change source
+
+* Sat Jan 18 2020 Jan Drögehoff <sentrycraft123(a)gmail.com> - 0.4-2
+- improve spec
+
+* Fri Jan 17 2020 Jan Drögehoff <sentrycraft123(a)gmail.com> - 0.4-1
+- Initial spec using version 4.0
+
+
diff --git a/sources b/sources
index e69de29..0a5652c 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+SHA512 (mpv-mpris-0.4.tar.gz) =
9845e6bf7c536e684a79b50d9f6f9eb0b23cfea7455afda6093831da29bf464e9778feb7ce4e9c4c46a24c5465ad2396010e7161d5e21a3d5b6dda46d2dc83d8