commit 55d891ca6d799b68171180efe4c7bc709c75d35e
Author: Mohamed El Morabity <melmorabity(a)fedoraproject.org>
Date: Tue Jan 31 12:23:29 2023 +0100
- Update to 20.4.2
- Add AppStream metadata
- Switch to SPDX license identifiers
.gitignore | 1 +
kodi-pvr-vuplus.metainfo.xml | 11 +++++++++++
kodi-pvr-vuplus.spec | 31 +++++++++++++++++++++----------
sources | 2 +-
4 files changed, 34 insertions(+), 11 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index 9f86655..53e3b9d 100644
--- a/.gitignore
+++ b/.gitignore
@@ -7,3 +7,4 @@
/pvr.vuplus-7.1.0.tar.gz
/pvr.vuplus-7.3.1.tar.gz
/pvr.vuplus-7.4.5.tar.gz
+/pvr.vuplus-20.4.2.tar.gz
diff --git a/kodi-pvr-vuplus.metainfo.xml b/kodi-pvr-vuplus.metainfo.xml
new file mode 100644
index 0000000..f328b11
--- /dev/null
+++ b/kodi-pvr-vuplus.metainfo.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<component type="addon">
+ <id>kodi-pvr-vuplus</id>
+ <extends>kodi.desktop</extends>
+ <name>Enigma2 Client</name>
+ <summary>Kodi's frontend for Enigma2 based set-top boxes</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-vuplus.spec b/kodi-pvr-vuplus.spec
index c1e68d9..d423f1f 100644
--- a/kodi-pvr-vuplus.spec
+++ b/kodi-pvr-vuplus.spec
@@ -1,26 +1,28 @@
%global kodi_addon pvr.vuplus
-%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.4.5
-Release: 4%{?dist}
+Version: 20.4.2
+Release: 1%{?dist}
Summary: Vu+ 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(nlohmann_json)
+BuildRequires: json-devel
+BuildRequires: libappstream-glib
BuildRequires: pkgconfig(tinyxml)
Requires: kodi >= %{kodi_version}
-ExcludeArch: %{power64} ppc64le
+ExcludeArch: %{power64}
%description
%{summary}.
@@ -29,9 +31,6 @@ ExcludeArch: %{power64} ppc64le
%prep
%autosetup -n %{kodi_addon}-%{version}-%{kodi_codename}
-# Fix permissions
-# find . -name "*.cpp" -exec chmod 0644 {} \;
-
%build
%cmake3
@@ -40,6 +39,12 @@ 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
@@ -47,9 +52,15 @@ ExcludeArch: %{power64} ppc64le
%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.2-1
+- Update to 20.4.2
+- Add AppStream metadata
+- Switch to SPDX license identifiers
+
* Sun Aug 07 2022 RPM Fusion Release Engineering <sergiomb(a)rpmfusion.org> -
1:7.4.5-4
- Rebuilt for
https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild and ffmpeg
5.1
diff --git a/sources b/sources
index 39f9887..67dc29e 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-SHA512 (pvr.vuplus-7.4.5.tar.gz) =
04ba9ab1b7aee4418c305538ac880aae80c1523fed10d7104dce8a294c072d6be87469016fc673e4d54cc1faaab0074cd15f6edf3207ad88a962d4a41844985b
+SHA512 (pvr.vuplus-20.4.2.tar.gz) =
760a683d3f71d363b05838ddb99fe45fc5de51e2a16a4c9ff61f8152f78320f24b216331d7a9005710e65c2fb36c530da9cea7379211143a0420471f23e1ba0c