Skip to content

Commit c1842e0

Browse files
committed
workaround(azurelinux-release): simplify spec to address rpmautospec error
1 parent 073d933 commit c1842e0

File tree

1 file changed

+6
-10
lines changed

1 file changed

+6
-10
lines changed

base/comps/azurelinux-release/azurelinux-release.spec

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -33,10 +33,8 @@
3333
Summary: Azure Linux release files
3434
Name: azurelinux-release
3535
Version: 4.0
36-
# The numbering is 0.<r> before a given release is released,
37-
# and then just <r>.
38-
# TODO(azl): Review whether -p should be passed to %autorelease for development builds.
39-
Release: %autorelease
36+
# TODO(azl): Review whether we can move back to autorelease (with conditional -p)
37+
Release: 2%{?dist}
4038
License: MIT
4139
URL: https://aka.ms/azurelinux
4240

@@ -274,14 +272,11 @@ ln -s azurelinux-release %{buildroot}%{_sysconfdir}/system-release
274272
%global dist_debuginfod_url ima:enforcing https://debuginfod.microsoft.com/ ima:ignore
275273
# -------------------------------------------------------------------------
276274

277-
# Set the RELEASE_TYPE appropriately
278-
%define release_type %[0%{?is_development} ? "development" : "stable"]
279-
280-
# TODO(azl): review
275+
# TODO(azl): review; dynamically generate RELEASE_TYPE from release_type macro
281276
cat <<EOF >os-release
282277
NAME="%{dist_name}"
283278
VERSION="%{dist_version} (%{release_name}%{?prerelease})"
284-
RELEASE_TYPE=%{release_type}
279+
RELEASE_TYPE=development
285280
ID=azurelinux
286281
VERSION_ID=%{dist_version}
287282
VERSION_CODENAME=""
@@ -452,4 +447,5 @@ install -Dm0644 %{SOURCE16} -t %{buildroot}%{_prefix}/share/dnf5/libdnf.conf.d/
452447

453448

454449
%changelog
455-
%autochangelog
450+
* Fri Feb 27 2026 Reuben Olinsky <reubeno@microsoft.com> - 4.0-2
451+
- Initial version

0 commit comments

Comments
 (0)