commit 6dd8528041d412a0abc58ed11f5f409af4d5d22d
Author: Mohamed El Morabity <melmorabity(a)fedoraproject.org>
Date: Sun Jan 29 21:05:00 2023 +0100
- Update to 20.1.3
- Add AppStream metadata
- Switch to SPDX license identifiers
.gitignore | 1 +
kodi-peripheral-joystick.metainfo.xml | 11 +++++++++++
kodi-peripheral-joystick.spec | 27 +++++++++++++++++++++------
sources | 2 +-
4 files changed, 34 insertions(+), 7 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index 7f4d047..05eaa30 100644
--- a/.gitignore
+++ b/.gitignore
@@ -4,3 +4,4 @@
/peripheral.joystick-1.6.0.tar.gz
/peripheral.joystick-1.7.1.tar.gz
/peripheral.joystick-1.7.2.tar.gz
+/peripheral.joystick-20.1.3.tar.gz
diff --git a/kodi-peripheral-joystick.metainfo.xml
b/kodi-peripheral-joystick.metainfo.xml
new file mode 100644
index 0000000..7cc1609
--- /dev/null
+++ b/kodi-peripheral-joystick.metainfo.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<component type="addon">
+ <id>kodi-peripheral-joystick</id>
+ <extends>kodi.desktop</extends>
+ <name>Joystick Support</name>
+ <summary>Kodi Joystick Library</summary>
+ <url
type="homepage">https://github.com/xbmc/peripheral.joystick/...
+ <metadata_license>CC0-1.0</metadata_license>
+ <project_license>GPL-2.0-or-later</project_license>
+ <update_contact>melmorabity(a)fedoraproject.org</update_contact>
+</component>
diff --git a/kodi-peripheral-joystick.spec b/kodi-peripheral-joystick.spec
index 463f908..79b2517 100644
--- a/kodi-peripheral-joystick.spec
+++ b/kodi-peripheral-joystick.spec
@@ -1,23 +1,25 @@
%global kodi_addon peripheral.joystick
-%global kodi_codename Matrix
-%global kodi_version 19.0
+%global kodi_codename Nexus
+%global kodi_version 20
Name: kodi-peripheral-joystick
-Version: 1.7.2
-Release: 4%{?dist}
+Version: 20.1.3
+Release: 1%{?dist}
Summary: Joystick Peripheral addon for Kodi
-License: GPLv2+
+License: GPL-2.0-or-later
URL:
https://github.com/xbmc/%{kodi_addon}/
Source0:
%{url}/archive/%{version}-%{kodi_codename}/%{kodi_addon}-%{version}.tar.gz
+Source1: %{name}.metainfo.xml
BuildRequires: cmake3
BuildRequires: gcc-c++
BuildRequires: kodi-devel >= %{kodi_version}
+BuildRequires: libappstream-glib
BuildRequires: pkgconfig(libudev)
BuildRequires: pkgconfig(tinyxml)
Requires: kodi >= %{kodi_version}
-ExcludeArch: %{power64} ppc64le
+ExcludeArch: %{power64}
%description
Joystick Peripheral Addon for Kodi.
@@ -35,15 +37,28 @@ Joystick Peripheral Addon for Kodi.
%install
%cmake3_install
+# Install AppData file
+install -Dpm 0644 %{SOURCE1} $RPM_BUILD_ROOT%{_metainfodir}/%{name}.metainfo.xml
+
+
+%check
+appstream-util validate-relax --nonet
$RPM_BUILD_ROOT%{_metainfodir}/%{name}.metainfo.xml
+
%files
%doc README.md docs/CONTRIBUTING.md
%license LICENSE.md
%{_libdir}/kodi/addons/%{kodi_addon}/
%{_datadir}/kodi/addons/%{kodi_addon}/
+%{_metainfodir}/%{name}.metainfo.xml
%changelog
+* Sun Jan 29 2023 Mohamed El Morabity <melmorabity(a)fedoraproject.org> - 20.1.3-1
+- Update to 20.1.3
+- Add AppStream metadata
+- Switch to SPDX license identifiers
+
* Sun Aug 07 2022 RPM Fusion Release Engineering <sergiomb(a)rpmfusion.org> -
1.7.2-4
- Rebuilt for
https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild and ffmpeg
5.1
diff --git a/sources b/sources
index a208eb7..5fca1a0 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-SHA512 (peripheral.joystick-1.7.2.tar.gz) =
d838f44281704e2bc7f3280f05b93347dd2e7a10b8e2b31efdc34b8994723f6aa6ca643fce01f515003caf7d85abbd3eed6a3833e6adf88b9fb22184d2c2e1ae
+SHA512 (peripheral.joystick-20.1.3.tar.gz) =
c63afdc787432745e00ea73c929762cc790963bacd878f1ec2a8461a7be7d28f79c3fe32e9638c99e0262be78e956c92771cdafa565bd657de3deca111ce429d