commit 37daf70783c8a2b8aecac08721cb8a928c8f82d7
Author: Mohamed El Morabity <melmorabity(a)fedoraproject.org>
Date: Tue Jan 31 11:41:37 2023 +0100
- Update to 20.4.0
- Add AppStream metadata
- Switch to SPDX license identifiers
.gitignore | 1 +
kodi-pvr-nextpvr.metainfo.xml | 11 +++++++++++
kodi-pvr-nextpvr.spec | 27 +++++++++++++++++++++------
sources | 2 +-
4 files changed, 34 insertions(+), 7 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index 45bcaf7..cc6b960 100644
--- a/.gitignore
+++ b/.gitignore
@@ -7,3 +7,4 @@
/pvr.nextpvr-8.0.0.tar.gz
/pvr.nextpvr-8.2.0.tar.gz
/pvr.nextpvr-8.2.5.tar.gz
+/pvr.nextpvr-20.4.0.tar.gz
diff --git a/kodi-pvr-nextpvr.metainfo.xml b/kodi-pvr-nextpvr.metainfo.xml
new file mode 100644
index 0000000..935d407
--- /dev/null
+++ b/kodi-pvr-nextpvr.metainfo.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<component type="addon">
+ <id>kodi-pvr-nextpvr</id>
+ <extends>kodi.desktop</extends>
+ <name>NextPVR PVR Client</name>
+ <summary>Kodi frontend for the NextPVR</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-nextpvr.spec b/kodi-pvr-nextpvr.spec
index bab69a1..54cfb49 100644
--- a/kodi-pvr-nextpvr.spec
+++ b/kodi-pvr-nextpvr.spec
@@ -1,25 +1,27 @@
%global kodi_addon pvr.nextpvr
-%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: 8.2.5
-Release: 4%{?dist}
+Version: 20.4.0
+Release: 1%{?dist}
Summary: NextPVR 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(tinyxml2)
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 src/README %{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.4.0-1
+- Update to 20.4.0
+- Add AppStream metadata
+- Switch to SPDX license identifiers
+
* Sun Aug 07 2022 RPM Fusion Release Engineering <sergiomb(a)rpmfusion.org> -
1:8.2.5-4
- Rebuilt for
https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild and ffmpeg
5.1
diff --git a/sources b/sources
index 9df4eeb..9040da5 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-SHA512 (pvr.nextpvr-8.2.5.tar.gz) =
7ff620339c03a7519d2ea01be66a18df7a800ddc7e997fef2826d956565e67b8e5ce95d959409b7a476df39947a0b430de91d7e34d8163718cba0f9f3fd7ed24
+SHA512 (pvr.nextpvr-20.4.0.tar.gz) =
0965dc841b84b3aa7681d4764053c53cc128e50ede67faf136de2ef24ae4402a5f696a757d1f87ff7d08bc0c5b50b058df799af968dbc5840f43396b5f97507c