]>
Commit | Line | Data |
---|---|---|
b297e630 | 1 | Summary: Movie player based on MPlayer and mplayer2 |
c1eb0652 | 2 | Summary(pl.UTF-8): Odtwarzacz filmów oparty na projektach MPlayer i mplayer2 |
b297e630 | 3 | Name: mpv |
f272a633 | 4 | Version: 0.32.0 |
c914af07 | 5 | Release: 2 |
b297e630 JP |
6 | License: GPL v2+ |
7 | Group: Applications/Multimedia | |
c1eb0652 JB |
8 | #Source0Download: http://github.com/mpv-player/mpv/releases |
9 | Source0: http://github.com/mpv-player/mpv/archive/v%{version}/%{name}-%{version}.tar.gz | |
f272a633 | 10 | # Source0-md5: 1f7d23afe7a8639dedc9f7beef4e90d7 |
4084bdb9 | 11 | Source1: %{name}.conf |
e386ece9 | 12 | Patch0: %{name}-lua.patch |
3f336c4f | 13 | Patch1: %{name}-shaderc.patch |
c914af07 | 14 | Patch2: rtsp.patch |
b297e630 | 15 | URL: http://mpv.io/ |
9fcdff9e | 16 | BuildRequires: Mesa-libEGL-devel >= 9.0.0 |
f272a633 | 17 | BuildRequires: Mesa-libgbm-devel |
b297e630 JP |
18 | BuildRequires: OpenAL-devel >= 1.13 |
19 | BuildRequires: OpenGL-devel | |
9da63119 | 20 | BuildRequires: SDL2-devel |
5045f7e8 | 21 | BuildRequires: alsa-lib-devel >= 1.0.18 |
682d5897 | 22 | BuildRequires: docutils |
fe3aada1 | 23 | BuildRequires: ffmpeg-devel >= 4.0 |
b297e630 | 24 | BuildRequires: jack-audio-connection-kit-devel |
d297c06d | 25 | BuildRequires: lcms2-devel >= 2.6 |
f272a633 | 26 | BuildRequires: libarchive-devel >= 3.4.0 |
5d9fec95 | 27 | BuildRequires: libass-devel >= 0.12.1 |
308de4d0 JP |
28 | %ifarch i386 i486 |
29 | BuildRequires: libatomic-devel | |
30 | %endif | |
5d9fec95 | 31 | BuildRequires: libbluray-devel >= 0.3.0 |
5045f7e8 | 32 | BuildRequires: libcaca-devel >= 0.99-0.beta18.1 |
b297e630 | 33 | BuildRequires: libcdio-paranoia-devel |
f272a633 | 34 | BuildRequires: libdrm-devel >= 2.4.74 |
b297e630 JP |
35 | BuildRequires: libdvdnav-devel >= 4.2.0 |
36 | BuildRequires: libdvdread-devel >= 4.1.0 | |
b297e630 | 37 | BuildRequires: libjpeg-devel |
c127dc6c | 38 | BuildRequires: libplacebo-devel >= 0.18.0 |
b297e630 | 39 | BuildRequires: libsmbclient-devel |
5045f7e8 JP |
40 | BuildRequires: libva-devel >= 1.4.0 |
41 | BuildRequires: libva-glx-devel >= 1.4.0 | |
b297e630 | 42 | BuildRequires: libvdpau-devel >= 0.2 |
f02c0322 | 43 | BuildRequires: lua51-devel |
f272a633 | 44 | BuildRequires: nv-codec-headers >= 8.2.15.7 |
b297e630 | 45 | BuildRequires: pkgconfig |
5045f7e8 | 46 | BuildRequires: pulseaudio-devel >= 1.0 |
f272a633 JP |
47 | BuildRequires: rpmbuild(macros) >= 1.719 |
48 | BuildRequires: rubberband-devel >= 1.8.0 | |
220e5582 | 49 | BuildRequires: shaderc-devel >= 2019.0 |
a33f39f8 | 50 | BuildRequires: uchardet-devel |
f272a633 | 51 | BuildRequires: vapoursynth-devel >= 24 |
9c4d4eba | 52 | BuildRequires: waf >= 1.8.12 |
8a7befcf | 53 | BuildRequires: wayland-devel >= 1.15.0 |
12311963 | 54 | BuildRequires: wayland-egl-devel |
b4be0d1d | 55 | BuildRequires: wayland-protocols >= 1.14 |
31601366 JP |
56 | BuildRequires: xorg-lib-libX11-devel >= 1.0.0 |
57 | BuildRequires: xorg-lib-libXScrnSaver-devel >= 1.0.0 | |
b297e630 | 58 | BuildRequires: xorg-lib-libXdamage-devel |
31601366 JP |
59 | BuildRequires: xorg-lib-libXext-devel >= 1.0.0 |
60 | BuildRequires: xorg-lib-libXinerama-devel >= 1.0.0 | |
61 | BuildRequires: xorg-lib-libXrandr-devel >= 1.2.0 | |
b297e630 | 62 | BuildRequires: xorg-lib-libXv-devel |
b297e630 JP |
63 | BuildRequires: xorg-lib-libxkbcommon-devel >= 0.3.0 |
64 | BuildRequires: xorg-proto-xproto-devel | |
f272a633 JP |
65 | BuildRequires: zimg-devel >= 2.9 |
66 | BuildRequires: zlib-devel | |
5d9fec95 | 67 | Requires: OpenAL >= 1.13 |
b297e630 | 68 | Requires: OpenGL |
5045f7e8 | 69 | Requires: alsa-lib >= 1.0.18 |
8a7befcf | 70 | %requires_eq_to ffmpeg-libs ffmpeg-devel |
5d9fec95 | 71 | Requires: lcms2 >= 2.6 |
f272a633 | 72 | Requires: libarchive >= 3.4.0 |
5d9fec95 JP |
73 | Requires: libass >= 0.12.1 |
74 | Requires: libbluray >= 0.3.0 | |
5045f7e8 | 75 | Requires: libcaca >= 0.99-0.beta18.1 |
f272a633 | 76 | Requires: libdrm >= 2.4.74 |
5d9fec95 JP |
77 | Requires: libdvdnav >= 4.2.0 |
78 | Requires: libdvdread >= 4.1.0 | |
c127dc6c | 79 | Requires: libplacebo >= 0.18.0 |
5045f7e8 JP |
80 | Requires: libva >= 1.4.0 |
81 | Requires: libva-glx >= 1.4.0 | |
5d9fec95 JP |
82 | Requires: libvdpau >= 0.2 |
83 | Requires: pulseaudio-libs >= 1.0 | |
f272a633 | 84 | Requires: rubberband-libs >= 1.8.0 |
220e5582 | 85 | Requires: shaderc >= 2019.0 |
f272a633 | 86 | Requires: vapoursynth >= 24 |
8a7befcf | 87 | Requires: wayland >= 1.15.0 |
31601366 JP |
88 | Requires: xorg-lib-libX11 >= 1.0.0 |
89 | Requires: xorg-lib-libXScrnSaver >= 1.0.0 | |
90 | Requires: xorg-lib-libXext >= 1.0.0 | |
91 | Requires: xorg-lib-libXinerama >= 1.0.0 | |
92 | Requires: xorg-lib-libXrandr >= 1.2.0 | |
5d9fec95 | 93 | Requires: xorg-lib-libxkbcommon >= 0.3.0 |
f272a633 | 94 | Requires: zimg >= 2.9 |
20a45907 | 95 | Suggests: youtube-dl >= 2:20150223 |
b297e630 JP |
96 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
97 | ||
98 | %define _noautoreqdep libGL.so.1 libGLU.so.1 | |
99 | ||
100 | %description | |
292eac8e | 101 | Movie player based on MPlayer and mplayer2. |
b297e630 | 102 | |
c1eb0652 JB |
103 | %description -l pl.UTF-8 |
104 | Odtwarzacz filmów oparty na projektach MPlayer i mplayer2. | |
105 | ||
d297c06d | 106 | %package client-libs |
e386ece9 | 107 | Summary: Client library for controlling mpv |
c1eb0652 JB |
108 | Summary(pl.UTF-8): Biblioteka kliencka do sterowania odtwarzaczem mpv |
109 | Group: Libraries | |
d297c06d JP |
110 | |
111 | %description client-libs | |
112 | Client library for controlling mpv. | |
113 | ||
c1eb0652 JB |
114 | %description client-libs -l pl.UTF-8 |
115 | Biblioteka kliencka do sterowania odtwarzaczem mpv. | |
116 | ||
d297c06d | 117 | %package client-devel |
e386ece9 | 118 | Summary: Development files for mpv client library |
c1eb0652 | 119 | Summary(pl.UTF-8): Pliki programistyczne biblioteki klienckiej mpv |
e386ece9 JP |
120 | Group: Development/Libraries |
121 | Requires: %{name}-client-libs = %{version}-%{release} | |
d297c06d JP |
122 | |
123 | %description client-devel | |
124 | Development files for mpv client library. | |
125 | ||
c1eb0652 JB |
126 | %description client-devel -l pl.UTF-8 |
127 | Pliki programistyczne biblioteki klienckiej mpv. | |
128 | ||
f272a633 JP |
129 | %package -n bash-completion-mpv |
130 | Summary: Bash completion for mpv | |
131 | Summary(pl.UTF-8): Dopełnianie parametrów mpv dla powłoki Bash | |
132 | Group: Applications/Shells | |
133 | Requires: %{name} = %{version}-%{release} | |
134 | Requires: bash-completion >= 2.0 | |
135 | ||
136 | %description -n bash-completion-mpv | |
137 | Bash completion for mpv. | |
138 | ||
139 | %description -n bash-completion-mpv -l pl.UTF-8 | |
140 | Dopełnianie parametrów mpv dla powłoki Bash. | |
141 | ||
d297c06d | 142 | %package -n zsh-completion-mpv |
c1eb0652 JB |
143 | Summary: ZSH completion for mpv |
144 | Summary(pl.UTF-8): Dopełnianie parametrów mpv dla powłoki ZSH | |
e386ece9 JP |
145 | Group: Applications/Shells |
146 | Requires: %{name} = %{version}-%{release} | |
d297c06d JP |
147 | |
148 | %description -n zsh-completion-mpv | |
c1eb0652 JB |
149 | ZSH completion for mpv. |
150 | ||
151 | %description -n zsh-completion-mpv -l pl.UTF-8 | |
152 | Dopełnianie parametrów mpv dla powłoki ZSH. | |
d297c06d | 153 | |
b297e630 JP |
154 | %prep |
155 | %setup -q | |
d297c06d | 156 | %patch0 -p1 |
3f336c4f | 157 | %patch1 -p1 |
c914af07 | 158 | %patch2 -p1 |
b297e630 JP |
159 | |
160 | %build | |
4d3f4bbb | 161 | %waf configure \ |
b297e630 JP |
162 | --prefix=%{_prefix} \ |
163 | --bindir=%{_bindir} \ | |
164 | --confdir=%{_sysconfdir}/mpv \ | |
165 | --libdir=%{_libdir} \ | |
166 | --datadir=%{_datadir} \ | |
167 | --mandir=%{_mandir} \ | |
168 | --disable-debug-build \ | |
169 | --enable-alsa \ | |
b297e630 JP |
170 | --enable-caca \ |
171 | --enable-cdda \ | |
4c185ee1 | 172 | --enable-cplugins \ |
b297e630 JP |
173 | --enable-dvb \ |
174 | --enable-dvbin \ | |
175 | --enable-dvdnav \ | |
b297e630 JP |
176 | --enable-gl-wayland \ |
177 | --enable-gl-x11 \ | |
178 | --enable-iconv \ | |
179 | --enable-jack \ | |
b297e630 | 180 | --enable-jpeg \ |
b297e630 JP |
181 | --enable-lcms2 \ |
182 | --enable-libass \ | |
d297c06d JP |
183 | --enable-libass-osd \ |
184 | --enable-libavdevice \ | |
b297e630 | 185 | --enable-libbluray \ |
d297c06d | 186 | --enable-libmpv-shared \ |
c127dc6c | 187 | --enable-libplacebo \ |
b297e630 | 188 | --enable-libsmbclient \ |
b297e630 JP |
189 | --enable-openal \ |
190 | --enable-oss-audio \ | |
b297e630 | 191 | --enable-pulse \ |
9da63119 | 192 | --enable-sdl2 \ |
3f336c4f | 193 | --enable-shaderc \ |
a33f39f8 | 194 | --enable-uchardet \ |
b297e630 | 195 | --enable-vaapi \ |
b297e630 | 196 | --enable-vdpau \ |
d297c06d | 197 | --enable-vdpau-gl-x11 \ |
d297c06d | 198 | --enable-wayland \ |
b297e630 | 199 | --enable-x11 \ |
d297c06d | 200 | --enable-xv \ |
e386ece9 | 201 | --lua=51pld \ |
f272a633 JP |
202 | --bashdir=%{bash_compdir} \ |
203 | --zshdir=%{zsh_compdir} | |
292eac8e | 204 | |
4d3f4bbb | 205 | %waf build -v |
b297e630 JP |
206 | |
207 | %install | |
208 | rm -rf $RPM_BUILD_ROOT | |
209 | ||
4d3f4bbb | 210 | %waf install --destdir=$RPM_BUILD_ROOT |
b297e630 | 211 | |
4084bdb9 | 212 | install -d $RPM_BUILD_ROOT%{_sysconfdir}/mpv |
e386ece9 | 213 | cp -p %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/mpv |
4084bdb9 | 214 | |
a68f52ba JP |
215 | %{__rm} -r $RPM_BUILD_ROOT%{_docdir} |
216 | ||
b297e630 JP |
217 | %clean |
218 | rm -rf $RPM_BUILD_ROOT | |
219 | ||
1a8f2eea ER |
220 | %post client-libs -p /sbin/ldconfig |
221 | %postun client-libs -p /sbin/ldconfig | |
222 | ||
b297e630 JP |
223 | %files |
224 | %defattr(644,root,root,755) | |
6ee6242b | 225 | %doc README.md RELEASE_NOTES etc/input.conf etc/mplayer-input.conf etc/mpv.conf etc/restore-old-bindings.conf |
b297e630 | 226 | %dir %{_sysconfdir}/mpv |
1a8f2eea | 227 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/mpv/encoding-profiles.conf |
4084bdb9 | 228 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/mpv/mpv.conf |
b297e630 JP |
229 | %attr(755,root,root) %{_bindir}/%{name} |
230 | %{_desktopdir}/mpv.desktop | |
231 | %{_iconsdir}/hicolor/*/apps/mpv.png | |
2d1f1cf1 | 232 | %{_iconsdir}/hicolor/scalable/apps/mpv.svg |
0ea238bf | 233 | %{_iconsdir}/hicolor/symbolic/apps/mpv-symbolic.svg |
b297e630 | 234 | %{_mandir}/man1/mpv.1* |
d297c06d JP |
235 | |
236 | %files client-libs | |
237 | %defattr(644,root,root,755) | |
238 | %attr(755,root,root) %{_libdir}/libmpv.so.*.*.* | |
239 | %attr(755,root,root) %ghost %{_libdir}/libmpv.so.1 | |
240 | ||
241 | %files client-devel | |
242 | %defattr(644,root,root,755) | |
243 | %attr(755,root,root) %{_libdir}/libmpv.so | |
244 | %{_includedir}/mpv | |
245 | %{_pkgconfigdir}/mpv.pc | |
246 | ||
f272a633 JP |
247 | %files -n bash-completion-mpv |
248 | %defattr(644,root,root,755) | |
249 | %{bash_compdir}/mpv | |
250 | ||
d297c06d JP |
251 | %files -n zsh-completion-mpv |
252 | %defattr(644,root,root,755) | |
f272a633 | 253 | %{zsh_compdir}/_mpv |