summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYury Usishchev <y.usishchev@samsung.com>2014-07-24 15:17:07 +0400
committerYury Usishchev <y.usishchev@samsung.com>2014-08-01 15:38:10 +0400
commitd9fc70a4c4bf726b5cee32bf6b19a302ffc653f8 (patch)
tree5c3a81a1bb55da99a6c0b31ea257f4394b14e3c5
parentc528674145287d49ce3a655c6397914cbf61b551 (diff)
downloadrpm-d9fc70a4c4bf726b5cee32bf6b19a302ffc653f8.tar.gz
rpm-d9fc70a4c4bf726b5cee32bf6b19a302ffc653f8.tar.bz2
rpm-d9fc70a4c4bf726b5cee32bf6b19a302ffc653f8.zip
* 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>
-rw-r--r--packaging/rpm-tizen_macros1
-rw-r--r--packaging/rpm.spec5
2 files changed, 4 insertions, 2 deletions
diff --git a/packaging/rpm-tizen_macros b/packaging/rpm-tizen_macros
index e7648f9f8..e97cc9fa4 100644
--- a/packaging/rpm-tizen_macros
+++ b/packaging/rpm-tizen_macros
@@ -1,3 +1,4 @@
+%suse_version 1408
# directories
%_infodir %{_prefix}/share/info
%_mandir %{_prefix}/share/man
diff --git a/packaging/rpm.spec b/packaging/rpm.spec
index 07fdb8c51..5027ba03a 100644
--- a/packaging/rpm.spec
+++ b/packaging/rpm.spec
@@ -146,6 +146,7 @@ export CFLAGS="-g -O0 -fno-strict-aliasing -ffunction-sections"
--with-cap \
--enable-shared \
--enable-python \
+ --with-vendor=tizen \
--with-msm
make %{?_smp_mflags}
@@ -310,8 +311,8 @@ rm -f %{_dbpath}/Filemd5s \
%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