summaryrefslogtreecommitdiff
path: root/package
diff options
context:
space:
mode:
authorKlaus Kämpf <kkaempf@suse.de>2010-12-03 15:35:02 +0100
committerKlaus Kämpf <kkaempf@suse.de>2010-12-03 15:35:02 +0100
commit23ec75519351a47baaa75c1eedc64f352cbf3cb0 (patch)
tree0dc0b64c00add6b872c09fbead4e02cd40e05621 /package
parent29b546ff3ebe910c3fa2a9be0abb249c0328768a (diff)
downloadlibsolv-23ec75519351a47baaa75c1eedc64f352cbf3cb0.tar.gz
libsolv-23ec75519351a47baaa75c1eedc64f352cbf3cb0.tar.bz2
libsolv-23ec75519351a47baaa75c1eedc64f352cbf3cb0.zip
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.
Diffstat (limited to 'package')
-rw-r--r--package/libsatsolver.spec.in17
1 files changed, 17 insertions, 0 deletions
diff --git a/package/libsatsolver.spec.in b/package/libsatsolver.spec.in
index ebc1d5c..489cf3b 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