commit 468ccaade9c50de46c517368d889025ce0342735
Author: Mohamed El Morabity <melmorabity(a)fedoraproject.org>
Date: Sun Jan 29 21:48:13 2023 +0100
- Update to 20.6.0
- Add AppStream metadata
- Switch to SPDX license identifiers
.gitignore | 1 +
kodi-pvr-demo.metainfo.xml | 11 +++++++++++
kodi-pvr-demo.spec | 31 +++++++++++++++++++++++--------
sources | 2 +-
4 files changed, 36 insertions(+), 9 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index 42fc7e3..d39edc6 100644
--- a/.gitignore
+++ b/.gitignore
@@ -6,3 +6,4 @@
/pvr.demo-7.0.0.tar.gz
/pvr.demo-7.1.0.tar.gz
/pvr.demo-7.1.4.tar.gz
+/pvr.demo-20.5.0.tar.gz
diff --git a/kodi-pvr-demo.metainfo.xml b/kodi-pvr-demo.metainfo.xml
new file mode 100644
index 0000000..63e8e25
--- /dev/null
+++ b/kodi-pvr-demo.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>Demo PVR Client</name>
+ <summary>Demo PVR Client</summary>
+ <url
type="homepage">https://github.com/kodi-pvr/pvr.demo/</ur...
+ <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-demo.spec b/kodi-pvr-demo.spec
index 2176825..863b90e 100644
--- a/kodi-pvr-demo.spec
+++ b/kodi-pvr-demo.spec
@@ -1,25 +1,27 @@
%global kodi_addon pvr.demo
-%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.4
-Release: 4%{?dist}
+Version: 20.5.0
+Release: 1%{?dist}
Summary: Demo 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: pkgconfig(tinyxml)
+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
+%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.5.0-1
+- Update to 20.5.0
+- Add AppStream metadata
+- Switch to SPDX license identifiers
+
* Sun Aug 07 2022 RPM Fusion Release Engineering <sergiomb(a)rpmfusion.org> -
1:7.1.4-4
- Rebuilt for
https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild and ffmpeg
5.1
diff --git a/sources b/sources
index c7ccefc..5ce3aab 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-SHA512 (pvr.demo-7.1.4.tar.gz) =
7f1468727024cbe627c2e0608e02815877593f23b9592d6caaadf2147dbc48b09f0405db5b67de9277cef362715de68d2099152f5fc9fc137b67bbc34f3a1e87
+SHA512 (pvr.demo-20.5.0.tar.gz) =
0b3e0b624d11ac9ac1090c29ef63618b2c2d7f4dae89275462605752d3cde27735558ed0e4cdbae9c1417ec87b646bf533b535c4489d2272d7a8719504b01f20