commit 71e89a57b6f2ef1000476ead6bcd7f0c767f544f
Author: Mohamed El Morabity <melmorabity(a)fedoraproject.org>
Date: Tue Jan 31 12:27:55 2023 +0100
- Update to 20.3.0
- Add AppStream metadata
- Switch to SPDX license identifiers
.gitignore | 1 +
kodi-pvr-wmc.metainfo.xml | 11 +++++++++++
kodi-pvr-wmc.spec | 28 ++++++++++++++++++++++------
sources | 2 +-
4 files changed, 35 insertions(+), 7 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index 52a315e..66606e3 100644
--- a/.gitignore
+++ b/.gitignore
@@ -7,3 +7,4 @@
/pvr.wmc-6.0.0.tar.gz
/pvr.wmc-6.1.1.tar.gz
/pvr.wmc-6.1.2.tar.gz
+/pvr.wmc-20.3.0.tar.gz
diff --git a/kodi-pvr-wmc.metainfo.xml b/kodi-pvr-wmc.metainfo.xml
new file mode 100644
index 0000000..b386d47
--- /dev/null
+++ b/kodi-pvr-wmc.metainfo.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<component type="addon">
+ <id>kodi-pvr-wmc</id>
+ <extends>kodi.desktop</extends>
+ <name>Windows Media Center Client</name>
+ <summary>PVR WMC Client</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-wmc.spec b/kodi-pvr-wmc.spec
index a87ebce..c54ad3d 100644
--- a/kodi-pvr-wmc.spec
+++ b/kodi-pvr-wmc.spec
@@ -1,24 +1,26 @@
%global kodi_addon pvr.wmc
-%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.2
-Release: 4%{?dist}
+Version: 20.3.0
+Release: 1%{?dist}
Summary: WMC 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
Requires: kodi >= %{kodi_version}
-ExcludeArch: %{power64} ppc64le
+ExcludeArch: %{power64}
%description
%{summary}.
@@ -36,15 +38,29 @@ 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
%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.2-4
- Rebuilt for
https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild and ffmpeg
5.1
diff --git a/sources b/sources
index ac3209a..e1c137d 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-SHA512 (pvr.wmc-6.1.2.tar.gz) =
b0e53c8494a5c811182358afbc7834b7cc51104839c7b4bf59047ef00e4b9bbf013368d94f095fa384dd4aa590a1f64c0235328b652962cd39430273c8e41c0b
+SHA512 (pvr.wmc-20.3.0.tar.gz) =
dba272d3e4812b0d66b901597939baebf4c9d00145a1bf728e2a5f6d48c204fb73c948f9e38b53619f09203ddb9048f7173b58e1c37157865b58234083cd918c