commit 38377937120351d845b99baa1f6d4dcf7ddba44a
Author: Mohamed El Morabity <melmorabity(a)fedoraproject.org>
Date: Tue Jan 31 11:42:48 2023 +0100
- Update to 20.3.0
- Add AppStream metadata
- Switch to SPDX license identifiers
.gitignore | 1 +
kodi-pvr-njoy.metainfo.xml | 11 +++++++++++
kodi-pvr-njoy.spec | 27 +++++++++++++++++++++------
sources | 2 +-
4 files changed, 34 insertions(+), 7 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index 32bfd1c..f6cbf16 100644
--- a/.gitignore
+++ b/.gitignore
@@ -6,3 +6,4 @@
/pvr.njoy-7.0.0.tar.gz
/pvr.njoy-7.1.0.tar.gz
/pvr.njoy-7.1.1.tar.gz
+/pvr.njoy-20.3.0.tar.gz
diff --git a/kodi-pvr-njoy.metainfo.xml b/kodi-pvr-njoy.metainfo.xml
new file mode 100644
index 0000000..f163789
--- /dev/null
+++ b/kodi-pvr-njoy.metainfo.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<component type="addon">
+ <id>kodi-pvr-njoy</id>
+ <extends>kodi.desktop</extends>
+ <name>Njoy N7 PVR Client</name>
+ <summary>Njoy N7 PVR Client</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-pvr-njoy.spec b/kodi-pvr-njoy.spec
index 05a0684..9cabcba 100644
--- a/kodi-pvr-njoy.spec
+++ b/kodi-pvr-njoy.spec
@@ -1,25 +1,27 @@
%global kodi_addon pvr.njoy
-%global kodi_version 19.0
-%global kodi_codename Matrix
+%global kodi_version 20
+%global kodi_codename Nexus
Name: kodi-%(tr "." "-" <<<%{kodi_addon})
# Use Epoch to manage upgrades from older upstream
# (
https://github.com/opdenkamp/xbmc-pvr-addons/)
Epoch: 1
-Version: 7.1.1
-Release: 4%{?dist}
+Version: 20.3.0
+Release: 1%{?dist}
Summary: NJOY PVR for Kodi
-License: GPLv2+
+License: GPL-2.0-or-later
URL:
https://github.com/kodi-pvr/%{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(tinyxml)
Requires: kodi >= %{kodi_version}
-ExcludeArch: %{power64} ppc64le
+ExcludeArch: %{power64}
%description
%{summary}.
@@ -37,15 +39,28 @@ ExcludeArch: %{power64} ppc64le
%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 %{kodi_addon}/changelog.txt
%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> - 1:20.3.0-1
+- Update to 20.3.0
+- Add AppStream metadata
+- Switch to SPDX license identifiers
+
* Sun Aug 07 2022 RPM Fusion Release Engineering <sergiomb(a)rpmfusion.org> -
1:7.1.1-4
- Rebuilt for
https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild and ffmpeg
5.1
diff --git a/sources b/sources
index 4d806af..13cbc5d 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-SHA512 (pvr.njoy-7.1.1.tar.gz) =
fceeda6d4f967f250ffbb5dc2a4d0cd9248cf61447ccbeb6152f5812186fcca2d41222038ffd53f7d7361ca06fe92599d7eb44d0850e03e9605d33e89086a201
+SHA512 (pvr.njoy-20.3.0.tar.gz) =
6477fbfe680a56328a8223bd575b12c7b48732fb13d473bff1e69ab843c83d647f27428a7b641aceb991fa5acd947dd781164a000fe7b4005cf76a5f4397b40b