Remove autorelease - rpmautospec is not available for rhel-9 yet

related: RHEL-33645
This commit is contained in:
Pavel Filipenský 2024-05-29 10:05:33 +02:00
parent 549aeebc91
commit af9592a027

View File

@ -147,23 +147,13 @@
%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.20.1
# The release field is extended:
# <pkgrel>[.<extraver>][.<snapinfo>]%%{?dist}[.<minorbump>]
# Square brackets indicate an optional item.
#
# The autorelease macro accepts these parameters to allow packagers to specify
# those added fields:
#
# -p: Designates a pre-release, i.e. pkgrel will be prefixed with '0.'.
# -e <extraver>: Allows specifying the extraver portion of the release.
# -b <baserelease>: Allows specifying a custom base release number (the
# default is 1).
%global samba_release %autorelease
%global baserelease 1
# This should be rc1 or %%nil
%global pre_release %nil
%global samba_release %{baserelease}
%if "x%{?pre_release}" != "x"
%global samba_release %autorelease -p -e %pre_release
%global samba_release 0.%{baserelease}.%{pre_release}
%endif
@ -215,7 +205,7 @@
Name: samba
Version: %{samba_version}
Release: %{samba_release}
Release: %{samba_release}%{?dist}
%if 0%{?fedora}
Epoch: 2
@ -4604,6 +4594,9 @@ fi
%endif
%changelog
* Wed May 29 2024 Pavel Filipenský <pfilipen@redhat.com> - 4.20.1-1
- related: RHEL-33645 - Remove autorelease - rpmautospec is not available for rhel-9 yet
* Tue May 28 2024 Pavel Filipenský <pfilipen@redhat.com> - 4.20.1-1
- related: RHEL-33645 - Update to version 4.20.1
- resolves: RHEL-26337 - Fix site lookup for samba-gpupdate