diff options
-rw-r--r-- | packaging/Fix_Swig_Source.patch | 9 | ||||
-rw-r--r-- | packaging/libzypp-bindings.spec | 2 |
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 |