commit be3a4bd42aaf8d27a2832efc6fc725ea32326fc8
Author: Mohamed El Morabity <melmorabity(a)fedoraproject.org>
Date: Tue Jan 31 12:38:20 2023 +0100
- Update to 20.2.0
- Add AppStream metadata
- Switch to SPDX license identifiers
.gitignore | 1 +
kodi-visualization-spectrum.metainfo.xml | 11 ++++++++
kodi-visualization-spectrum.spec | 45 ++++++++++++++++++--------------
sources | 2 +-
4 files changed, 39 insertions(+), 20 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index 018a155..2f6c726 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1 +1,2 @@
/visualization.spectrum-19.0.1-Matrix.tar.gz
+/visualization.spectrum-20.2.0-Nexus.tar.gz
diff --git a/kodi-visualization-spectrum.metainfo.xml
b/kodi-visualization-spectrum.metainfo.xml
new file mode 100644
index 0000000..6509b2b
--- /dev/null
+++ b/kodi-visualization-spectrum.metainfo.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<component type="addon">
+ <id>kodi-visualization-spectrum</id>
+ <extends>kodi.desktop</extends>
+ <name>Spectrum</name>
+ <summary>Visualisation showing a rotating 3D Spectrum Analyzer</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-visualization-spectrum.spec b/kodi-visualization-spectrum.spec
index 3dac8a7..9e12cfe 100644
--- a/kodi-visualization-spectrum.spec
+++ b/kodi-visualization-spectrum.spec
@@ -1,23 +1,23 @@
-%global aname visualization.spectrum
-%global kodi_version 19.0
-%global kodi_codename Matrix
+%global kodi_addon visualization.spectrum
+%global kodi_version 20
+%global kodi_codename Nexus
Name: kodi-visualization-spectrum
-Version: 19.0.1
-Release: 2%{?dist}
+Version: 20.2.0
+Release: 1%{?dist}
Summary: Spectrum visualizer for Kodi
-License: GPLv2+
-URL:
https://github.com/xbmc/visualization.spectrum
-Source0:
%{url}/archive/%{version}-%{kodi_codename}/%{aname}-%{version}-%{kodi_codename}.tar.gz
+License: GPL-2.0-or-later
+URL:
https://github.com/xbmc/%{kodi_addon}/
+Source0:
%{url}/archive/%{version}-%{kodi_codename}/%{kodi_addon}-%{version}-%{kodi_codename}.tar.gz
+Source1: %{name}.metainfo.xml
BuildRequires: cmake3
BuildRequires: gcc-c++
BuildRequires: kodi-devel >= %{kodi_version}
BuildRequires: glm-devel
-BuildRequires: libglvnd-devel
-
+BuildRequires: libappstream-glib
+BuildRequires: pkgconfig(gl)
Requires: kodi >= %{kodi_version}
-
ExcludeArch: %{power64}
%description
@@ -25,10 +25,7 @@ ExcludeArch: %{power64}
%prep
-%setup -q -n %{aname}-%{version}-%{kodi_codename}
-
-# Fix spurious-executable-perm on debug package
-find . -name '*.h' -or -name '*.cpp' | xargs chmod a-x
+%setup -q -n %{kodi_addon}-%{version}-%{kodi_codename}
%build
@@ -39,18 +36,28 @@ find . -name '*.h' -or -name '*.cpp' | xargs chmod
a-x
%install
%cmake3_install
-# Fix permissions at installation
-find $RPM_BUILD_ROOT%{_datadir}/kodi/addons/ -type f -exec chmod 0644 {} \;
+# 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
%license LICENSE.md
-%{_libdir}/kodi/addons/%{aname}/
-%{_datadir}/kodi/addons/%{aname}/
+%{_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.2.0-1
+- Update to 20.2.0
+- Add AppStream metadata
+- Switch to SPDX license identifiers
+
* Sun Aug 07 2022 RPM Fusion Release Engineering <sergiomb(a)rpmfusion.org> -
19.0.1-2
- Rebuilt for
https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild and ffmpeg
5.1
diff --git a/sources b/sources
index 781ffe4..56f592a 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-SHA512 (visualization.spectrum-19.0.1-Matrix.tar.gz) =
4d716d8221102bd9fba1859cda1b7d4dd501c2b71e23cf9cc03e9927ea49acd42f134f579a679762d39ca4bd125eee3232690ff9ef1607b1a4e01b3084a79b71
+SHA512 (visualization.spectrum-20.2.0-Nexus.tar.gz) =
b5f07e51058ec644c6b2a889be9e49403c566c8e14a7745b7a3610304467412a6ee7df8bf0ada4123915fac38b8efd658d6b41ba32bbfb29d9df13669d68dded