commit 097499621160d4a9d361e052db38ec2141b0b0de
Author: Mohamed El Morabity <melmorabity(a)fedoraproject.org>
Date: Sun Jan 29 22:10:41 2023 +0100
- Update to 20.3.0
- Add AppStream metadata
- Switch to SPDX license identifiers
.gitignore | 1 +
kodi-pvr-filmon.metainfo.xml | 11 +++++++++++
kodi-pvr-filmon.spec | 29 ++++++++++++++++++++++-------
sources | 2 +-
4 files changed, 35 insertions(+), 8 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index dc1595a..488200a 100644
--- a/.gitignore
+++ b/.gitignore
@@ -6,3 +6,4 @@
/pvr.filmon-5.1.0.tar.gz
/pvr.filmon-6.0.0.tar.gz
/pvr.filmon-6.1.1.tar.gz
+/pvr.filmon-20.3.0.tar.gz
diff --git a/kodi-pvr-filmon.metainfo.xml b/kodi-pvr-filmon.metainfo.xml
new file mode 100644
index 0000000..f9d9dca
--- /dev/null
+++ b/kodi-pvr-filmon.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>Filmon Client</name>
+ <summary>Filmon PVR Client</summary>
+ <url
type="homepage">https://github.com/kodi-pvr/pvr.filmon/</...
+ <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-filmon.spec b/kodi-pvr-filmon.spec
index 167488d..5841f14 100644
--- a/kodi-pvr-filmon.spec
+++ b/kodi-pvr-filmon.spec
@@ -1,25 +1,27 @@
%global kodi_addon pvr.filmon
-%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: 6.1.1
-Release: 4%{?dist}
+Version: 20.3.0
+Release: 1%{?dist}
Summary: FilmOn 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}.
@@ -31,7 +33,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
@@ -39,15 +41,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> - 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: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 b160b22..f298e48 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-SHA512 (pvr.filmon-6.1.1.tar.gz) =
435bdb66092a7c48093915bb4a70ad6fb266f6706d130d1be31e272b12ae1bedf0f42b57fa81385cbeec0f948b8a3664fc1a4ea590f5c179e74266a506f08631
+SHA512 (pvr.filmon-20.3.0.tar.gz) =
13fd81bfc4272d6a3bc84550c820df269c764a0956c1f3d6d9362e6bb96dd86e2efbb4d06ab8ca695c7719032d03cff7d08bbb1b5962f4a458b606cac42da9ee