2 # spec file for package libzypp-bindings
4 # Copyright (c) 2007 SUSE LINUX Products GmbH, Nuernberg, Germany.
5 # This file and all modifications and additions to the pristine
6 # package are under the same license as the package itself.
8 # Please submit bugfixes or comments via http://bugs.opensuse.org/
16 License: GPL v2 or later
17 Summary: Bindings for libzypp
18 Group: Development/Sources
19 BuildRoot: %{_tmppath}/%{name}-%{version}-build
20 BuildRequires: cmake gcc-c++ python-devel ruby-devel
21 BuildRequires: swig >= 1.3.40
22 BuildRequires: libzypp-devel >= 5.8.0
23 Source: %{name}-%{version}.tar.bz2
26 This package provides bindings for libzypp, the library for package management.
34 cmake -DCMAKE_INSTALL_PREFIX=%{prefix} \
35 -DPYTHON_SITEDIR=%{py_sitedir} \
37 -DCMAKE_VERBOSE_MAKEFILE=TRUE \
38 -DCMAKE_C_FLAGS_RELEASE:STRING="%{optflags}" \
39 -DCMAKE_CXX_FLAGS_RELEASE:STRING="%{optflags}" \
40 -DCMAKE_BUILD_TYPE=Release \
41 -DCMAKE_SKIP_RPATH=1 \
43 make %{?jobs:-j %jobs}
47 make install DESTDIR=$RPM_BUILD_ROOT
50 %{__rm} -rf %{buildroot}
53 Summary: Ruby bindings for libzypp
54 Group: Development/Languages/Ruby
56 %description -n ruby-zypp
60 %defattr(-,root,root,-)
62 %{_libdir}/ruby/vendor_ruby/%{rb_ver}/%{rb_arch}/zypp.so
64 %if 0%{?mandriva_version}
65 %{ruby_sitearchdir}/zypp.so
68 %package -n python-zypp
69 Summary: Python bindings for libzypp
70 Group: Development/Languages/Python
71 %description -n python-zypp
75 %defattr(-,root,root,-)
76 %{py_sitedir}/_zypp.so
80 Requires: perl = %{perl_version}
81 Summary: Perl bindings for libzypp
82 Group: Development/Languages/Perl
84 %description -n perl-zypp
88 %defattr(-,root,root,-)
89 %{perl_vendorlib}/zypp.pm
90 %{perl_vendorarch}/zypp.so