]>
Commit | Line | Data |
---|---|---|
b297e630 JP |
1 | Summary: Movie player based on MPlayer and mplayer2 |
2 | Name: mpv | |
a1c88a1e | 3 | Version: 0.3.9 |
bca444f7 | 4 | Release: 1 |
b297e630 JP |
5 | License: GPL v2+ |
6 | Group: Applications/Multimedia | |
292eac8e | 7 | Source0: http://github.com/mpv-player/mpv/archive/v%{version}.tar.gz?/%{name}-%{version}.tar.gz |
a1c88a1e | 8 | # Source0-md5: afb42ae3b94bc968cfa9a690cde1df72 |
4084bdb9 | 9 | Source1: %{name}.conf |
b297e630 JP |
10 | URL: http://mpv.io/ |
11 | BuildRequires: Mesa-libwayland-egl-devel >= 9.0.0 | |
12 | BuildRequires: OpenAL-devel >= 1.13 | |
13 | BuildRequires: OpenGL-devel | |
14 | BuildRequires: SDL-devel | |
15 | BuildRequires: alsa-lib-devel | |
16 | BuildRequires: enca-devel | |
292eac8e | 17 | BuildRequires: ffmpeg-devel >= 1.1.0 |
b297e630 JP |
18 | BuildRequires: jack-audio-connection-kit-devel |
19 | BuildRequires: ladspa-devel | |
20 | BuildRequires: lcms2-devel | |
21 | BuildRequires: libass-devel | |
308de4d0 JP |
22 | %ifarch i386 i486 |
23 | BuildRequires: libatomic-devel | |
24 | %endif | |
292eac8e JP |
25 | BuildRequires: libbluray-devel >= 0.2.1 |
26 | BuildRequires: libbs2b-devel | |
b297e630 JP |
27 | BuildRequires: libcaca-devel >= 0.99 |
28 | BuildRequires: libcdio-paranoia-devel | |
29 | BuildRequires: libdvdnav-devel >= 4.2.0 | |
30 | BuildRequires: libdvdread-devel >= 4.1.0 | |
b297e630 JP |
31 | BuildRequires: libguess-devel |
32 | BuildRequires: libjpeg-devel | |
530c787a | 33 | BuildRequires: libmpg123-devel >= 1.14.0 |
b297e630 JP |
34 | BuildRequires: libquvi-devel < 0.9.0 |
35 | BuildRequires: libsmbclient-devel | |
36 | BuildRequires: libv4l-devel | |
37 | BuildRequires: libva-devel >= 1.2.0 | |
38 | BuildRequires: libva-glx-devel >= 1.2.0 | |
39 | BuildRequires: libvdpau-devel >= 0.2 | |
40 | BuildRequires: lirc-devel | |
41 | BuildRequires: ncurses-devel | |
42 | BuildRequires: pkgconfig | |
43 | BuildRequires: portaudio-devel >= 19 | |
44 | BuildRequires: pulseaudio-devel >= 0.9 | |
4d3f4bbb | 45 | BuildRequires: rpmbuild(macros) >= 1.336 |
3843a7a8 JP |
46 | # version dep to handle packaging issue in PLD |
47 | BuildRequires: waf >= 1.7.14 | |
8b886367 | 48 | BuildRequires: wayland-devel >= 1.3.0 |
b297e630 JP |
49 | BuildRequires: xorg-lib-libX11-devel |
50 | BuildRequires: xorg-lib-libXScrnSaver-devel | |
51 | BuildRequires: xorg-lib-libXdamage-devel | |
52 | BuildRequires: xorg-lib-libXext-devel | |
53 | BuildRequires: xorg-lib-libXinerama-devel | |
54 | BuildRequires: xorg-lib-libXv-devel | |
55 | BuildRequires: xorg-lib-libXxf86vm-devel | |
56 | BuildRequires: xorg-lib-libxkbcommon-devel >= 0.3.0 | |
57 | BuildRequires: xorg-proto-xproto-devel | |
58 | Requires: OpenGL | |
59 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
60 | ||
61 | %define _noautoreqdep libGL.so.1 libGLU.so.1 | |
62 | ||
63 | %description | |
292eac8e | 64 | Movie player based on MPlayer and mplayer2. |
b297e630 JP |
65 | |
66 | %prep | |
67 | %setup -q | |
68 | ||
69 | %build | |
4d3f4bbb | 70 | %waf configure \ |
b297e630 JP |
71 | --prefix=%{_prefix} \ |
72 | --bindir=%{_bindir} \ | |
73 | --confdir=%{_sysconfdir}/mpv \ | |
74 | --libdir=%{_libdir} \ | |
75 | --datadir=%{_datadir} \ | |
76 | --mandir=%{_mandir} \ | |
77 | --disable-debug-build \ | |
78 | --enable-alsa \ | |
79 | --enable-audio-input \ | |
80 | --enable-caca \ | |
81 | --enable-cdda \ | |
82 | --enable-dvb \ | |
83 | --enable-dvbin \ | |
84 | --enable-dvdnav \ | |
85 | --enable-dvdread \ | |
86 | --enable-enca \ | |
87 | --enable-gl-wayland \ | |
88 | --enable-gl-x11 \ | |
89 | --enable-iconv \ | |
90 | --enable-jack \ | |
91 | --enable-joystick \ | |
92 | --enable-jpeg \ | |
93 | --enable-ladspa \ | |
94 | --enable-lcms2 \ | |
95 | --enable-libass \ | |
96 | --enable-libbluray \ | |
97 | --enable-libbs2b \ | |
98 | --enable-libguess \ | |
99 | --enable-libquvi4 \ | |
100 | --enable-libsmbclient \ | |
101 | --enable-libv4l2 \ | |
102 | --enable-lirc \ | |
103 | --enable-mpg123 \ | |
104 | --enable-openal \ | |
105 | --enable-oss-audio \ | |
106 | --enable-portaudio \ | |
107 | --enable-pulse \ | |
108 | --enable-pvr \ | |
109 | --enable-radio \ | |
110 | --enable-radio-capture \ | |
111 | --enable-radio-v4l2 \ | |
112 | --enable-sdl \ | |
113 | --enable-shm \ | |
114 | --enable-terminfo \ | |
115 | --enable-tv \ | |
116 | --enable-tv-v4l2 \ | |
117 | --enable-wayland \ | |
118 | --enable-vaapi \ | |
119 | --enable-vaapi-glx \ | |
120 | --enable-vaapi-hwaccel \ | |
121 | --enable-vaapi-vpp \ | |
122 | --enable-vcd \ | |
123 | --enable-vdpau \ | |
124 | --enable-vdpau-hwaccel \ | |
125 | --enable-x11 \ | |
126 | --enable-xext \ | |
127 | --enable-xf86vm \ | |
128 | --enable-xf86xk \ | |
129 | --enable-xinerama \ | |
130 | --enable-xss \ | |
292eac8e JP |
131 | --enable-xv |
132 | ||
4d3f4bbb | 133 | %waf build -v |
b297e630 JP |
134 | |
135 | %install | |
136 | rm -rf $RPM_BUILD_ROOT | |
137 | ||
4d3f4bbb | 138 | %waf install --destdir=$RPM_BUILD_ROOT |
b297e630 | 139 | |
4084bdb9 JP |
140 | install -d $RPM_BUILD_ROOT%{_sysconfdir}/mpv |
141 | install %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/mpv | |
142 | ||
b297e630 JP |
143 | %clean |
144 | rm -rf $RPM_BUILD_ROOT | |
145 | ||
146 | %files | |
147 | %defattr(644,root,root,755) | |
148 | %dir %{_sysconfdir}/mpv | |
149 | %{_sysconfdir}/mpv/encoding-profiles.conf | |
4084bdb9 | 150 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/mpv/mpv.conf |
b297e630 JP |
151 | %attr(755,root,root) %{_bindir}/%{name} |
152 | %{_desktopdir}/mpv.desktop | |
153 | %{_iconsdir}/hicolor/*/apps/mpv.png | |
154 | %{_mandir}/man1/mpv.1* |