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/
10 Name: libzypp-bindings
14 Summary: Bindings for libzypp
15 Group: Development/Sources
16 Source: %{name}-%{version}.tar.gz
17 Source1001: libzypp-bindings.manifest
18 Source1002: Fix_Swig_Source.patch
20 BuildRequires: cmake gcc-c++ python-devel
23 BuildRequires: libzypp-devel
26 This package provides bindings for libzypp, the library for package management.
31 %{__patch} -p1 < %{SOURCE1002}
36 %cmake -DCMAKE_INSTALL_PREFIX=%{prefix} \
37 -DPYTHON_SITEDIR=%{python_sitearch} \
39 -DCMAKE_VERBOSE_MAKEFILE=TRUE \
40 -DCMAKE_C_FLAGS_RELEASE:STRING="%{optflags}" \
41 -DCMAKE_CXX_FLAGS_RELEASE:STRING="%{optflags}" \
42 -DCMAKE_BUILD_TYPE=Release \
43 -DCMAKE_SKIP_RPATH=1 \
49 make install DESTDIR=$RPM_BUILD_ROOT
53 %package -n python-zypp
54 Summary: Python bindings for libzypp
55 Group: Development/Languages/Python
58 %description -n python-zypp
59 Python bindings of libzypp
63 %manifest %{name}.manifest
64 %defattr(-,root,root,-)
65 %{python_sitearch}/_zypp.so
66 %{python_sitearch}/zypp.py*