]> git.pld-linux.org Git - packages/mpv.git/blame - mpv.spec
bump required pipewire version
[packages/mpv.git] / mpv.spec
CommitLineData
2299b04f
JP
1#
2# Conditional build:
3%bcond_without caca # CACA
4%bcond_without dvdnav # dvdnav support
236ade95 5%bcond_without js # JavaScript scripting support
2299b04f
JP
6%bcond_without libplacebo # libplacebo support
7%bcond_without rubberband # librubberband support
2299b04f
JP
8%bcond_without shaderc # libshaderc SPIR-V compiler
9%bcond_without vapoursynth # VapourSynth filter bridge
10%bcond_without zimg # libzimg support (high quality software scaler)
11
b297e630 12Summary: Movie player based on MPlayer and mplayer2
c1eb0652 13Summary(pl.UTF-8): Odtwarzacz filmów oparty na projektach MPlayer i mplayer2
b297e630 14Name: mpv
7588d009
JP
15Version: 0.36.0
16Release: 1
236ade95 17License: GPL v2+
b297e630 18Group: Applications/Multimedia
c1eb0652 19#Source0Download: http://github.com/mpv-player/mpv/releases
42c8993b 20Source0: https://github.com/mpv-player/mpv/archive/v%{version}/%{name}-%{version}.tar.gz
7588d009 21# Source0-md5: 3ac8bb1fec1c09293a574e615446bb3b
4084bdb9 22Source1: %{name}.conf
b297e630 23URL: http://mpv.io/
77c81a17 24BuildRequires: EGL-devel
1b335768 25BuildRequires: Mesa-libgbm-devel >= 17.1.0
b297e630
JP
26BuildRequires: OpenAL-devel >= 1.13
27BuildRequires: OpenGL-devel
9da63119 28BuildRequires: SDL2-devel
7588d009 29BuildRequires: Vulkan-Loader-devel >= 1.3.238
5045f7e8 30BuildRequires: alsa-lib-devel >= 1.0.18
682d5897 31BuildRequires: docutils
7588d009 32BuildRequires: ffmpeg-devel >= 4.4
b297e630 33BuildRequires: jack-audio-connection-kit-devel
d297c06d 34BuildRequires: lcms2-devel >= 2.6
f272a633 35BuildRequires: libarchive-devel >= 3.4.0
236ade95 36BuildRequires: libass-devel >= 0.12.2
b1242f3d 37%ifarch i386 i486 %{armv6}
308de4d0
JP
38BuildRequires: libatomic-devel
39%endif
5d9fec95 40BuildRequires: libbluray-devel >= 0.3.0
2299b04f 41%{?with_caca:BuildRequires: libcaca-devel >= 0.99-0.beta18.1}
b297e630 42BuildRequires: libcdio-paranoia-devel
1b335768 43BuildRequires: libdrm-devel >= 2.4.105
2299b04f 44%if %{with dvdnav}
b297e630
JP
45BuildRequires: libdvdnav-devel >= 4.2.0
46BuildRequires: libdvdread-devel >= 4.1.0
2299b04f 47%endif
b297e630 48BuildRequires: libjpeg-devel
1b335768 49%{?with_libplacebo:BuildRequires: libplacebo-devel >= 4.157.0}
5045f7e8
JP
50BuildRequires: libva-devel >= 1.4.0
51BuildRequires: libva-glx-devel >= 1.4.0
b297e630 52BuildRequires: libvdpau-devel >= 0.2
236ade95
JP
53BuildRequires: lua52-devel
54%{?with_js:BuildRequires: mujs-devel >= 1.0.0}
7588d009 55BuildRequires: nv-codec-headers >= 11.1.5.1
cce321b3 56BuildRequires: pipewire-devel >= 0.3.48
b297e630 57BuildRequires: pkgconfig
5045f7e8 58BuildRequires: pulseaudio-devel >= 1.0
fc836dc8 59BuildRequires: rpm-build >= 4.6
b1242f3d 60BuildRequires: rpmbuild(macros) >= 2.007
2299b04f
JP
61%{?with_rubberband:BuildRequires: rubberband-devel >= 1.8.0}
62%{?with_shaderc:BuildRequires: shaderc-devel >= 2019.0}
a33f39f8 63BuildRequires: uchardet-devel
2299b04f 64%{?with_vapoursynth:BuildRequires: vapoursynth-devel >= 24}
236ade95 65BuildRequires: waf >= 2.0.21
7588d009 66BuildRequires: wayland-devel >= 1.20.0
12311963 67BuildRequires: wayland-egl-devel
7588d009 68BuildRequires: wayland-protocols >= 1.32
31601366
JP
69BuildRequires: xorg-lib-libX11-devel >= 1.0.0
70BuildRequires: xorg-lib-libXScrnSaver-devel >= 1.0.0
b297e630 71BuildRequires: xorg-lib-libXdamage-devel
31601366
JP
72BuildRequires: xorg-lib-libXext-devel >= 1.0.0
73BuildRequires: xorg-lib-libXinerama-devel >= 1.0.0
1b335768 74BuildRequires: xorg-lib-libXpresent-devel >= 1.0.0
31601366 75BuildRequires: xorg-lib-libXrandr-devel >= 1.2.0
b297e630 76BuildRequires: xorg-lib-libXv-devel
b297e630
JP
77BuildRequires: xorg-lib-libxkbcommon-devel >= 0.3.0
78BuildRequires: xorg-proto-xproto-devel
7588d009 79%{?with_zimg:BuildRequires: zimg-devel >= 3.0.5}
f272a633 80BuildRequires: zlib-devel
88ee6beb
JP
81Requires(post,postun): desktop-file-utils
82Requires(post,postun): gtk-update-icon-cache
5d9fec95 83Requires: OpenAL >= 1.13
b297e630 84Requires: OpenGL
5045f7e8 85Requires: alsa-lib >= 1.0.18
88ee6beb 86Requires: hicolor-icon-theme
8a7befcf 87%requires_eq_to ffmpeg-libs ffmpeg-devel
5d9fec95 88Requires: lcms2 >= 2.6
f272a633 89Requires: libarchive >= 3.4.0
236ade95 90Requires: libass >= 0.12.2
5d9fec95 91Requires: libbluray >= 0.3.0
2299b04f 92%{?with_caca:Requires: libcaca >= 0.99-0.beta18.1}
1b335768 93Requires: libdrm >= 2.4.105
2299b04f 94%if %{with dvdnav}
5d9fec95
JP
95Requires: libdvdnav >= 4.2.0
96Requires: libdvdread >= 4.1.0
2299b04f 97%endif
cce321b3 98Requires: pipewire-libs >= 0.3.48
7588d009 99%{?with_libplacebo:%requires_ge_to libplacebo libplacebo-devel}
5045f7e8
JP
100Requires: libva >= 1.4.0
101Requires: libva-glx >= 1.4.0
5d9fec95 102Requires: libvdpau >= 0.2
236ade95 103%{?with_js:Requires: mujs >= 1.0.0}
5d9fec95 104Requires: pulseaudio-libs >= 1.0
2299b04f
JP
105%{?with_rubberband:Requires: rubberband-libs >= 1.8.0}
106%{?with_shaderc:Requires: shaderc >= 2019.0}
107%{?with_vapoursynth:Requires: vapoursynth >= 24}
8a7befcf 108Requires: wayland >= 1.15.0
31601366
JP
109Requires: xorg-lib-libX11 >= 1.0.0
110Requires: xorg-lib-libXScrnSaver >= 1.0.0
111Requires: xorg-lib-libXext >= 1.0.0
112Requires: xorg-lib-libXinerama >= 1.0.0
113Requires: xorg-lib-libXrandr >= 1.2.0
5d9fec95 114Requires: xorg-lib-libxkbcommon >= 0.3.0
7588d009 115%{?with_zimg:Requires: zimg >= 3.0.5}
80c75f4f 116Suggests: yt-dlp
b297e630
JP
117BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
118
b297e630 119%description
292eac8e 120Movie player based on MPlayer and mplayer2.
b297e630 121
c1eb0652
JB
122%description -l pl.UTF-8
123Odtwarzacz filmów oparty na projektach MPlayer i mplayer2.
124
d297c06d 125%package client-libs
e386ece9 126Summary: Client library for controlling mpv
c1eb0652
JB
127Summary(pl.UTF-8): Biblioteka kliencka do sterowania odtwarzaczem mpv
128Group: Libraries
d297c06d
JP
129
130%description client-libs
131Client library for controlling mpv.
132
c1eb0652
JB
133%description client-libs -l pl.UTF-8
134Biblioteka kliencka do sterowania odtwarzaczem mpv.
135
d297c06d 136%package client-devel
e386ece9 137Summary: Development files for mpv client library
c1eb0652 138Summary(pl.UTF-8): Pliki programistyczne biblioteki klienckiej mpv
e386ece9
JP
139Group: Development/Libraries
140Requires: %{name}-client-libs = %{version}-%{release}
d297c06d
JP
141
142%description client-devel
143Development files for mpv client library.
144
c1eb0652
JB
145%description client-devel -l pl.UTF-8
146Pliki programistyczne biblioteki klienckiej mpv.
147
f272a633
JP
148%package -n bash-completion-mpv
149Summary: Bash completion for mpv
150Summary(pl.UTF-8): Dopełnianie parametrów mpv dla powłoki Bash
151Group: Applications/Shells
152Requires: %{name} = %{version}-%{release}
7426782a 153Requires: bash-completion >= 1:2.0
fc836dc8 154BuildArch: noarch
f272a633
JP
155
156%description -n bash-completion-mpv
157Bash completion for mpv.
158
159%description -n bash-completion-mpv -l pl.UTF-8
160Dopełnianie parametrów mpv dla powłoki Bash.
161
d297c06d 162%package -n zsh-completion-mpv
c1eb0652
JB
163Summary: ZSH completion for mpv
164Summary(pl.UTF-8): Dopełnianie parametrów mpv dla powłoki ZSH
e386ece9
JP
165Group: Applications/Shells
166Requires: %{name} = %{version}-%{release}
fc836dc8 167BuildArch: noarch
d297c06d
JP
168
169%description -n zsh-completion-mpv
c1eb0652
JB
170ZSH completion for mpv.
171
172%description -n zsh-completion-mpv -l pl.UTF-8
173Dopełnianie parametrów mpv dla powłoki ZSH.
d297c06d 174
b297e630
JP
175%prep
176%setup -q
177
178%build
4d3f4bbb 179%waf configure \
e0cfc7f0
JB
180 --prefix=%{_prefix} \
181 --bindir=%{_bindir} \
182 --confdir=%{_sysconfdir}/mpv \
183 --libdir=%{_libdir} \
184 --datadir=%{_datadir} \
185 --mandir=%{_mandir} \
186 --disable-debug-build \
187 --enable-alsa \
188 %{__enable_disable caca} \
189 --enable-cdda \
190 --enable-cplugins \
191 --enable-dvb \
192 --enable-dvbin \
193 %{__enable_disable dvdnav} \
194 --enable-gl-wayland \
195 --enable-gl-x11 \
196 --enable-iconv \
197 --enable-jack \
198 %{__enable_disable js javascript} \
199 --enable-jpeg \
200 --enable-lcms2 \
201 --enable-libavdevice \
202 --enable-libbluray \
203 --enable-libmpv-shared \
204 %{__enable_disable libplacebo} \
205 %{__enable_disable rubberband} \
206 --enable-openal \
207 --enable-pulse \
208 --enable-sdl2 \
209 %{__enable_disable shaderc} \
210 --enable-uchardet \
211 --enable-vaapi \
212 %{__enable_disable vapoursynth} \
213 --enable-vdpau \
214 --enable-vdpau-gl-x11 \
215 --enable-wayland \
216 --enable-x11 \
217 --enable-xv \
218 %{__enable_disable zimg} \
219 --lua=52deb \
220 --bashdir=%{bash_compdir} \
221 --zshdir=%{zsh_compdir}
292eac8e 222
4d3f4bbb 223%waf build -v
b297e630
JP
224
225%install
226rm -rf $RPM_BUILD_ROOT
227
4d3f4bbb 228%waf install --destdir=$RPM_BUILD_ROOT
b297e630 229
4084bdb9 230install -d $RPM_BUILD_ROOT%{_sysconfdir}/mpv
e386ece9 231cp -p %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/mpv
4084bdb9 232
a68f52ba
JP
233%{__rm} -r $RPM_BUILD_ROOT%{_docdir}
234
b297e630
JP
235%clean
236rm -rf $RPM_BUILD_ROOT
237
88ee6beb
JP
238%post
239%update_desktop_database_post
240%update_icon_cache hicolor
241
242%postun
243%update_desktop_database_postun
244%update_icon_cache hicolor
245
1a8f2eea
ER
246%post client-libs -p /sbin/ldconfig
247%postun client-libs -p /sbin/ldconfig
248
b297e630
JP
249%files
250%defattr(644,root,root,755)
6ee6242b 251%doc README.md RELEASE_NOTES etc/input.conf etc/mplayer-input.conf etc/mpv.conf etc/restore-old-bindings.conf
b297e630 252%dir %{_sysconfdir}/mpv
1a8f2eea 253%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/mpv/encoding-profiles.conf
4084bdb9 254%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/mpv/mpv.conf
b297e630
JP
255%attr(755,root,root) %{_bindir}/%{name}
256%{_desktopdir}/mpv.desktop
257%{_iconsdir}/hicolor/*/apps/mpv.png
2d1f1cf1 258%{_iconsdir}/hicolor/scalable/apps/mpv.svg
0ea238bf 259%{_iconsdir}/hicolor/symbolic/apps/mpv-symbolic.svg
b297e630 260%{_mandir}/man1/mpv.1*
1b335768 261%{_datadir}/metainfo/mpv.metainfo.xml
d297c06d
JP
262
263%files client-libs
264%defattr(644,root,root,755)
265%attr(755,root,root) %{_libdir}/libmpv.so.*.*.*
1b335768 266%attr(755,root,root) %ghost %{_libdir}/libmpv.so.2
d297c06d
JP
267
268%files client-devel
269%defattr(644,root,root,755)
270%attr(755,root,root) %{_libdir}/libmpv.so
271%{_includedir}/mpv
272%{_pkgconfigdir}/mpv.pc
273
f272a633
JP
274%files -n bash-completion-mpv
275%defattr(644,root,root,755)
276%{bash_compdir}/mpv
277
d297c06d
JP
278%files -n zsh-completion-mpv
279%defattr(644,root,root,755)
f272a633 280%{zsh_compdir}/_mpv
This page took 0.558931 seconds and 4 git commands to generate.