Use baserelease to set the release number

This commit is contained in:
Andreas Schneider 2022-08-02 11:17:13 +02:00
parent e138eb8125
commit 3907ec760c

View File

@ -30,10 +30,18 @@
%global configure_default_ccache_name 1 %global configure_default_ccache_name 1
%global configured_default_ccache_name KEYRING:persistent:%%{uid} %global configured_default_ccache_name KEYRING:persistent:%%{uid}
# for prereleases, % global prerelease beta1 # Use baserelease to set the release number!
%if %{defined prerelease} #
%global dashpre -%{prerelease} # baserelease is what we have standardized across Fedora and what
%global zdpd 0.%{prerelease}. # rpmdev-bumpspec knows how to handle.
%global baserelease 12
# This should be e.g. beta1 or %%nil
%global pre_release %nil
%global krb5_release %{baserelease}
%if "x%{?pre_release}" != "x"
%global krb5_release 0.%{baserelease}.%{pre_release}
%endif %endif
# Should be in form 5.0, 6.1, etc. # Should be in form 5.0, 6.1, etc.
@ -42,7 +50,7 @@
Summary: The Kerberos network authentication system Summary: The Kerberos network authentication system
Name: krb5 Name: krb5
Version: 1.19.2 Version: 1.19.2
Release: %{?zdpd}11%{?dist}.1 Release: %{krb5_release}%{?dist}
# rharwood has trust path to signing key and verifies on check-in # rharwood has trust path to signing key and verifies on check-in
Source0: https://web.mit.edu/kerberos/dist/krb5/%{version}/krb5-%{version}%{?dashpre}.tar.gz Source0: https://web.mit.edu/kerberos/dist/krb5/%{version}/krb5-%{version}%{?dashpre}.tar.gz
@ -651,6 +659,9 @@ exit 0
%{_libdir}/libkadm5srv_mit.so.* %{_libdir}/libkadm5srv_mit.so.*
%changelog %changelog
* Tue Aug 02 2022 Andreas Schneider <asn@redhat.com> - 1.19.2-12
- Use baserelease to set the release number
* Thu Jul 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1.19.2-11.1 * Thu Jul 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1.19.2-11.1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild