From b21ae95b141b7c9c22e6d596ccf4e7c9ce479869 Mon Sep 17 00:00:00 2001 From: Vitaly Zaitsev Date: Tue, 6 Sep 2022 18:43:18 +0200 Subject: [PATCH] Added XDG metainfo manifest. --- mpv.metainfo.xml | 30 ++++++++++++++++++++++++++++++ mpv.spec | 5 +++++ 2 files changed, 35 insertions(+) create mode 100644 mpv.metainfo.xml diff --git a/mpv.metainfo.xml b/mpv.metainfo.xml new file mode 100644 index 0000000..e76540f --- /dev/null +++ b/mpv.metainfo.xml @@ -0,0 +1,30 @@ + + + io.mpv.Mpv + mpv + A free, open source, and cross-platform media player + +

mpv is a free (as in freedom) media player for the command line. It supports a wide variety of media file formats, audio and video codecs, and subtitle types.

+

mpv has an OpenGL, Vulkan, and D3D11 based video output that is capable of many features loved by videophiles, such as video scaling with popular high quality algorithms, color management, frame timing, interpolation, HDR, and more.

+

While mpv strives for minimalism and provides no real GUI, it has a small controller on top of the video for basic control.

+

mpv can leverage most hardware decoding APIs on all platforms. Hardware decoding can be enabled at runtime on demand.

+

Powerful scripting capabilities can make the player do almost anything. There is a large selection of user scripts on the wiki.

+

A straightforward C API was designed from the ground up to make mpv usable as a library and facilitate easy integration into other applications.

+
+ CC0-1.0 + GPL-2.0+ AND LGPL-2.0-or-later + mpv.io + mpv.desktop + mpv + + + + https://mpv.io/images/mpv-screenshot-34cd36ae.jpg + Main window + + + https://mpv.io/ + https://github.com/mpv-player/mpv/issues + https://github.com/mpv-player/mpv/wiki/FAQ + https://mpv.io/manual/stable +
diff --git a/mpv.spec b/mpv.spec index 9d9dd1c..6716edd 100644 --- a/mpv.spec +++ b/mpv.spec @@ -6,6 +6,7 @@ License: GPLv2+ and LGPLv2+ Summary: Movie player playing most video formats and DVDs URL: https://%{name}.io/ Source0: https://github.com/%{name}-player/%{name}/archive/v%{version}/%{name}-%{version}.tar.gz +Source1: %{name}.metainfo.xml BuildRequires: desktop-file-utils BuildRequires: gcc @@ -119,8 +120,10 @@ sed -e "s|c_preproc.standard_includes.append('/usr/local/include')|c_preproc.sta %install %{_bindir}/waf install --destdir=%{buildroot} +install -D -m 0644 -p %{SOURCE1} %{buildroot}%{_metainfodir}/%{name}.metainfo.xml %check +appstream-util validate-relax --nonet %{buildroot}%{_metainfodir}/%{name}.metainfo.xml desktop-file-validate %{buildroot}%{_datadir}/applications/%{name}.desktop %files @@ -137,6 +140,7 @@ desktop-file-validate %{buildroot}%{_datadir}/applications/%{name}.desktop %dir %{_datadir}/zsh/site-functions/ %{_datadir}/zsh/site-functions/_%{name} %{_mandir}/man1/%{name}.* +%{_metainfodir}/%{name}.metainfo.xml %dir %{_sysconfdir}/%{name}/ %config(noreplace) %{_sysconfdir}/%{name}/encoding-profiles.conf @@ -152,6 +156,7 @@ desktop-file-validate %{buildroot}%{_datadir}/applications/%{name}.desktop %changelog * Mon Sep 05 2022 Vitaly Zaitsev - 0.34.1-11 - Moved to Fedora. +- Added XDG metainfo manifest. * Sun Sep 04 2022 Leigh Scott - 0.34.1-10 - Add requires ffmpeg-libs