Package samba-gpupdate also for RHEL9

This commit is contained in:
Andreas Schneider 2023-11-15 10:37:35 +01:00
parent 9996023e42
commit 4f9b479032

View File

@ -135,10 +135,16 @@
%bcond_with etcd_mutex %bcond_with etcd_mutex
%endif %endif
%if 0%{?fedora} || 0%{?rhel} >= 9
%bcond_without gpupdate
%else
%bcond_with gpupdate
%endif
%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.19.2 %global samba_version 4.19.2
%global baserelease 1 %global baserelease 2
# This should be rc1 or %%nil # This should be rc1 or %%nil
%global pre_release %nil %global pre_release %nil
@ -721,7 +727,7 @@ Samba VFS module for GlusterFS integration.
%endif %endif
### GPUPDATE ### GPUPDATE
%if %{with dc} %if %{with gpupdate}
%package gpupdate %package gpupdate
Summary: Samba GPO support for clients Summary: Samba GPO support for clients
Requires: cepces Requires: cepces
@ -733,7 +739,7 @@ Requires: python3-%{name} = %{samba_depver}
This package provides the samba-gpupdate tool to apply Group Policy Objects This package provides the samba-gpupdate tool to apply Group Policy Objects
(GPO) on Samba clients. (GPO) on Samba clients.
# /with dc #endif with gpupdate
%endif %endif
### KRB5-PRINTING ### KRB5-PRINTING
@ -1424,14 +1430,17 @@ touch %{buildroot}%{_libdir}/krb5/plugins/libkrb5/winbind_krb5_locator.so
for i in \ for i in \
%{_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 \
%{_unitdir}/samba.service \ %{_unitdir}/samba.service \
%{_sbindir}/samba-gpupdate \
; do ; do
rm -f %{buildroot}$i rm -f %{buildroot}$i
done done
%endif %endif
%if %{without gpupdate}
rm -f %{_sbindir}/samba-gpupdate
rm -f %{_mandir}/man8/samba-gpupdate.8
%endif
%if %{without vfs_glusterfs} %if %{without vfs_glusterfs}
rm -f %{buildroot}%{_mandir}/man8/vfs_glusterfs.8* rm -f %{buildroot}%{_mandir}/man8/vfs_glusterfs.8*
%endif %endif
@ -2327,10 +2336,11 @@ fi
%endif %endif
### GPUPDATE ### GPUPDATE
%if %{with dc} %if %{with gpupdate}
%files gpupdate %files gpupdate
%{_mandir}/man8/samba-gpupdate.8* %{_mandir}/man8/samba-gpupdate.8*
%{_sbindir}/samba-gpupdate %{_sbindir}/samba-gpupdate
#endif with gpupdate
%endif %endif
### KRB5-PRINTING ### KRB5-PRINTING
@ -4452,6 +4462,9 @@ fi
%endif %endif
%changelog %changelog
* Wed Nov 15 2023 Andreas Schneider <asn@redhat.com> - 4.19.2-2
- Package samba-gpupdate also for RHEL9
* Mon Oct 16 2023 Guenther Deschner <gdeschner@redhat.com> - 4.19.2-1 * Mon Oct 16 2023 Guenther Deschner <gdeschner@redhat.com> - 4.19.2-1
- resolves: #2244496 - Update to version 4.19.2 - resolves: #2244496 - Update to version 4.19.2