Make swig input files for the bindings reusable
authorKlaus Kämpf <kkaempf@suse.de>
Fri, 3 Dec 2010 14:35:02 +0000 (15:35 +0100)
committerKlaus Kämpf <kkaempf@suse.de>
Fri, 3 Dec 2010 14:35:02 +0000 (15:35 +0100)
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.

VERSION.cmake
package/libsatsolver.spec.in

index 7a544ad..c0bda33 100644 (file)
@@ -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
index ebc1d5c..489cf3b 100644 (file)
@@ -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