SHA256
1
0
forked from pool/ldb

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:
Lars Müller 2012-05-31 22:43:53 +00:00 committed by Git OBS Bridge
parent c5ce93bd26
commit c6fffb5bb6
2 changed files with 5 additions and 5 deletions

View File

@ -2,7 +2,7 @@
Thu May 31 22:22:49 UTC 2012 - lmuelle@suse.com Thu May 31 22:22:49 UTC 2012 - lmuelle@suse.com
- Define and use talloc, tdb, and tevent version macros. - 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 Thu May 31 13:46:42 UTC 2012 - lmuelle@suse.com

View File

@ -17,7 +17,7 @@
# norootforbuild # 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 talloc_version 2.0.7
%define tdb_version 1.2.10 %define tdb_version 1.2.10
@ -144,9 +144,9 @@ DESTDIR=${RPM_BUILD_ROOT} make install
%{_libdir}/libpyldb-util.so %{_libdir}/libpyldb-util.so
%{_libdir}/pkgconfig/ldb.pc %{_libdir}/pkgconfig/ldb.pc
%{_libdir}/pkgconfig/pyldb-util.pc %{_libdir}/pkgconfig/pyldb-util.pc
%{_libdir}/python%{python_version}/site-packages/ldb.so %{python_sitearch}/ldb.so
%{_libdir}/python%{python_version}/site-packages/talloc.so %{python_sitearch}/talloc.so
%{_libdir}/python%{python_version}/site-packages/tdb.so %{python_sitearch}/tdb.so
%files -n ldb-tools %files -n ldb-tools
%defattr(-,root,root) %defattr(-,root,root)