commit 25fc750abc924b6fa1ad170c5dfe252e3d446852
Author: Mohamed El Morabity <melmorabity(a)fedoraproject.org>
Date: Tue Jan 31 11:57:43 2023 +0100
- Update to 20.3.1
- Add AppStream metadata
- Switch to SPDX license identifiers
.gitignore | 1 +
kodi-pvr-stalker.metainfo.xml | 11 +++++++++++
kodi-pvr-stalker.spec | 29 ++++++++++++++++++++++-------
sources | 2 +-
4 files changed, 35 insertions(+), 8 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e31e8f0..2975fe6 100644
--- a/.gitignore
+++ b/.gitignore
@@ -7,3 +7,4 @@
/pvr.stalker-7.0.0.tar.gz
/pvr.stalker-7.1.0.tar.gz
/pvr.stalker-7.1.1.tar.gz
+/pvr.stalker-20.3.1.tar.gz
diff --git a/kodi-pvr-stalker.metainfo.xml b/kodi-pvr-stalker.metainfo.xml
new file mode 100644
index 0000000..cc17106
--- /dev/null
+++ b/kodi-pvr-stalker.metainfo.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<component type="addon">
+ <id>kodi-pvr-stalker</id>
+ <extends>kodi.desktop</extends>
+ <name>Stalker Client</name>
+ <summary>PVR Client to connect Kodi to Stalker Middleware</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-stalker.spec b/kodi-pvr-stalker.spec
index 3662271..5dd53c0 100644
--- a/kodi-pvr-stalker.spec
+++ b/kodi-pvr-stalker.spec
@@ -1,24 +1,26 @@
%global kodi_addon pvr.stalker
-%global kodi_version 18.0
-%global kodi_codename Matrix
+%global kodi_version 20
+%global kodi_codename Nexus
Name: kodi-%(tr "." "-" <<<%{kodi_addon})
-Version: 7.1.1
-Release: 4%{?dist}
+Version: 20.3.1
+Release: 1%{?dist}
Summary: Stalker 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
BuildRequires: gcc-c++
BuildRequires: kodi-devel >= %{kodi_version}
+BuildRequires: libappstream-glib
BuildRequires: pkgconfig(jsoncpp)
BuildRequires: pkgconfig(libxml-2.0)
Requires: kodi >= %{kodi_version}
-ExcludeArch: %{power64} ppc64le
+ExcludeArch: %{power64}
%description
%{summary}.
@@ -30,7 +32,7 @@ ExcludeArch: %{power64} ppc64le
%build
#
https://gitlab.kitware.com/cmake/cmake/issues/17555#note_355574
-export PKG_CONFIG_ALLOW_SYSTEM_CFLAGS=1
+# export PKG_CONFIG_ALLOW_SYSTEM_CFLAGS=1
%cmake3
%cmake3_build
@@ -38,15 +40,28 @@ export PKG_CONFIG_ALLOW_SYSTEM_CFLAGS=1
%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> - 20.3.1-1
+- Update to 20.3.1
+- Add AppStream metadata
+- Switch to SPDX license identifiers
+
* Sun Aug 07 2022 RPM Fusion Release Engineering <sergiomb(a)rpmfusion.org> -
7.1.1-4
- Rebuilt for
https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild and ffmpeg
5.1
diff --git a/sources b/sources
index 98d8599..b6dfb67 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-SHA512 (pvr.stalker-7.1.1.tar.gz) =
9f47dcc44f1f5448b36b456778e8592768e28253083aae26a7d65e1f793c841b0c5fb2f83cd398e0895cdd7e31a608c340c518e4d7e63d0075d93fef5f738739
+SHA512 (pvr.stalker-20.3.1.tar.gz) =
4689458f1010d9a4d5021ef286aabddc2253198a39483794217c797048db66c4f6773189b4d7fd5bd4e2ccc3f8920626b462336bff731e4e69f75d7b275f4b25