commit f918d725a70e8ccbb869b5636551db9db2cd5b68
Author: Sérgio M. Basto <sergio(a)serjux.com>
Date: Sat Feb 25 20:04:13 2023 +0000
Initial RPM release (based on RPM Fusion package)
.gitignore | 1 +
kodi-inputstream-rtmp.metainfo.xml | 11 +++++++
kodi-inputstream-rtmp.spec | 59 ++++++++++++++++++++++++++++++++++++++
sources | 1 +
4 files changed, 72 insertions(+)
---
diff --git a/.gitignore b/.gitignore
index e69de29..f9ca864 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/inputstream.rtmp-20.3.0.tar.gz
diff --git a/kodi-inputstream-rtmp.metainfo.xml b/kodi-inputstream-rtmp.metainfo.xml
new file mode 100644
index 0000000..062b972
--- /dev/null
+++ b/kodi-inputstream-rtmp.metainfo.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<component type="addon">
+ <id>kodi-inputstream-rtmp</id>
+ <extends>kodi.desktop</extends>
+ <name>InputStream RTMP</name>
+ <summary>Client for RTMP streams</summary>
+ <url
type="homepage">https://github.com/peak3d/inputstream.adapti...
+ <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-inputstream-rtmp.spec b/kodi-inputstream-rtmp.spec
new file mode 100644
index 0000000..1617aee
--- /dev/null
+++ b/kodi-inputstream-rtmp.spec
@@ -0,0 +1,59 @@
+%global kodi_addon inputstream.rtmp
+%global kodi_version 20
+%global kodi_codename Nexus
+
+Name: kodi-%(tr "." "-" <<<%{kodi_addon})
+Version: 20.3.0
+Release: 1%{?dist}
+Summary: RTMP inputstream addon for Kodi
+
+License: GPL-2.0-or-later
+URL:
https://github.com/xbmc/%{kodi_addon}/
+Source0:
%{url}/archive/%{version}-%{kodi_codename}/%{kodi_addon}-%{version}.tar.gz
+Source1: %{name}.metainfo.xml
+
+BuildRequires: cmake
+BuildRequires: gcc-c++
+BuildRequires: kodi-devel >= %{kodi_version}
+BuildRequires: libappstream-glib
+BuildRequires: pkgconfig(librtmp)
+BuildRequires: pkgconfig(openssl)
+BuildRequires: zlib-devel
+Requires: kodi%{?_isa} >= %{kodi_version}
+ExcludeArch: %{power64}
+
+%description
+This is the RTMP inputstream addon for Kodi.
+
+
+%prep
+%autosetup -n %{kodi_addon}-%{version}-%{kodi_codename}
+
+
+%build
+%cmake
+%cmake_build
+
+
+%install
+%cmake_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
+%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.0-1
+- Initial RPM release (based on RPM Fusion package)
diff --git a/sources b/sources
index e69de29..75209dc 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+SHA512 (inputstream.rtmp-20.3.0.tar.gz) =
4c70d3df184eae19e359460560257012fece6cbd571d9a27c01f0dbdff84f1ce12b88527a1797cdc3c2a12e39edb92a7a82dd1cfd5721b553290a295733df9f6