commit 348b643e666f09b4bc8e0f668df9d94057b5b81e
Author: Mohamed El Morabity <melmorabity(a)fedoraproject.org>
Date: Sun Jan 29 22:27:13 2023 +0100
- Update to 20.6.0
- Add AppStream metadata
- Switch to SPDX license identifiers
.gitignore | 1 +
kodi-pvr-hts.metainfo.xml | 11 +++++++++++
kodi-pvr-hts.spec | 32 ++++++++++++++++++++++++--------
sources | 2 +-
4 files changed, 37 insertions(+), 9 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index b928260..5952884 100644
--- a/.gitignore
+++ b/.gitignore
@@ -9,3 +9,4 @@
/pvr.hts-8.2.2.tar.gz
/pvr.hts-8.3.2.tar.gz
/pvr.hts-19.0.6.tar.gz
+/pvr.hts-20.6.0.tar.gz
diff --git a/kodi-pvr-hts.metainfo.xml b/kodi-pvr-hts.metainfo.xml
new file mode 100644
index 0000000..6d92ac2
--- /dev/null
+++ b/kodi-pvr-hts.metainfo.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<component type="addon">
+ <id>kodi-pvr-hts</id>
+ <extends>kodi.desktop</extends>
+ <name>Tvheadend HTSP Client</name>
+ <summary>Kodi's frontend for Tvheadend</summary>
+ <url
type="homepage">https://github.com/kodi-pvr/pvr.hts/</url...
+ <metadata_license>CC0-1.0</metadata_license>
+ <project_license>GPL-2.0-or-later AND LGPL-2.1-or-later AND
MIT</project_license>
+ <update_contact>melmorabity(a)fedoraproject.org</update_contact>
+</component>
diff --git a/kodi-pvr-hts.spec b/kodi-pvr-hts.spec
index 88c2029..529eb08 100644
--- a/kodi-pvr-hts.spec
+++ b/kodi-pvr-hts.spec
@@ -1,27 +1,31 @@
%global kodi_addon pvr.hts
-%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: 19.0.6
-Release: 2%{?dist}
+Version: 20.6.0
+Release: 1%{?dist}
Summary: TVHeadEnd PVR for Kodi
-# Addon is GPLv2+. SHA1 implementation from FFmpeg bundled in
-# lib/libhts is LGPLv2+
-License: GPLv2+ and LGPLv2+
+# - Addon is GPL-2.0-or-later
+# - SHA1 implementation from FFmpeg bundled in lib/libhts is LGPL-2.1-or-later
+# - lib/kissnet is MIT
+License: GPL-2.0-or-later AND LGPL-2.1-or-later AND MIT
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
Requires: kodi >= %{kodi_version}
+Provides: bundled(kissnet)
Provides: bundled(sha1-ffmpeg)
-ExcludeArch: %{power64} ppc64le
+ExcludeArch: %{power64}
%description
%{summary}.
@@ -38,6 +42,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
@@ -45,9 +55,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.6.0-1
+- Update to 20.6.0
+- Add AppStream metadata
+- Switch to SPDX license identifiers
+
* Sun Aug 07 2022 RPM Fusion Release Engineering <sergiomb(a)rpmfusion.org> -
1:19.0.6-2
- Rebuilt for
https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild and ffmpeg
5.1
diff --git a/sources b/sources
index 90c517d..38fe262 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-SHA512 (pvr.hts-19.0.6.tar.gz) =
81fd5e18aaacd428aad8e36766a3c5ed71dd22f50b6cffd9238bfd0bce5811a2d30c43c9097e15b53d308b61eb4af87d9e04051b996df941cab41523957754fe
+SHA512 (pvr.hts-20.6.0.tar.gz) =
e49803f4aeb0217e34be657f1d933ac1439610df268b759af9acf78f5b18bdc329f8528fe573e40304d23f18831a557bf2690569258fd6b66ea8566ca45b982b