summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJinWang An <jinwang.an@samsung.com>2022-03-23 16:26:27 +0900
committerJinWang An <jinwang.an@samsung.com>2022-03-23 16:26:58 +0900
commitb7d6e97665e9daa8c501ccfa02b7eaff383ca36a (patch)
tree16bc6afedefc8746fc6054a17bb7aea8a283d0de
parentf2f1a310c855e9a9d19b1e3d1e7737784dc6ce7b (diff)
downloadlibzypp-bindings-accepted/tizen_unified.tar.gz
libzypp-bindings-accepted/tizen_unified.tar.bz2
libzypp-bindings-accepted/tizen_unified.zip
Change-Id: I5ad4b53844c9ecedab4f52a1bdc26c9b04e63031 Signed-off-by: JinWang An <jinwang.an@samsung.com>
-rw-r--r--packaging/Fix_Swig_Source.patch9
-rw-r--r--packaging/libzypp-bindings.spec2
2 files changed, 11 insertions, 0 deletions
diff --git a/packaging/Fix_Swig_Source.patch b/packaging/Fix_Swig_Source.patch
new file mode 100644
index 0000000..91430e3
--- /dev/null
+++ b/packaging/Fix_Swig_Source.patch
@@ -0,0 +1,9 @@
+diff --git a/swig/ResTraits.i b/swig/ResTraits.i
+index cbcefad..638fded 100644
+--- a/swig/ResTraits.i
++++ b/swig/ResTraits.i
+@@ -1,3 +1,4 @@
++%include <zypp/ResObject.h>
+
+ /** Base of ResTraits. Defines the Resolvable::Kind type. */
+ /*struct ResolvableTraits
diff --git a/packaging/libzypp-bindings.spec b/packaging/libzypp-bindings.spec
index 8c1ca95..652af93 100644
--- a/packaging/libzypp-bindings.spec
+++ b/packaging/libzypp-bindings.spec
@@ -15,6 +15,7 @@ Summary: Bindings for libzypp
Group: Development/Sources
Source: %{name}-%{version}.tar.gz
Source1001: libzypp-bindings.manifest
+Source1002: Fix_Swig_Source.patch
BuildRequires: cmake gcc-c++ python-devel
BuildRequires: swig
@@ -27,6 +28,7 @@ This package provides bindings for libzypp, the library for package management.
%prep
%setup -q
cp %{SOURCE1001} .
+%{__patch} -p1 < %{SOURCE1002}
%build
mkdir build