2 # spec file for package libzypp-bindings
4 # Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
6 # All modifications and additions to the file contributed by third parties
7 # remain the property of their copyright owners, unless otherwise agreed
8 # upon. The license for this file, and modifications and additions to the
9 # file, is the same license as for the pristine package itself (unless the
10 # license for the pristine package is not an Open Source License, in which
11 # case the license is the MIT License). An "Open Source License" is a
12 # license that conforms to the Open Source Definition (Version 1.9)
13 # published by the Open Source Initiative.
15 # Please submit bugfixes or comments via http://bugs.opensuse.org/
24 Summary: Bindings for libzypp
25 Group: Development/Sources
26 BuildRoot: %{_tmppath}/%{name}-%{version}-build
28 BuildRequires: gcc-c++ >= 4.5
29 BuildRequires: libzypp-devel >= 15.11.0
30 BuildRequires: python-devel < 3
31 BuildRequires: ruby-devel
32 BuildRequires: swig >= 2
33 Source: %{name}-%{version}.tar.bz2
36 This package provides bindings for libzypp, the library for package management.
44 cmake -DCMAKE_INSTALL_PREFIX=%{prefix} \
45 -DPYTHON_SITEDIR=%{py_sitedir} \
47 -DCMAKE_VERBOSE_MAKEFILE=TRUE \
48 -DCMAKE_C_FLAGS_RELEASE:STRING="%{optflags}" \
49 -DCMAKE_CXX_FLAGS_RELEASE:STRING="%{optflags}" \
50 -DCMAKE_BUILD_TYPE=Release \
51 -DCMAKE_SKIP_RPATH=1 \
53 # the swig compile jobs take a lot of memory, so don't use jobs here
62 make install DESTDIR=$RPM_BUILD_ROOT
65 %{__rm} -rf %{buildroot}
68 Summary: Ruby bindings for libzypp
69 Group: Development/Languages/Ruby
71 %description -n ruby-zypp
72 Ruby bindings for libzypp.
75 %defattr(-,root,root,-)
77 %{_libdir}/ruby/vendor_ruby/%{rb_ver}/%{rb_arch}/zypp.so
79 %if 0%{?mandriva_version}
80 %{ruby_sitearchdir}/zypp.so
83 %package -n python-zypp
84 Summary: Python bindings for libzypp
85 Group: Development/Languages/Python
86 %description -n python-zypp
87 Python bindings for libzypp.
90 %defattr(-,root,root,-)
91 %{py_sitedir}/_zypp.so
95 Requires: perl = %{perl_version}
96 Summary: Perl bindings for libzypp
97 Group: Development/Languages/Perl
99 %description -n perl-zypp
100 Perl bindings for libzypp.
103 %defattr(-,root,root,-)
104 %{perl_vendorlib}/zypp.pm
105 %{perl_vendorarch}/zypp.so