Define python_sitearch if undefined.
OBS-URL: https://build.opensuse.org/package/show/network:samba:STABLE/ldb?expand=0&rev=7
This commit is contained in:
parent
c5ce93bd26
commit
c6fffb5bb6
@ -2,7 +2,7 @@
|
||||
Thu May 31 22:22:49 UTC 2012 - lmuelle@suse.com
|
||||
|
||||
- Define and use talloc, tdb, and tevent version macros.
|
||||
- Define python_version if undefined.
|
||||
- Define python_sitearch if undefined.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu May 31 13:46:42 UTC 2012 - lmuelle@suse.com
|
||||
|
8
ldb.spec
8
ldb.spec
@ -17,7 +17,7 @@
|
||||
|
||||
# norootforbuild
|
||||
|
||||
%{!?python_version: %global python_version %(%{__python} -c "from distutils.sysconfig import get_python_version; print(get_python_version())")}
|
||||
%{!?python_sitearch: %global python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")}
|
||||
|
||||
%define talloc_version 2.0.7
|
||||
%define tdb_version 1.2.10
|
||||
@ -144,9 +144,9 @@ DESTDIR=${RPM_BUILD_ROOT} make install
|
||||
%{_libdir}/libpyldb-util.so
|
||||
%{_libdir}/pkgconfig/ldb.pc
|
||||
%{_libdir}/pkgconfig/pyldb-util.pc
|
||||
%{_libdir}/python%{python_version}/site-packages/ldb.so
|
||||
%{_libdir}/python%{python_version}/site-packages/talloc.so
|
||||
%{_libdir}/python%{python_version}/site-packages/tdb.so
|
||||
%{python_sitearch}/ldb.so
|
||||
%{python_sitearch}/talloc.so
|
||||
%{python_sitearch}/tdb.so
|
||||
|
||||
%files -n ldb-tools
|
||||
%defattr(-,root,root)
|
||||
|
Loading…
Reference in New Issue
Block a user