commit 0442c6cefb87fbb74974e75021fe377b089219e3
Author: martinkg(a)fedoraproject.org <martinkg(a)fedoraproject.org>
Date: Thu Sep 7 10:44:32 2017 +0200
add %%{name}-namespace.patch.patch
vdr-plex-namespace.patch | 20 ++++++++++++++++++++
vdr-plex.spec | 7 ++++---
2 files changed, 24 insertions(+), 3 deletions(-)
---
diff --git a/vdr-plex-namespace.patch b/vdr-plex-namespace.patch
new file mode 100644
index 0000000..351f28f
--- /dev/null
+++ b/vdr-plex-namespace.patch
@@ -0,0 +1,20 @@
+--- vdr-plugin-plex-0.4.0/m3u8Parser.cpp 2016-06-26 16:04:53.000000000 +0200
++++ vdr-plugin-plex-0.4.0.new/m3u8Parser.cpp 2017-09-07 09:38:51.561464924 +0200
+@@ -49,15 +49,14 @@
+ }
+
+ if (re.FullMatch(line)) {
+- string var;
+- //string value;
++ std::string var;
+ re.PartialMatch(line, &var);
+ if ("EXT-X-TARGETDURATION" == var) {
+ int value;
+ reVal.PartialMatch(line, &value);
+ TargetDuration = value;
+ } else if ("EXT-X-ALLOW-CACHE" == var) {
+- string value;
++ std::string value;
+ reVal.PartialMatch(line, &value);
+ AllowCache = "YES" == value;
+ } else if ("EXT-X-MEDIA-SEQUENCE" == var) {
diff --git a/vdr-plex.spec b/vdr-plex.spec
index b5be6f4..3768f97 100644
--- a/vdr-plex.spec
+++ b/vdr-plex.spec
@@ -7,6 +7,7 @@ Group: Applications/Multimedia
License: GPLv2
URL:
http://projects.vdr-developer.org/projects/plg-plex
SOURCE:
https://projects.vdr-developer.org/git/vdr-plugin-plex.git/snapshot/vdr-p...
+Patch0: %{name}-namespace.patch
BuildRequires: vdr-devel >= 2.0.0
BuildRequires: openssl-devel
@@ -25,7 +26,7 @@ Control via Plex for Android/IOS/Web, play, pause, stop, seeking
Cast Vimeo, Youtube, Apple-Trailers, and many other Plexchannels to your VDR.
%prep
-%setup -qn vdr-plugin-plex-%{version}
+%autosetup -p1 -n vdr-plugin-plex-%{version}
%build
make CFLAGS="%{optflags} -fPIC" CXXFLAGS="%{optflags} -fPIC"
%{?_smp_mflags} all
@@ -41,8 +42,8 @@ make CFLAGS="%{optflags} -fPIC" CXXFLAGS="%{optflags}
-fPIC" %{?_smp_mflags} all
%{vdr_plugindir}/libvdr-*.so.%{vdr_apiversion}
%changelog
-* Thu Aug 31 2017 RPM Fusion Release Engineering <kwizart(a)rpmfusion.org> - 0.4.0-4
-- Rebuilt for
https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
+* Thu Sep 07 2017 Martin Gansser <martinkg(a)fedoraproject.org> - 0.4.0-4
+- add %%{name}-namespace.patch.patch
* Mon Mar 20 2017 RPM Fusion Release Engineering <kwizart(a)rpmfusion.org> - 0.4.0-3
- Rebuilt for
https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild