Skip to content

Commit

Permalink
Rearrange version suffix
Browse files Browse the repository at this point in the history
Make it variant.dist (so, qubes.fc32), not dist.variant. This makes
it consistent with other packages, so the suffix is always
dist.arch.rpm.
  • Loading branch information
marmarek committed Feb 5, 2023
1 parent eef8e33 commit e9bb8f2
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions kernel.spec.in
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,15 @@
#

%define variant qubes
%define plainrel @REL@%{?dist}
%define plainrel @REL@
%define version %(echo '@VERSION@' | sed 's/-rc.*//')
%define upstream_version @VERSION@
%if "%{version}" != "%{upstream_version}"
%define prerelease 1
%define rel 0.%(echo '@VERSION@' | sed 's/.*-rc/rc/').%{plainrel}.%{variant}
%define rel 0.%(echo '@VERSION@' | sed 's/.*-rc/rc/').%{plainrel}.%{variant}%{?dist}
%else
%define prerelease 0
%define rel %{plainrel}.%{variant}
%define rel %{plainrel}.%{variant}%{?dist}
%endif

%define name_suffix -latest
Expand All @@ -28,7 +28,7 @@
%define build_src_dir %my_builddir/linux-%upstream_version
%define src_install_dir /usr/src/kernels/%kernelrelease
%define kernel_build_dir %my_builddir/linux-obj
%define vm_install_dir /var/lib/qubes/vm-kernels/%upstream_version-%{plainrel}
%define vm_install_dir /var/lib/qubes/vm-kernels/%upstream_version-%{plainrel}%{?dist}

%define install_vdso 1
%define debuginfodir /usr/lib/debug
Expand Down

0 comments on commit e9bb8f2

Please sign in to comment.