Don't include libs which are not built, and include those which are

tags/samba-4.8.3-100.dc
Daniel Berteaud 6 years ago
parent a3d2851754
commit e4c6aee1db
  1. 36
      samba.spec

@ -1485,6 +1485,31 @@ rm -rf %{buildroot}
%{_libdir}/samba/libutil-reg-samba4.so %{_libdir}/samba/libutil-reg-samba4.so
%{_libdir}/samba/libutil-setid-samba4.so %{_libdir}/samba/libutil-setid-samba4.so
%{_libdir}/samba/libutil-tdb-samba4.so %{_libdir}/samba/libutil-tdb-samba4.so
%{_libdir}/samba/libHDB-SAMBA4-samba4.so
%{_libdir}/samba/libasn1-samba4.so.8
%{_libdir}/samba/libasn1-samba4.so.8.0.0
%{_libdir}/samba/libcom_err-samba4.so.0
%{_libdir}/samba/libcom_err-samba4.so.0.25
%{_libdir}/samba/libgssapi-samba4.so.2
%{_libdir}/samba/libgssapi-samba4.so.2.0.0
%{_libdir}/samba/libhcrypto-samba4.so.5
%{_libdir}/samba/libhcrypto-samba4.so.5.0.1
%{_libdir}/samba/libhdb-samba4.so.11
%{_libdir}/samba/libhdb-samba4.so.11.0.2
%{_libdir}/samba/libheimbase-samba4.so.1
%{_libdir}/samba/libheimbase-samba4.so.1.0.0
%{_libdir}/samba/libheimntlm-samba4.so.1
%{_libdir}/samba/libheimntlm-samba4.so.1.0.1
%{_libdir}/samba/libhx509-samba4.so.5
%{_libdir}/samba/libhx509-samba4.so.5.0.0
%{_libdir}/samba/libkdc-samba4.so.2
%{_libdir}/samba/libkdc-samba4.so.2.0.0
%{_libdir}/samba/libkrb5-samba4.so.26
%{_libdir}/samba/libkrb5-samba4.so.26.0.0
%{_libdir}/samba/libroken-samba4.so.19
%{_libdir}/samba/libroken-samba4.so.19.0.1
%{_libdir}/samba/libwind-samba4.so.0
%{_libdir}/samba/libwind-samba4.so.0.0.0
%if ! %with_libwbclient %if ! %with_libwbclient
%{_libdir}/samba/libwbclient.so.* %{_libdir}/samba/libwbclient.so.*
@ -1593,7 +1618,7 @@ rm -rf %{buildroot}
#%{_libdir}/krb5/plugins/kdb/samba.so #%{_libdir}/krb5/plugins/kdb/samba.so
%{_libdir}/samba/auth/samba4.so %{_libdir}/samba/auth/samba4.so
%{_libdir}/samba/libgpo-samba4.so #%{_libdir}/samba/libgpo-samba4.so
%{_libdir}/samba/libpac-samba4.so %{_libdir}/samba/libpac-samba4.so
%dir %{_libdir}/samba/gensec %dir %{_libdir}/samba/gensec
%{_libdir}/samba/gensec/krb5.so %{_libdir}/samba/gensec/krb5.so
@ -1997,6 +2022,8 @@ rm -rf %{buildroot}
%{python_sitearch}/samba/ms_display_specifiers.py* %{python_sitearch}/samba/ms_display_specifiers.py*
%{python_sitearch}/samba/ms_schema.py* %{python_sitearch}/samba/ms_schema.py*
%{python_sitearch}/samba/ndr.py* %{python_sitearch}/samba/ndr.py*
%{python_sitearch}/samba/colour.py*
%{python_sitearch}/samba/graph.py*
%{python_sitearch}/samba/net.so %{python_sitearch}/samba/net.so
%{python_sitearch}/samba/netbios.so %{python_sitearch}/samba/netbios.so
%dir %{python_sitearch}/samba/emulate %dir %{python_sitearch}/samba/emulate
@ -2060,6 +2087,7 @@ rm -rf %{buildroot}
%{python_sitearch}/samba/dcerpc/dnsserver.so %{python_sitearch}/samba/dcerpc/dnsserver.so
%{python_sitearch}/samba/netcmd/fsmo.py* %{python_sitearch}/samba/netcmd/fsmo.py*
%{python_sitearch}/samba/netcmd/rodc.py* %{python_sitearch}/samba/netcmd/rodc.py*
%{python_sitearch}/samba/netcmd/visualize.py*
%dir %{python_sitearch}/samba/kcc %dir %{python_sitearch}/samba/kcc
%{python_sitearch}/samba/kcc/__init__.py* %{python_sitearch}/samba/kcc/__init__.py*
@ -2220,6 +2248,8 @@ rm -rf %{buildroot}
%{python_sitearch}/samba/tests/upgradeprovision.py* %{python_sitearch}/samba/tests/upgradeprovision.py*
%{python_sitearch}/samba/tests/upgradeprovisionneeddc.py* %{python_sitearch}/samba/tests/upgradeprovisionneeddc.py*
%{python_sitearch}/samba/tests/xattr.py* %{python_sitearch}/samba/tests/xattr.py*
%{python_sitearch}/samba/tests/krb5_credentials.py*
%{python_sitearch}/samba/tests/password_quality.py*
### TEST ### TEST
%files test %files test
@ -2271,10 +2301,10 @@ rm -rf %{buildroot}
%defattr(-,root,root) %defattr(-,root,root)
%{_bindir}/ntlm_auth %{_bindir}/ntlm_auth
%{_bindir}/wbinfo %{_bindir}/wbinfo
%{_libdir}/samba/krb5/winbind_krb5_localauth.so #%{_libdir}/samba/krb5/winbind_krb5_localauth.so
%{_mandir}/man1/ntlm_auth.1.gz %{_mandir}/man1/ntlm_auth.1.gz
%{_mandir}/man1/wbinfo.1* %{_mandir}/man1/wbinfo.1*
%{_mandir}/man8/winbind_krb5_localauth.8* #%{_mandir}/man8/winbind_krb5_localauth.8*
### WINBIND-KRB5-LOCATOR ### WINBIND-KRB5-LOCATOR
%files winbind-krb5-locator %files winbind-krb5-locator

Loading…
Cancel
Save