commit 3249abf20922d631b84df4b0c4993edf2ade6fdb
Author: Mohamed El Morabity <melmorabity(a)fedoraproject.org>
Date: Tue Jan 31 11:50:44 2023 +0100
- Update to 20.4.0
- Add AppStream metadata
- Switch to SPDX license identifiers
.gitignore | 1 +
kodi-pvr-pctv.metainfo.xml | 11 +++++++++++
kodi-pvr-pctv.spec | 29 ++++++++++++++++++++++-------
sources | 2 +-
4 files changed, 35 insertions(+), 8 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e5962ee..cbe16c8 100644
--- a/.gitignore
+++ b/.gitignore
@@ -7,3 +7,4 @@
/pvr.pctv-6.0.0.tar.gz
/pvr.pctv-6.1.0.tar.gz
/pvr.pctv-6.1.1.tar.gz
+/pvr.pctv-20.4.0.tar.gz
diff --git a/kodi-pvr-pctv.metainfo.xml b/kodi-pvr-pctv.metainfo.xml
new file mode 100644
index 0000000..6979dc0
--- /dev/null
+++ b/kodi-pvr-pctv.metainfo.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<component type="addon">
+ <id>kodi-pvr-pctv</id>
+ <extends>kodi.desktop</extends>
+ <name>PCTV Systems Client</name>
+ <summary>PVR Client to connect PCTV Systems Broadway to Kodi</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-pctv.spec b/kodi-pvr-pctv.spec
index 7b199f7..1c30cfc 100644
--- a/kodi-pvr-pctv.spec
+++ b/kodi-pvr-pctv.spec
@@ -1,22 +1,24 @@
%global kodi_addon pvr.pctv
-%global kodi_version 19.0
-%global kodi_codename Matrix
+%global kodi_version 20
+%global kodi_codename Nexus
Name: kodi-%(tr "." "-" <<<%{kodi_addon})
-Version: 6.1.1
-Release: 4%{?dist}
+Version: 20.4.0
+Release: 1%{?dist}
Summary: PCTV 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(jsoncpp)
Requires: kodi >= %{kodi_version}
-ExcludeArch: %{power64} ppc64le
+ExcludeArch: %{power64}
%description
%{summary}.
@@ -28,7 +30,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
@@ -36,15 +38,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.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> -
6.1.1-4
- Rebuilt for
https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild and ffmpeg
5.1
diff --git a/sources b/sources
index f41cb87..85d23b8 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-SHA512 (pvr.pctv-6.1.1.tar.gz) =
12fa2d9299ed84ec89cf4f159946cb007a9a7d404d68a72eb5b63711b4ade6af054107d4880f81d8b3b6683f02aa2495b9c3fbf5d1f5e3d0aa7b8a3316b028ed
+SHA512 (pvr.pctv-20.4.0.tar.gz) =
4edf384e6c7cff5b6583af54a1c9655481b26b27510c6193039067cdae313fd6184665e8645a8a97d27369fd37c4ef2258b19fbc25fcdb457a6f3315c3f03b7f