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/
17 Summary: Bindings for libzypp
18 Group: Development/Sources
19 BuildRoot: %{_tmppath}/%{name}-%{version}-build
20 BuildRequires: cmake gcc-c++ python-devel ruby-devel swig
21 BuildRequires: libzypp-devel >= 3.0.0
22 Source: %{name}-%{version}.tar.bz2
33 cmake -DCMAKE_INSTALL_PREFIX=%{prefix} \
35 -DCMAKE_VERBOSE_MAKEFILE=TRUE \
36 -DCMAKE_C_FLAGS_RELEASE:STRING="%{optflags}" \
37 -DCMAKE_CXX_FLAGS_RELEASE:STRING="%{optflags}" \
38 -DCMAKE_BUILD_TYPE=Release \
39 -DCMAKE_SKIP_RPATH=1 \
41 make %{?jobs:-j %jobs}
45 make install DESTDIR=$RPM_BUILD_ROOT
48 %{__rm} -rf %{buildroot}
51 Summary: Ruby bindings for libzypp
52 Group: Development/Languages/Ruby
54 %description -n ruby-zypp
58 %defattr(-,root,root,-)
59 %{_libdir}/ruby/vendor_ruby/%{rb_ver}/%{rb_arch}/zypp.so
61 %package -n python-zypp
62 Summary: Python bindings for libzypp
63 Group: Development/Languages/Python
64 %description -n python-zypp
68 %defattr(-,root,root,-)
69 %{_libdir}/python2.5/site-packages/_zypp.so
70 %{_libdir}/python2.5/site-packages/zypp.py
73 Summary: Perl bindings for libzypp
74 Group: Development/Languages/Perl
76 %description -n perl-zypp
80 %defattr(-,root,root,-)
81 /usr/lib/perl5/*/*/zypp.pm
82 /usr/lib/perl5/*/*/zypp.so