commit 5ddb06ef1d4d67e2f457d3b35637ae6ddcf27bdb
Author: Richard Shaw <hobbes1069(a)gmail.com>
Date: Tue Oct 3 09:46:49 2017 -0500
Add appdata file.
avidemux.spec | 11 +++++++++++
avidemux2.appdata.xml | 28 ++++++++++++++++++++++++++++
2 files changed, 39 insertions(+)
---
diff --git a/avidemux.spec b/avidemux.spec
index 87164e6..fb3a7dd 100644
--- a/avidemux.spec
+++ b/avidemux.spec
@@ -12,6 +12,7 @@ License: GPLv2+
URL:
http://www.avidemux.org
Source0:
http://downloads.sourceforge.net/%{name}/%{name}_%{version}.tar.gz
Source1: avidemux-qt.desktop
+Source2: avidemux2.appdata.xml
Patch0: avidemux-pow10f.patch
@@ -26,6 +27,7 @@ BuildRequires: desktop-file-utils
BuildRequires: pkgconfig
BuildRequires: sqlite-devel
BuildRequires: bzip2
+BuildRequires: libappstream-glib
# Libraries
BuildRequires: yasm-devel
@@ -226,6 +228,10 @@ desktop-file-install --vendor rpmfusion \
--dir %{buildroot}%{_datadir}/applications \
%{SOURCE1}
+# Install appdata file
+mkdir -p %{buildroot}%{_datadir}/metainfo
+install -pm 0644 %{SOURCE2} %{buildroot}%{_datadir}/metainfo/
+
# Install icons
install -pDm 0644 avidemux/gtk/ADM_userInterfaces/glade/main/avidemux_icon_small.png \
%{buildroot}%{_datadir}/icons/hicolor/48x48/apps/avidemux.png
@@ -235,6 +241,10 @@ install -pDm 0644 avidemux_icon.png \
# Fix library permissions
find %{buildroot}%{_libdir} -type f -name "*.so.*" -exec chmod 0755 {} \;
+%check
+appstream-util validate-relax --nonet \
+ %{buildroot}%{_datadir}/metainfo/*.appdata.xml
+
%post libs -p /sbin/ldconfig
@@ -282,6 +292,7 @@ fi
%{_libdir}/libADM_UIQT*.so
%{_libdir}/libADM_render6_QT5.so
%{_datadir}/applications/rpmfusion-avidemux-qt.desktop
+%{_datadir}/metainfo/*.appdata.xml
# QT plugins
%{_libdir}/ADM_plugins6/videoEncoders/qt5/
%{_libdir}/ADM_plugins6/videoFilters/qt5/
diff --git a/avidemux2.appdata.xml b/avidemux2.appdata.xml
new file mode 100644
index 0000000..57cc873
--- /dev/null
+++ b/avidemux2.appdata.xml
@@ -0,0 +1,28 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!-- Copyright 2017 Richard Shaw -->
+<component type="desktop-application">
+ <id>avidemux-gtk.desktop</id>
+ <metadata_license>CC0</metadata_license>
+ <name>Avidemux</name>
+ <summary>Graphical video editing and transcoding tool</summary>
+ <description>
+ <p>
+ Avidemux is a free video editor designed for simple cutting, filtering and
encoding tasks. It supports many file types, including AVI, DVD compatible MPEG files, MP4
and ASF, using a variety of codecs. Tasks can be automated using projects, job queue and
powerful scripting capabilities.
+ </p>
+ </description>
+ <categories>
+ <category>AudioVideo</category>
+ <category>AudioVideoEditing</category>
+ <category>Video</category>
+ </categories>
+ <url
type="homepage">https://www.avidemux.org/</url>
+ <provides>
+ <binary>avidemux2_gtk</binary>
+ </provides>
+ <project_license>GPL-2.0+</project_license>
+ <update_contact>Avidemux team --
avidemux.org/smif/</update_contact>
+ <screenshots>
+ <screenshot
type="default">http://fixounet.free.fr/avidemux/index_files/screenshot1.png</screenshot>
+ <screenshot
type="default">http://fixounet.free.fr/avidemux/index_files/screenshot2.png</screenshot>
+ </screenshots>
+</component>