From: Klaus Kämpf Date: Fri, 3 Dec 2010 14:35:02 +0000 (+0100) Subject: Make swig input files for the bindings reusable X-Git-Tag: BASE-SuSE-Code-12_1-Branch~156 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=23ec75519351a47baaa75c1eedc64f352cbf3cb0;p=thirdparty%2Flibsolv.git Make swig input files for the bindings reusable Introduce a new package (satsolver-bindings-devel) containing the .i and .h files used to create the bindings. This makes the bindings API reusable in other bindings using libsatsolver, i.e. libzypp-bindings. --- diff --git a/VERSION.cmake b/VERSION.cmake index 7a544ad6..c0bda33c 100644 --- a/VERSION.cmake +++ b/VERSION.cmake @@ -46,6 +46,6 @@ SET(LIBSATSOLVER_MAJOR "0") SET(LIBSATSOLVER_MINOR "16") -SET(LIBSATSOLVER_PATCH "1") +SET(LIBSATSOLVER_PATCH "2") # last released 0.16.0 diff --git a/package/libsatsolver.spec.in b/package/libsatsolver.spec.in index ebc1d5cc..489cf3b2 100644 --- a/package/libsatsolver.spec.in +++ b/package/libsatsolver.spec.in @@ -133,6 +133,17 @@ Group: Development/Languages/Perl Perl bindings for sat solver. +%package -n satsolver-bindings-devel +Requires: swig %{name}-devel +Summary: Swig input files for satsolver bindings +Group: Development/Libraries +BuildArch: noarch + +%description -n satsolver-bindings-devel +The Swig input files for satsolver bindings allow for reuse of the +bindings concept in other projects, i.e. libzypp-bindings. + + %prep %setup -n satsolver-%{version} @@ -244,4 +255,10 @@ rm -rf "$RPM_BUILD_ROOT" %{perl_vendorarch}/satsolver.so %{perl_vendorlib}/satsolver.pm +%files -n satsolver-bindings-devel +%defattr(-,root,root,-) +%dir %{prefix}/share/satsolver-bindings +%{prefix}/share/satsolver-bindings/*.i +%{prefix}/share/satsolver-bindings/*.h + %changelog