[packages/shiboken] - rel 8; fixed build

arekm arekm at pld-linux.org
Fri Jul 6 19:03:31 CEST 2018


commit 47127cd53ef219535616d59e1795abc53d8527d2
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date:   Fri Jul 6 19:03:25 2018 +0200

    - rel 8; fixed build

 build.patch   | 21 +++++++++++++++++++++
 shiboken.spec |  4 +++-
 2 files changed, 24 insertions(+), 1 deletion(-)
---
diff --git a/shiboken.spec b/shiboken.spec
index 9726b5b..040b75c 100644
--- a/shiboken.spec
+++ b/shiboken.spec
@@ -7,13 +7,14 @@ Summary:	CPython bindings generator for C++ libraries
 Summary(pl.UTF-8):	Generator wiązań CPythona dla bibliotek C++
 Name:		shiboken
 Version:	1.2.2
-Release:	7
+Release:	8
 License:	LGPL v2.1+ (libraries), GPL v2 (tools)
 Group:		Development/Tools
 #Source0Download: http://qt-project.org/wiki/category:LanguageBindings::PySide::Downloads
 Source0:	http://download.qt-project.org/official_releases/pyside/%{name}-%{version}.tar.bz2
 # Source0-md5:	9f5bee9d414ce51be07ff7a20054a48d
 Patch0:		%{name}-python.patch
+Patch1:		build.patch
 URL:		http://qt-project.org/PySide/
 BuildRequires:	QtCore-devel >= 4.5.0
 BuildRequires:	QtXml-devel >= 4.5.0
@@ -95,6 +96,7 @@ Biblioteka uruchomieniowa shiboken dla Pythona 3.x.
 %prep
 %setup -q
 %patch0 -p1
+%patch1 -p1
 
 %build
 %if %{with python2}
diff --git a/build.patch b/build.patch
new file mode 100644
index 0000000..85d5ee2
--- /dev/null
+++ b/build.patch
@@ -0,0 +1,21 @@
+--- shiboken-1.2.2/tests/libsample/simplefile.cpp~	2014-04-22 17:42:48.000000000 +0200
++++ shiboken-1.2.2/tests/libsample/simplefile.cpp	2018-07-06 18:52:32.818363884 +0200
+@@ -90,7 +90,7 @@ bool
+ SimpleFile::exists() const
+ {
+     std::ifstream ifile(p->m_filename);
+-    return ifile;
++    return !!ifile;
+ }
+ 
+ bool
+--- shiboken-1.2.2/tests/libsample/simplefile.cpp~	2018-07-06 18:58:34.000000000 +0200
++++ shiboken-1.2.2/tests/libsample/simplefile.cpp	2018-07-06 18:59:39.479838951 +0200
+@@ -97,6 +97,6 @@ bool
+ SimpleFile::exists(const char* filename)
+ {
+     std::ifstream ifile(filename);
+-    return ifile;
++    return !!ifile;
+ }
+ 
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/shiboken.git/commitdiff/47127cd53ef219535616d59e1795abc53d8527d2



More information about the pld-cvs-commit mailing list