mirror of
https://abf.rosa.ru/djam/samba.git
synced 2025-02-24 09:32:49 +00:00
py2
This commit is contained in:
parent
3f7ace60be
commit
b8555c0217
1 changed files with 4 additions and 4 deletions
|
@ -808,7 +808,7 @@ Requires: %{libpolicy} = %{EVRD}
|
||||||
Samba Python modules.
|
Samba Python modules.
|
||||||
|
|
||||||
%files python
|
%files python
|
||||||
%{py_platsitedir}/samba/*
|
%{py2_platsitedir}/samba/*
|
||||||
|
|
||||||
#----------------------------------------------------------------------------
|
#----------------------------------------------------------------------------
|
||||||
|
|
||||||
|
@ -1463,13 +1463,13 @@ mkdir -p %{buildroot}%{_libdir}/%{name}/vfs
|
||||||
mkdir -p %{buildroot}%{_datadir}/%{name}/scripts
|
mkdir -p %{buildroot}%{_datadir}/%{name}/scripts
|
||||||
|
|
||||||
# Fix some paths so provision works:
|
# Fix some paths so provision works:
|
||||||
perl -pi -e 's,default_ldb_modules_dir = None,default_ldb_modules_dir = \"%{_libdir}/%{name}/ldb\",g' %{buildroot}/%{py_platsitedir}/samba/__init__.py
|
perl -pi -e 's,default_ldb_modules_dir = None,default_ldb_modules_dir = \"%{_libdir}/%{name}/ldb\",g' %{buildroot}/%{py2_platsitedir}/samba/__init__.py
|
||||||
#perl -pi -e 's,share/samba/setup,share/%{name}/setup,g' %{buildroot}/%{python_sitearch}/samba/provision.py
|
#perl -pi -e 's,share/samba/setup,share/%{name}/setup,g' %{buildroot}/%{python_sitearch}/samba/provision.py
|
||||||
|
|
||||||
# https://bugzilla.samba.org/show_bug.cgi?id=13866
|
# https://bugzilla.samba.org/show_bug.cgi?id=13866
|
||||||
# conflicts between python-tdb and samba-python
|
# conflicts between python-tdb and samba-python
|
||||||
rm -fv %{buildroot}/%{py_platsitedir}/*.so
|
rm -fv %{buildroot}/%{py2_platsitedir}/*.so
|
||||||
rm -fv %{buildroot}/%{py_platsitedir}/*.py
|
rm -fv %{buildroot}/%{py2_platsitedir}/*.py
|
||||||
|
|
||||||
%if %{with test}
|
%if %{with test}
|
||||||
for i in {%{testbin}};do
|
for i in {%{testbin}};do
|
||||||
|
|
Loading…
Add table
Reference in a new issue