]>
Commit | Line | Data |
---|---|---|
b297e630 JP |
1 | Summary: Movie player based on MPlayer and mplayer2 |
2 | Name: mpv | |
9c4d4eba | 3 | Version: 0.10.0 |
81155b58 | 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 |
9c4d4eba | 8 | # Source0-md5: e81a975e4fa17f500dc2e7ea3d3ecf25 |
4084bdb9 | 9 | Source1: %{name}.conf |
e386ece9 | 10 | Patch0: %{name}-lua.patch |
b297e630 JP |
11 | URL: http://mpv.io/ |
12 | BuildRequires: Mesa-libwayland-egl-devel >= 9.0.0 | |
13 | BuildRequires: OpenAL-devel >= 1.13 | |
14 | BuildRequires: OpenGL-devel | |
15 | BuildRequires: SDL-devel | |
16 | BuildRequires: alsa-lib-devel | |
682d5897 | 17 | BuildRequires: docutils |
5d9fec95 JP |
18 | BuildRequires: enca-devel |
19 | BuildRequires: ffmpeg-devel >= 2.4.0 | |
b297e630 JP |
20 | BuildRequires: jack-audio-connection-kit-devel |
21 | BuildRequires: ladspa-devel | |
d297c06d | 22 | BuildRequires: lcms2-devel >= 2.6 |
5d9fec95 | 23 | BuildRequires: libass-devel >= 0.12.1 |
308de4d0 JP |
24 | %ifarch i386 i486 |
25 | BuildRequires: libatomic-devel | |
26 | %endif | |
5d9fec95 | 27 | BuildRequires: libbluray-devel >= 0.3.0 |
292eac8e | 28 | BuildRequires: libbs2b-devel |
b297e630 JP |
29 | BuildRequires: libcaca-devel >= 0.99 |
30 | BuildRequires: libcdio-paranoia-devel | |
31 | BuildRequires: libdvdnav-devel >= 4.2.0 | |
32 | BuildRequires: libdvdread-devel >= 4.1.0 | |
b297e630 JP |
33 | BuildRequires: libguess-devel |
34 | BuildRequires: libjpeg-devel | |
b297e630 JP |
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 | |
f02c0322 | 40 | BuildRequires: lua51-devel |
b297e630 | 41 | BuildRequires: pkgconfig |
b297e630 | 42 | BuildRequires: pulseaudio-devel >= 0.9 |
4d3f4bbb | 43 | BuildRequires: rpmbuild(macros) >= 1.336 |
9c4d4eba | 44 | BuildRequires: waf >= 1.8.12 |
8b886367 | 45 | BuildRequires: wayland-devel >= 1.3.0 |
b297e630 JP |
46 | BuildRequires: xorg-lib-libX11-devel |
47 | BuildRequires: xorg-lib-libXScrnSaver-devel | |
48 | BuildRequires: xorg-lib-libXdamage-devel | |
49 | BuildRequires: xorg-lib-libXext-devel | |
50 | BuildRequires: xorg-lib-libXinerama-devel | |
51 | BuildRequires: xorg-lib-libXv-devel | |
52 | BuildRequires: xorg-lib-libXxf86vm-devel | |
53 | BuildRequires: xorg-lib-libxkbcommon-devel >= 0.3.0 | |
54 | BuildRequires: xorg-proto-xproto-devel | |
5d9fec95 JP |
55 | Requires: Mesa-libwayland-egl >= 9.0.0 |
56 | Requires: OpenAL >= 1.13 | |
b297e630 | 57 | Requires: OpenGL |
5d9fec95 JP |
58 | Requires: ffmpeg-libs >= 2.4.0 |
59 | Requires: lcms2 >= 2.6 | |
60 | Requires: libass >= 0.12.1 | |
61 | Requires: libbluray >= 0.3.0 | |
62 | Requires: libcaca >= 0.99 | |
63 | Requires: libdvdnav >= 4.2.0 | |
64 | Requires: libdvdread >= 4.1.0 | |
65 | Requires: libva >= 1.2.0 | |
66 | Requires: libva-glx >= 1.2.0 | |
67 | Requires: libvdpau >= 0.2 | |
68 | Requires: pulseaudio-libs >= 1.0 | |
69 | Requires: wayland >= 1.6.0 | |
70 | Requires: xorg-lib-libxkbcommon >= 0.3.0 | |
20a45907 | 71 | Suggests: youtube-dl >= 2:20150223 |
b297e630 JP |
72 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
73 | ||
74 | %define _noautoreqdep libGL.so.1 libGLU.so.1 | |
75 | ||
d297c06d JP |
76 | %define zshdir %{_datadir}/zsh/site-functions |
77 | ||
b297e630 | 78 | %description |
292eac8e | 79 | Movie player based on MPlayer and mplayer2. |
b297e630 | 80 | |
d297c06d | 81 | %package client-libs |
e386ece9 JP |
82 | Summary: Client library for controlling mpv |
83 | Group: Development/Libraries | |
d297c06d JP |
84 | |
85 | %description client-libs | |
86 | Client library for controlling mpv. | |
87 | ||
88 | %package client-devel | |
e386ece9 JP |
89 | Summary: Development files for mpv client library |
90 | Group: Development/Libraries | |
91 | Requires: %{name}-client-libs = %{version}-%{release} | |
d297c06d JP |
92 | |
93 | %description client-devel | |
94 | Development files for mpv client library. | |
95 | ||
96 | %package -n zsh-completion-mpv | |
e386ece9 JP |
97 | Summary: zsh-completion for mpv |
98 | Group: Applications/Shells | |
99 | Requires: %{name} = %{version}-%{release} | |
d297c06d JP |
100 | |
101 | %description -n zsh-completion-mpv | |
102 | zsh-completion for mpv. | |
103 | ||
b297e630 JP |
104 | %prep |
105 | %setup -q | |
d297c06d | 106 | %patch0 -p1 |
b297e630 JP |
107 | |
108 | %build | |
4d3f4bbb | 109 | %waf configure \ |
b297e630 JP |
110 | --prefix=%{_prefix} \ |
111 | --bindir=%{_bindir} \ | |
112 | --confdir=%{_sysconfdir}/mpv \ | |
113 | --libdir=%{_libdir} \ | |
114 | --datadir=%{_datadir} \ | |
115 | --mandir=%{_mandir} \ | |
116 | --disable-debug-build \ | |
117 | --enable-alsa \ | |
118 | --enable-audio-input \ | |
119 | --enable-caca \ | |
120 | --enable-cdda \ | |
121 | --enable-dvb \ | |
122 | --enable-dvbin \ | |
123 | --enable-dvdnav \ | |
124 | --enable-dvdread \ | |
125 | --enable-enca \ | |
d297c06d | 126 | --enable-encoding \ |
b297e630 JP |
127 | --enable-gl-wayland \ |
128 | --enable-gl-x11 \ | |
129 | --enable-iconv \ | |
130 | --enable-jack \ | |
b297e630 JP |
131 | --enable-jpeg \ |
132 | --enable-ladspa \ | |
133 | --enable-lcms2 \ | |
134 | --enable-libass \ | |
d297c06d JP |
135 | --enable-libass-osd \ |
136 | --enable-libavdevice \ | |
137 | --enable-libavfilter \ | |
b297e630 JP |
138 | --enable-libbluray \ |
139 | --enable-libbs2b \ | |
140 | --enable-libguess \ | |
d297c06d | 141 | --enable-libmpv-shared \ |
b297e630 | 142 | --enable-libsmbclient \ |
eab2fe55 | 143 | --enable-libswresample \ |
b297e630 | 144 | --enable-libv4l2 \ |
b297e630 JP |
145 | --enable-openal \ |
146 | --enable-oss-audio \ | |
b297e630 JP |
147 | --enable-pulse \ |
148 | --enable-pvr \ | |
d297c06d | 149 | --enable-sdl1 \ |
b297e630 | 150 | --enable-shm \ |
b297e630 JP |
151 | --enable-tv \ |
152 | --enable-tv-v4l2 \ | |
b297e630 JP |
153 | --enable-vaapi \ |
154 | --enable-vaapi-glx \ | |
155 | --enable-vaapi-hwaccel \ | |
156 | --enable-vaapi-vpp \ | |
b297e630 | 157 | --enable-vdpau \ |
d297c06d | 158 | --enable-vdpau-gl-x11 \ |
b297e630 | 159 | --enable-vdpau-hwaccel \ |
d297c06d | 160 | --enable-wayland \ |
b297e630 JP |
161 | --enable-x11 \ |
162 | --enable-xext \ | |
b297e630 JP |
163 | --enable-xinerama \ |
164 | --enable-xss \ | |
d297c06d | 165 | --enable-xv \ |
f02c0322 | 166 | --enable-zsh-comp \ |
e386ece9 JP |
167 | --lua=51pld \ |
168 | --zshdir=%{zshdir} | |
292eac8e | 169 | |
4d3f4bbb | 170 | %waf build -v |
b297e630 JP |
171 | |
172 | %install | |
173 | rm -rf $RPM_BUILD_ROOT | |
174 | ||
4d3f4bbb | 175 | %waf install --destdir=$RPM_BUILD_ROOT |
b297e630 | 176 | |
4084bdb9 | 177 | install -d $RPM_BUILD_ROOT%{_sysconfdir}/mpv |
e386ece9 | 178 | cp -p %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/mpv |
4084bdb9 | 179 | |
a68f52ba JP |
180 | %{__rm} -r $RPM_BUILD_ROOT%{_docdir} |
181 | ||
b297e630 JP |
182 | %clean |
183 | rm -rf $RPM_BUILD_ROOT | |
184 | ||
185 | %files | |
186 | %defattr(644,root,root,755) | |
a68f52ba | 187 | %doc README.md RELEASE_NOTES etc/example.conf etc/input.conf etc/mplayer-input.conf etc/restore-old-bindings.conf |
b297e630 JP |
188 | %dir %{_sysconfdir}/mpv |
189 | %{_sysconfdir}/mpv/encoding-profiles.conf | |
4084bdb9 | 190 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/mpv/mpv.conf |
b297e630 JP |
191 | %attr(755,root,root) %{_bindir}/%{name} |
192 | %{_desktopdir}/mpv.desktop | |
193 | %{_iconsdir}/hicolor/*/apps/mpv.png | |
194 | %{_mandir}/man1/mpv.1* | |
d297c06d JP |
195 | |
196 | %files client-libs | |
197 | %defattr(644,root,root,755) | |
198 | %attr(755,root,root) %{_libdir}/libmpv.so.*.*.* | |
199 | %attr(755,root,root) %ghost %{_libdir}/libmpv.so.1 | |
200 | ||
201 | %files client-devel | |
202 | %defattr(644,root,root,755) | |
203 | %attr(755,root,root) %{_libdir}/libmpv.so | |
204 | %{_includedir}/mpv | |
205 | %{_pkgconfigdir}/mpv.pc | |
206 | ||
207 | %files -n zsh-completion-mpv | |
208 | %defattr(644,root,root,755) | |
209 | %{zshdir}/_mpv |