commit 14acad51097fad10747cc85709ef9a6cd93c9b6d
Author: Mohamed El Morabity <melmorabity(a)fedoraproject.org>
Date: Tue Jan 31 10:56:10 2023 +0100
- Update to 20.3.0
- Add AppStream metadata
- Switch to SPDX license identifiers
.gitignore | 1 +
kodi-pvr-mediaportal-tvserver.metainfo.xml | 11 +++++++++++
kodi-pvr-mediaportal-tvserver.spec | 29 ++++++++++++++++++++++-------
sources | 2 +-
4 files changed, 35 insertions(+), 8 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index 9540b7c..a1559da 100644
--- a/.gitignore
+++ b/.gitignore
@@ -7,3 +7,4 @@
/pvr.mediaportal.tvserver-8.0.0.tar.gz
/pvr.mediaportal.tvserver-8.1.0.tar.gz
/pvr.mediaportal.tvserver-8.2.1.tar.gz
+/pvr.mediaportal.tvserver-20.3.0.tar.gz
diff --git a/kodi-pvr-mediaportal-tvserver.metainfo.xml
b/kodi-pvr-mediaportal-tvserver.metainfo.xml
new file mode 100644
index 0000000..a402de6
--- /dev/null
+++ b/kodi-pvr-mediaportal-tvserver.metainfo.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<component type="addon">
+ <id>kodi-pvr-mediaportal-tvserver</id>
+ <extends>kodi.desktop</extends>
+ <name>MediaPortal PVR Client</name>
+ <summary>Kodi frontend for the MediaPortal TV Server</summary>
+ <url
type="homepage">https://github.com/xbmc/peripheral.joystick/...
+ <metadata_license>CC0-1.0</metadata_license>
+ <project_license>GPL-2.0-or-later AND LGPL-2.1-or-later</project_license>
+ <update_contact>melmorabity(a)fedoraproject.org</update_contact>
+</component>
diff --git a/kodi-pvr-mediaportal-tvserver.spec b/kodi-pvr-mediaportal-tvserver.spec
index 39aefe8..f36ba72 100644
--- a/kodi-pvr-mediaportal-tvserver.spec
+++ b/kodi-pvr-mediaportal-tvserver.spec
@@ -1,29 +1,31 @@
%global kodi_addon pvr.mediaportal.tvserver
-%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.1
-Release: 4%{?dist}
+Version: 20.3.0
+Release: 1%{?dist}
Summary: MediaPortal PVR for Kodi
-# Bundled live555 is LGPLv2+. See
+# Bundled live555 is LGPL-2.1-or-later. See
#
https://github.com/kodi-pvr/pvr.mediaportal.tvserver/pull/52#issuecomment...
# for explanation about this bundling
-License: GPLv2+ and LGPLv2+
+License: GPL-2.0-or-later AND LGPL-2.1-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}
Provides: bundled(live555) = 2010.03.16
-ExcludeArch: %{power64} ppc64le
+ExcludeArch: %{power64}
%description
%{summary}.
@@ -41,15 +43,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 src/README
%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.3.0-1
+- Update to 20.3.0
+- Add AppStream metadata
+- Switch to SPDX license identifiers
+
* Sun Aug 07 2022 RPM Fusion Release Engineering <sergiomb(a)rpmfusion.org> -
1:8.2.1-4
- Rebuilt for
https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild and ffmpeg
5.1
diff --git a/sources b/sources
index 5bd81e2..c589b7c 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-SHA512 (pvr.mediaportal.tvserver-8.2.1.tar.gz) =
d257992bf77a49bf9b130bf91764b2c174bae955c8fcc3e487bc65c5f963963e10e15855019e9dcf3c9e8ed2fa3e7db874e7282cd269d313cc15c664f88c9ad1
+SHA512 (pvr.mediaportal.tvserver-20.3.0.tar.gz) =
911cfc8cbef838a081b14f54611a6cdf747a34bb0aabb9598d184241144bc865588ef4d71360b9e066377543fb6d9db2aba51a73703119f6fa4b8cf7a087061a