Fix dependencies and don't package unused dc libaries.
This commit is contained in:
parent
93f74bb704
commit
e1e515e2f2
13
samba.spec
13
samba.spec
@ -345,7 +345,9 @@ Summary: Testing tools for Samba servers and clients
|
|||||||
Group: Applications/System
|
Group: Applications/System
|
||||||
Requires: %{name} = %{samba_depver}
|
Requires: %{name} = %{samba_depver}
|
||||||
Requires: %{name}-common = %{samba_depver}
|
Requires: %{name}-common = %{samba_depver}
|
||||||
Requires: %{name}-dc = %{samba_depver}
|
%if %with_dc
|
||||||
|
Requires: %{name}-dc-libs = %{samba_depver}
|
||||||
|
%endif
|
||||||
Requires: %{name}-libs = %{samba_depver}
|
Requires: %{name}-libs = %{samba_depver}
|
||||||
Requires: %{name}-winbind = %{samba_depver}
|
Requires: %{name}-winbind = %{samba_depver}
|
||||||
|
|
||||||
@ -836,9 +838,9 @@ rm -rf %{buildroot}
|
|||||||
### DC
|
### DC
|
||||||
%files dc
|
%files dc
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
%{_libdir}/samba/ldb
|
%exclude %{_libdir}/samba/ldb/ildap.so
|
||||||
%{_libdir}/samba/libdfs_server_ad.so
|
%exclude %{_libdir}/samba/ldb/ldbsamba_extensions.so
|
||||||
%{_libdir}/samba/libdsdb-module.so
|
%exclude %{_libdir}/samba/libdfs_server_ad.so
|
||||||
|
|
||||||
%if %with_dc
|
%if %with_dc
|
||||||
%{_bindir}/samba-tool
|
%{_bindir}/samba-tool
|
||||||
@ -875,6 +877,7 @@ rm -rf %{buildroot}
|
|||||||
%{_libdir}/samba/process_model
|
%{_libdir}/samba/process_model
|
||||||
%{_libdir}/samba/service
|
%{_libdir}/samba/service
|
||||||
%{_libdir}/libdcerpc-server.so.*
|
%{_libdir}/libdcerpc-server.so.*
|
||||||
|
%{_libdir}/samba/libdsdb-module.so
|
||||||
%{_libdir}/samba/libntvfs.so
|
%{_libdir}/samba/libntvfs.so
|
||||||
%{_libdir}/samba/libposix_eadb.so
|
%{_libdir}/samba/libposix_eadb.so
|
||||||
%{_libdir}/samba/bind9/dlz_bind9_9.so
|
%{_libdir}/samba/bind9/dlz_bind9_9.so
|
||||||
@ -1271,6 +1274,8 @@ rm -rf %{buildroot}
|
|||||||
%{_libdir}/samba/libsubunit.so
|
%{_libdir}/samba/libsubunit.so
|
||||||
%if %with_dc
|
%if %with_dc
|
||||||
%{_libdir}/samba/libdlz_bind9_for_torture.so
|
%{_libdir}/samba/libdlz_bind9_for_torture.so
|
||||||
|
%else
|
||||||
|
%{_libdir}/samba/libdsdb-module.so
|
||||||
%endif
|
%endif
|
||||||
%{_mandir}/man1/gentest.1*
|
%{_mandir}/man1/gentest.1*
|
||||||
%{_mandir}/man1/locktest.1*
|
%{_mandir}/man1/locktest.1*
|
||||||
|
Loading…
Reference in New Issue
Block a user