commit 5f38f60a6734e8d2a5870347b64ae44827ac5b5a
Author: Mohamed El Morabity <melmorabity(a)fedoraproject.org>
Date: Sun Jan 29 22:05:32 2023 +0100
- Update to 20.4.0
- Add AppStream metadata
- Switch to SPDX license identifiers
.gitignore | 1 +
kodi-pvr-dvbviewer.metainfo.xml | 11 +++++++++++
kodi-pvr-dvbviewer.spec | 27 +++++++++++++++++++++------
sources | 2 +-
4 files changed, 34 insertions(+), 7 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e5ac9f7..cf6d47f 100644
--- a/.gitignore
+++ b/.gitignore
@@ -8,3 +8,4 @@
/pvr.dvbviewer-7.1.0.tar.gz
/pvr.dvbviewer-7.2.0.tar.gz
/pvr.dvbviewer-7.3.1.tar.gz
+/pvr.dvbviewer-20.4.0.tar.gz
diff --git a/kodi-pvr-dvbviewer.metainfo.xml b/kodi-pvr-dvbviewer.metainfo.xml
new file mode 100644
index 0000000..06573c5
--- /dev/null
+++ b/kodi-pvr-dvbviewer.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>DVBViewer Client</name>
+ <summary>Kodi's frontend for DVBViewer</summary>
+ <url
type="homepage">https://github.com/kodi-pvr/pvr.dvbviewer/&l...
+ <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-dvbviewer.spec b/kodi-pvr-dvbviewer.spec
index 4bf340b..77bccc7 100644
--- a/kodi-pvr-dvbviewer.spec
+++ b/kodi-pvr-dvbviewer.spec
@@ -1,25 +1,27 @@
%global kodi_addon pvr.dvbviewer
-%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.3.1
-Release: 4%{?dist}
+Version: 20.4.0
+Release: 1%{?dist}
Summary: DVBViewer 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.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:7.3.1-4
- Rebuilt for
https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild and ffmpeg
5.1
diff --git a/sources b/sources
index 1fd7936..b0e59bc 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-SHA512 (pvr.dvbviewer-7.3.1.tar.gz) =
ce81ab7712e7e428eac8569fa866afb69401046d93f096331ad491ca71ee2f56064824719d994dfe1c28d3c9e29282d17a757b9c8e003e5ca7083b617e26c223
+SHA512 (pvr.dvbviewer-20.4.0.tar.gz) =
defbd647d408cd4a30379eeeebb0a4388afd17ecdfb72efb5e9efee8c281f3fb408606d26728de6be3836f1f3ab7fe43ca4c035577dcb5aad53a1f3bc3613cde