* Fix packaging of python modules
Python site dir is not always in %{_libdir}, %{python_sitearch} is expanded the
same way as configure searches for site dir.
* Add vendor option to configure
* Add suse_version macro
Change-Id: I7d249d9329047c49117c49b52ab89d07e42053f6
Signed-off-by: Yury Usishchev <y.usishchev@samsung.com>
+%suse_version 1408
# directories
%_infodir %{_prefix}/share/info
%_mandir %{_prefix}/share/man
--with-cap \
--enable-shared \
--enable-python \
+ --with-vendor=tizen \
--with-msm
make %{?_smp_mflags}
%files -n python-rpm
%defattr(-,root,root)
-%{_libdir}/python*/site-packages/rpm
-%attr(755,root,root) %{_libdir}/python*/site-packages/rpm/transaction.py
+%{python_sitearch}/rpm
+%attr(755,root,root) %{python_sitearch}/rpm/transaction.py
%lang_package