Initial import (#2926)
parent
74ba605a3b
commit
1c0e616db0
@ -0,0 +1 @@
|
|||||||
|
v0.1.2.tar.gz
|
@ -0,0 +1,29 @@
|
|||||||
|
diff --git a/etc/example.conf b/etc/example.conf
|
||||||
|
index 96c7afa..d9d1aea 100644
|
||||||
|
--- a/etc/example.conf
|
||||||
|
+++ b/etc/example.conf
|
||||||
|
@@ -1,7 +1,7 @@
|
||||||
|
#
|
||||||
|
# mpv configuration file
|
||||||
|
#
|
||||||
|
-# Configuration files are read system-wide from /usr/local/etc/mpv.conf
|
||||||
|
+# Configuration files are read system-wide from /etc/mpv/mpv.conf
|
||||||
|
# and per-user from ~/.mpv/config, where per-user settings override
|
||||||
|
# system-wide settings, all of which are overrriden by the command line.
|
||||||
|
#
|
||||||
|
@@ -21,6 +21,7 @@
|
||||||
|
|
||||||
|
# Specify default video driver (see -vo help for a list).
|
||||||
|
#vo=vdpau
|
||||||
|
+vo=xv
|
||||||
|
|
||||||
|
# Start in fullscreen mode by default.
|
||||||
|
#fs=yes
|
||||||
|
@@ -41,6 +42,7 @@
|
||||||
|
|
||||||
|
# Specify default audio driver (see -ao help for a list).
|
||||||
|
#ao=alsa
|
||||||
|
+ao=pulse,alsa,
|
||||||
|
|
||||||
|
# Disable softvol usage, and always use the system mixer if available.
|
||||||
|
#softvol=no
|
@ -0,0 +1,79 @@
|
|||||||
|
Name: mpv
|
||||||
|
Version: 0.1.2
|
||||||
|
Release: 2%{?dist}
|
||||||
|
Summary: Movie player playing most video formats and DVDs
|
||||||
|
License: GPLv3+
|
||||||
|
URL: http://%{name}.io/
|
||||||
|
Source0: https://github.com/%{name}-player/%{name}/archive/v%{version}.tar.gz
|
||||||
|
|
||||||
|
# set defaults for Fedora
|
||||||
|
Patch0: %{name}-config.patch
|
||||||
|
|
||||||
|
BuildRequires: aalib-devel
|
||||||
|
BuildRequires: alsa-lib-devel
|
||||||
|
BuildRequires: bzip2-devel
|
||||||
|
BuildRequires: ffmpeg-devel
|
||||||
|
BuildRequires: libass-devel
|
||||||
|
BuildRequires: libbluray-devel
|
||||||
|
BuildRequires: libdvdnav-devel
|
||||||
|
BuildRequires: libGL-devel
|
||||||
|
BuildRequires: libsmbclient-devel
|
||||||
|
BuildRequires: libvdpau-devel
|
||||||
|
BuildRequires: libXinerama-devel
|
||||||
|
BuildRequires: libXScrnSaver-devel
|
||||||
|
BuildRequires: libXv-devel
|
||||||
|
BuildRequires: lirc-devel
|
||||||
|
BuildRequires: pulseaudio-libs-devel
|
||||||
|
BuildRequires: python-docutils
|
||||||
|
|
||||||
|
%description
|
||||||
|
Mpv is a movie player based on MPlayer and mplayer2. It supports a wide variety
|
||||||
|
of video file formats, audio and video codecs, and subtitle types. Special
|
||||||
|
input URL types are available to read input from a variety of sources other
|
||||||
|
than disk files. Depending on platform, a variety of different video and audio
|
||||||
|
output methods are supported.
|
||||||
|
|
||||||
|
%prep
|
||||||
|
%setup -q
|
||||||
|
%patch0 -p1
|
||||||
|
|
||||||
|
%build
|
||||||
|
./configure \
|
||||||
|
--prefix=%{_prefix} \
|
||||||
|
--bindir=%{_bindir} \
|
||||||
|
--mandir=%{_mandir} \
|
||||||
|
--confdir=%{_sysconfdir}/%{name} \
|
||||||
|
--extra-cflags="$RPM_OPT_FLAGS" \
|
||||||
|
--enable-joystick \
|
||||||
|
--enable-lirc \
|
||||||
|
--enable-radio \
|
||||||
|
--enable-radio-capture \
|
||||||
|
--enable-smb \
|
||||||
|
--disable-termcap \
|
||||||
|
--extra-cflags='-I/usr/include/samba-4.0/'
|
||||||
|
|
||||||
|
make %{?_smp_mflags}
|
||||||
|
|
||||||
|
%install
|
||||||
|
make install DESTDIR=%{buildroot}
|
||||||
|
|
||||||
|
# Default config files
|
||||||
|
install -Dpm 644 etc/example.conf %{buildroot}%{_sysconfdir}/%{name}/%{name}.conf
|
||||||
|
|
||||||
|
%files
|
||||||
|
%doc AUTHORS LICENSE README.md Copyright
|
||||||
|
%{_bindir}/%{name}
|
||||||
|
%{_mandir}/man1/%{name}.*
|
||||||
|
%{_sysconfdir}/%{name}
|
||||||
|
%config(noreplace) %{_sysconfdir}/%{name}/%{name}.conf
|
||||||
|
|
||||||
|
%changelog
|
||||||
|
* Tue Aug 27 2013 Miro Hrončok <mhroncok@redhat.com> - 0.1.2-2
|
||||||
|
- Reduced BRs a lot (removed support for various stuff)
|
||||||
|
- Make smbclient realized
|
||||||
|
- Changed the description to the text from manual page
|
||||||
|
|
||||||
|
* Mon Aug 19 2013 Miro Hrončok <mhroncok@redhat.com> - 0.1.2-1
|
||||||
|
- Initial spec
|
||||||
|
- Inspired a lot in mplayer.spec
|
||||||
|
|
Loading…
Reference in new issue