commit eb7c3ab1f635e52dfb12bcd8d4ff9afdc221510e
Author: Mohamed El Morabity <melmorabity(a)fedoraproject.org>
Date: Tue Oct 3 14:29:00 2017 +0200
First import
.gitignore | 1 +
kodi-pvr-stalker-2.8.5-build.patch | 11 ++++++
kodi-pvr-stalker-2.8.5-jsoncpp.patch | 12 +++++++
kodi-pvr-stalker.spec | 70 ++++++++++++++++++++++++++++++++++++
sources | 1 +
5 files changed, 95 insertions(+)
---
diff --git a/.gitignore b/.gitignore
index e69de29..088fcbc 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/kodi-pvr-stalker-39d6db5.tar.gz
diff --git a/kodi-pvr-stalker-2.8.5-build.patch b/kodi-pvr-stalker-2.8.5-build.patch
new file mode 100644
index 0000000..1907a57
--- /dev/null
+++ b/kodi-pvr-stalker-2.8.5-build.patch
@@ -0,0 +1,11 @@
+diff -up ./src/CWatchdog.h.orig ./src/CWatchdog.h
+--- ./src/CWatchdog.h.orig 2017-03-24 21:31:17.000000000 +0100
++++ ./src/CWatchdog.h 2017-04-27 11:10:38.648088173 +0200
+@@ -22,6 +22,7 @@
+ */
+
+ #include <thread>
++#include <functional>
+
+ #include "SAPI.h"
+
diff --git a/kodi-pvr-stalker-2.8.5-jsoncpp.patch b/kodi-pvr-stalker-2.8.5-jsoncpp.patch
new file mode 100644
index 0000000..98570eb
--- /dev/null
+++ b/kodi-pvr-stalker-2.8.5-jsoncpp.patch
@@ -0,0 +1,12 @@
+diff -up ./CMakeLists.txt.orig ./CMakeLists.txt
+--- ./CMakeLists.txt.orig 2017-03-24 21:31:17.000000000 +0100
++++ ./CMakeLists.txt 2017-04-26 17:51:01.122170033 +0200
+@@ -10,7 +10,7 @@ find_package(Kodi REQUIRED)
+ find_package(kodiplatform REQUIRED)
+ find_package(p8-platform REQUIRED)
+ find_package(LibXml2 REQUIRED)
+-find_package(JsonCpp REQUIRED)
++find_package(jsoncpp REQUIRED)
+
+ include_directories(
+ ${kodiplatform_INCLUDE_DIRS}
diff --git a/kodi-pvr-stalker.spec b/kodi-pvr-stalker.spec
new file mode 100644
index 0000000..187e021
--- /dev/null
+++ b/kodi-pvr-stalker.spec
@@ -0,0 +1,70 @@
+%global commit 39d6db5af28cca5993e95bb498cf799f3d8cd3ff
+%global short_commit %(c=%{commit}; echo ${c:0:7})
+%global commit_date 20170324
+
+%global kodi_addon pvr.stalker
+%global kodi_version 17.0
+
+Name: kodi-%(tr "." "-" <<<%{kodi_addon})
+Version: 2.8.5
+Release: 1%{?dist}
+Summary: A PVR client that connects Kodi to Stalker Middleware
+
+Group: Applications/Multimedia
+License: GPLv2+
+URL:
https://github.com/kodi-pvr/%{kodi_addon}/
+Source0:
https://github.com/kodi-pvr/%{kodi_addon}/archive/%{short_commit}/%{name}...
+# Fix jsoncpp library detection
+Patch0: %{name}-2.8.5-jsoncpp.patch
+# Fix build
+Patch1: %{name}-2.8.5-build.patch
+
+BuildRequires: cmake
+BuildRequires: gcc
+BuildRequires: gcc-c++
+BuildRequires: jsoncpp-devel
+BuildRequires: kodi-devel >= %{kodi_version}
+BuildRequires: kodi-platform-devel >= %{kodi_version}
+BuildRequires: libxml2-devel
+BuildRequires: platform-devel
+Requires: kodi >= %{kodi_version}
+ExclusiveArch: i686 x86_64
+
+%description
+PVR Client to connect Kodi to Stalker Middleware.
+
+
+%prep
+%autosetup -n %{kodi_addon}-%{commit} -p0
+
+# Fix wrong end-of-lines encoding
+sed "s/\r//" README.md >README.md.new
+touch -r README.md README.md.new
+mv README.md.new README.md
+
+
+%build
+%cmake -DCMAKE_INSTALL_LIBDIR=%{_libdir}/kodi/ .
+%make_build
+
+
+%install
+%make_install
+
+
+%files
+%doc README.md %{kodi_addon}/changelog.txt
+%license LICENSE
+%{_libdir}/kodi/addons/%{kodi_addon}/
+%{_datadir}/kodi/addons/%{kodi_addon}/
+
+
+%changelog
+* Thu Apr 27 2017 Mohamed El Morabity <melmorabity(a)fedorapeople.org> - 2.8.5-1
+- Update to latest stable release for Kodi 17
+
+* Sat Jul 23 2016 Mohamed El Morabity <melmorabity(a)fedoraproject.org> - 1.0.12-1
+- Update to latest stable release for Kodi 16
+
+* Mon Aug 24 2015 Mohamed El Morabity <melmorabity(a)fedoraproject.org> - 0.8.3-1
+- Initial RPM release
diff --git a/sources b/sources
index e69de29..7c49f48 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+bd896c63862d909e90ebb0c99d1ce829 kodi-pvr-stalker-39d6db5.tar.gz