Create package samba-tools, move there samba-tool binary

resolves: rhbz#2166124
This commit is contained in:
Pavel Filipenský 2023-02-10 20:55:16 +01:00
parent 306ca4dd30
commit 63931382e3
1 changed files with 27 additions and 59 deletions

View File

@ -135,7 +135,7 @@
%define samba_requires_eq() %(LC_ALL="C" echo '%*' | xargs -r rpm -q --qf 'Requires: %%{name} = %%{epoch}:%%{version}\\n' | sed -e 's/ (none):/ /' -e 's/ 0:/ /' | grep -v "is not") %define samba_requires_eq() %(LC_ALL="C" echo '%*' | xargs -r rpm -q --qf 'Requires: %%{name} = %%{epoch}:%%{version}\\n' | sed -e 's/ (none):/ /' -e 's/ 0:/ /' | grep -v "is not")
%global samba_version 4.17.5 %global samba_version 4.17.5
%global baserelease 0 %global baserelease 1
# This should be rc1 or %%nil # This should be rc1 or %%nil
%global pre_release %nil %global pre_release %nil
@ -511,7 +511,7 @@ SMB/CIFS clients.
### COMMON-TOOLS ### COMMON-TOOLS
%package common-tools %package common-tools
Summary: Tools for Samba servers and clients Summary: Tools for Samba clients
Requires: samba-common-libs = %{samba_depver} Requires: samba-common-libs = %{samba_depver}
Requires: samba-client-libs = %{samba_depver} Requires: samba-client-libs = %{samba_depver}
Requires: samba-libs = %{samba_depver} Requires: samba-libs = %{samba_depver}
@ -521,22 +521,28 @@ Requires: libnetapi = %{samba_depver}
Requires: libwbclient = %{samba_depver} Requires: libwbclient = %{samba_depver}
%endif %endif
Provides: bundled(libreplace)
%description common-tools
The samba-common-tools package contains tools for SMB/CIFS clients.
### SAMBA-TOOLS
%package tools
Summary: Tools for Samba servers
# samba-tool needs python3-samba # samba-tool needs python3-samba
Requires: python3-%{name} = %{samba_depver} Requires: python3-%{name} = %{samba_depver}
# samba-tool needs tdbbackup # samba-tool needs tdbbackup
Requires: tdb-tools Requires: tdb-tools
%if %{with dc} # samba-tool needs python3-samba-dc also on non-dc build
# samba-tool needs python3-samba-dc on a full build
Requires: python3-%{name}-dc = %{samba_depver} Requires: python3-%{name}-dc = %{samba_depver}
%if %{with dc}
# samba-tool needs mdb_copy for domain backup or upgrade provision # samba-tool needs mdb_copy for domain backup or upgrade provision
Requires: lmdb Requires: lmdb
%endif %endif
Provides: bundled(libreplace) %description tools
The samba-tools package contains tools for Samba servers
%description common-tools and for GPO management on domain members.
The samba-common-tools package contains tools for Samba servers and
SMB/CIFS clients.
### RPC ### RPC
%package dcerpc %package dcerpc
@ -877,7 +883,6 @@ Requires: %{name}-libs = %{samba_depver}
The python3-%{name}-test package contains the Python libraries used by the test suite of Samba. The python3-%{name}-test package contains the Python libraries used by the test suite of Samba.
If you want to run full set of Samba tests, you need to install this package. If you want to run full set of Samba tests, you need to install this package.
%if %{with dc} || %{with testsuite}
%package -n python3-samba-dc %package -n python3-samba-dc
Summary: Samba Python libraries for Samba AD Summary: Samba Python libraries for Samba AD
Requires: %{name}-client-libs = %{samba_depver} Requires: %{name}-client-libs = %{samba_depver}
@ -887,7 +892,6 @@ Requires: python3-%{name} = %{samba_depver}
%description -n python3-samba-dc %description -n python3-samba-dc
The python3-%{name}-dc package contains the Python libraries needed by programs The python3-%{name}-dc package contains the Python libraries needed by programs
to manage Samba AD. to manage Samba AD.
%endif
### PIDL ### PIDL
%package pidl %package pidl
@ -981,6 +985,7 @@ Requires(post): %{name}-client-libs = %{samba_depver}
Requires: %{name}-libs = %{samba_depver} Requires: %{name}-libs = %{samba_depver}
Requires(post): %{name}-libs = %{samba_depver} Requires(post): %{name}-libs = %{samba_depver}
Requires: %{name}-winbind-modules = %{samba_depver} Requires: %{name}-winbind-modules = %{samba_depver}
Recommends: %{name}-tools = %{samba_depver}
%if %{with libwbclient} %if %{with libwbclient}
Requires(post): libwbclient = %{samba_depver} Requires(post): libwbclient = %{samba_depver}
@ -1408,54 +1413,10 @@ touch %{buildroot}%{_libdir}/krb5/plugins/libkrb5/winbind_krb5_locator.so
%if %{without dc} && %{without testsuite} %if %{without dc} && %{without testsuite}
for i in \ for i in \
%{_libdir}/samba/libdfs-server-ad-samba4.so \
%{_libdir}/samba/libdsdb-garbage-collect-tombstones-samba4.so \
%{_libdir}/samba/libscavenge-dns-records-samba4.so \
%{_mandir}/man8/samba.8 \ %{_mandir}/man8/samba.8 \
%{_mandir}/man8/samba_downgrade_db.8 \ %{_mandir}/man8/samba_downgrade_db.8 \
%{_mandir}/man8/samba-gpupdate.8 \ %{_mandir}/man8/samba-gpupdate.8 \
%{_unitdir}/samba.service \ %{_unitdir}/samba.service \
%{python3_sitearch}/samba/dcerpc/dnsserver.*.so \
%{python3_sitearch}/samba/dnsserver.py \
%{python3_sitearch}/samba/domain_update.py \
%{python3_sitearch}/samba/forest_update.py \
%{python3_sitearch}/samba/kcc/__init__.py \
%{python3_sitearch}/samba/kcc/debug.py \
%{python3_sitearch}/samba/kcc/graph.py \
%{python3_sitearch}/samba/kcc/graph_utils.py \
%{python3_sitearch}/samba/kcc/kcc_utils.py \
%{python3_sitearch}/samba/kcc/ldif_import_export.py \
%{python3_sitearch}/samba/kcc/__pycache__/__init__.*.pyc \
%{python3_sitearch}/samba/kcc/__pycache__/debug.*.pyc \
%{python3_sitearch}/samba/kcc/__pycache__/graph.*.pyc \
%{python3_sitearch}/samba/kcc/__pycache__/graph_utils.*.pyc \
%{python3_sitearch}/samba/kcc/__pycache__/kcc_utils.*.pyc \
%{python3_sitearch}/samba/kcc/__pycache__/ldif_import_export.*.pyc \
%{python3_sitearch}/samba/ms_forest_updates_markdown.py \
%{python3_sitearch}/samba/ms_schema_markdown.py \
%{python3_sitearch}/samba/provision/__init__.py \
%{python3_sitearch}/samba/provision/backend.py \
%{python3_sitearch}/samba/provision/common.py \
%{python3_sitearch}/samba/provision/kerberos_implementation.py \
%{python3_sitearch}/samba/provision/kerberos.py \
%{python3_sitearch}/samba/provision/sambadns.py \
%{python3_sitearch}/samba/provision/__pycache__/__init__.*.pyc \
%{python3_sitearch}/samba/provision/__pycache__/backend.*.pyc \
%{python3_sitearch}/samba/provision/__pycache__/common.*.pyc \
%{python3_sitearch}/samba/provision/__pycache__/kerberos_implementation.*.pyc \
%{python3_sitearch}/samba/provision/__pycache__/kerberos.*.pyc \
%{python3_sitearch}/samba/provision/__pycache__/sambadns.*.pyc \
%{python3_sitearch}/samba/__pycache__/domain_update.*.pyc \
%{python3_sitearch}/samba/__pycache__/forest_update.*.pyc \
%{python3_sitearch}/samba/__pycache__/ms_forest_updates_markdown.*.pyc \
%{python3_sitearch}/samba/__pycache__/ms_schema_markdown.*.pyc \
%{python3_sitearch}/samba/__pycache__/remove_dc.*.pyc \
%{python3_sitearch}/samba/__pycache__/schema.*.pyc \
%{python3_sitearch}/samba/__pycache__/uptodateness.*.pyc \
%{python3_sitearch}/samba/remove_dc.py \
%{python3_sitearch}/samba/samdb.py \
%{python3_sitearch}/samba/schema.py \
%{python3_sitearch}/samba/uptodateness.py \
%{_sbindir}/samba-gpupdate \ %{_sbindir}/samba-gpupdate \
; do ; do
rm -f %{buildroot}$i rm -f %{buildroot}$i
@ -2071,11 +2032,11 @@ fi
%{_libdir}/samba/pdb/smbpasswd.so %{_libdir}/samba/pdb/smbpasswd.so
%{_libdir}/samba/pdb/tdbsam.so %{_libdir}/samba/pdb/tdbsam.so
### COMMON-TOOLS
%files common-tools %files common-tools
%{_bindir}/net %{_bindir}/net
%{_bindir}/pdbedit %{_bindir}/pdbedit
%{_bindir}/profiles %{_bindir}/profiles
%{_bindir}/samba-tool
%{_bindir}/smbcontrol %{_bindir}/smbcontrol
%{_bindir}/smbpasswd %{_bindir}/smbpasswd
%{_bindir}/testparm %{_bindir}/testparm
@ -2084,9 +2045,13 @@ fi
%{_mandir}/man1/testparm.1* %{_mandir}/man1/testparm.1*
%{_mandir}/man8/net.8* %{_mandir}/man8/net.8*
%{_mandir}/man8/pdbedit.8* %{_mandir}/man8/pdbedit.8*
%{_mandir}/man8/samba-tool.8*
%{_mandir}/man8/smbpasswd.8* %{_mandir}/man8/smbpasswd.8*
### TOOLS
%files tools
%{_bindir}/samba-tool
%{_mandir}/man8/samba-tool.8*
### RPC ### RPC
%files dcerpc %files dcerpc
%dir %{_libexecdir}/samba %dir %{_libexecdir}/samba
@ -2796,7 +2761,6 @@ fi
%{_libdir}/libsamba-policy.*.so %{_libdir}/libsamba-policy.*.so
%{_libdir}/pkgconfig/samba-policy.*.pc %{_libdir}/pkgconfig/samba-policy.*.pc
%if %{with dc} || %{with testsuite}
%files -n python3-%{name}-dc %files -n python3-%{name}-dc
%{python3_sitearch}/samba/samdb.py %{python3_sitearch}/samba/samdb.py
%{python3_sitearch}/samba/schema.py %{python3_sitearch}/samba/schema.py
@ -2812,7 +2776,9 @@ fi
%{python3_sitearch}/samba/__pycache__/uptodateness.*.pyc %{python3_sitearch}/samba/__pycache__/uptodateness.*.pyc
%{python3_sitearch}/samba/dcerpc/dnsserver.*.so %{python3_sitearch}/samba/dcerpc/dnsserver.*.so
%if %{with dc} || %{with testsuite}
%{python3_sitearch}/samba/dckeytab.*.so %{python3_sitearch}/samba/dckeytab.*.so
%endif
%{python3_sitearch}/samba/domain_update.py %{python3_sitearch}/samba/domain_update.py
%{python3_sitearch}/samba/forest_update.py %{python3_sitearch}/samba/forest_update.py
%{python3_sitearch}/samba/ms_forest_updates_markdown.py %{python3_sitearch}/samba/ms_forest_updates_markdown.py
@ -2853,7 +2819,6 @@ fi
%{python3_sitearch}/samba/remove_dc.py %{python3_sitearch}/samba/remove_dc.py
%{python3_sitearch}/samba/uptodateness.py %{python3_sitearch}/samba/uptodateness.py
%endif
%files -n python3-%{name}-test %files -n python3-%{name}-test
%dir %{python3_sitearch}/samba/tests %dir %{python3_sitearch}/samba/tests
@ -4341,6 +4306,9 @@ fi
%endif %endif
%changelog %changelog
* Tue Feb 14 2023 Pavel Filipenský <pfilipen@redhat.com> - 4.17.5-1
- resolves: rhbz#2166124 - Create package samba-tools, move there samba-tool binary
* Thu Jan 26 2023 Guenther Deschner <gdeschner@redhat.com> - 4.17.5-0 * Thu Jan 26 2023 Guenther Deschner <gdeschner@redhat.com> - 4.17.5-0
- Update to version 4.17.5 - Update to version 4.17.5