[packages/mpv] - provide mpv.conf with sane defaults for fullscreen playback and subcp detection

atler atler at pld-linux.org
Wed Jan 8 12:12:40 CET 2014


commit 4084bdb93aa4a985d248378045eb5cce4ad6ae1b
Author: Jan Palus <jan.palus at gmail.com>
Date:   Wed Jan 8 12:11:54 2014 +0100

    - provide mpv.conf with sane defaults for fullscreen playback and subcp
      detection

 mpv.conf | 2 ++
 mpv.spec | 5 +++++
 2 files changed, 7 insertions(+)
---
diff --git a/mpv.spec b/mpv.spec
index 6d34438..195ef47 100644
--- a/mpv.spec
+++ b/mpv.spec
@@ -6,6 +6,7 @@ License:	GPL v2+
 Group:		Applications/Multimedia
 Source0:	http://github.com/mpv-player/%{name}/archive/v%{version}.tar.gz?/%{name}-%{version}.tar.gz
 # Source0-md5:	516f2eeec1d1f69905d11c1feec8166e
+Source1:	%{name}.conf
 URL:		http://mpv.io/
 BuildRequires:	Mesa-libwayland-egl-devel >= 9.0.0
 BuildRequires:	OpenAL-devel >= 1.13
@@ -138,6 +139,9 @@ rm -rf $RPM_BUILD_ROOT
 
 waf install --destdir=$RPM_BUILD_ROOT
 
+install -d $RPM_BUILD_ROOT%{_sysconfdir}/mpv
+install %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/mpv
+
 %clean
 rm -rf $RPM_BUILD_ROOT
 
@@ -145,6 +149,7 @@ rm -rf $RPM_BUILD_ROOT
 %defattr(644,root,root,755)
 %dir %{_sysconfdir}/mpv
 %{_sysconfdir}/mpv/encoding-profiles.conf
+%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/mpv/mpv.conf
 %attr(755,root,root) %{_bindir}/%{name}
 %{_desktopdir}/mpv.desktop
 %{_iconsdir}/hicolor/*/apps/mpv.png
diff --git a/mpv.conf b/mpv.conf
new file mode 100644
index 0000000..d517240
--- /dev/null
+++ b/mpv.conf
@@ -0,0 +1,2 @@
+fstype=fullscreen
+subcp=guess:polish:cp1250
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/mpv.git/commitdiff/4084bdb93aa4a985d248378045eb5cce4ad6ae1b



More information about the pld-cvs-commit mailing list