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
19 BuildRequires: cmake gcc-c++ python-devel
22 BuildRequires: libzypp-devel
25 This package provides bindings for libzypp, the library for package management.
34 %cmake -DCMAKE_INSTALL_PREFIX=%{prefix} \
35 -DPYTHON_SITEDIR=%{python_sitearch} \
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 \
47 make install DESTDIR=$RPM_BUILD_ROOT
51 %package -n python-zypp
52 Summary: Python bindings for libzypp
53 Group: Development/Languages/Python
56 %description -n python-zypp
57 Python bindings of libzypp
61 %manifest %{name}.manifest
62 %defattr(-,root,root,-)
63 %{python_sitearch}/_zypp.so
64 %{python_sitearch}/zypp.py*