diff --git a/container-selinux.spec b/container-selinux.spec index d1dda32..e2a043c 100644 --- a/container-selinux.spec +++ b/container-selinux.spec @@ -20,14 +20,20 @@ %define no_user_namespace 1 %endif -# copr_build is more intuitive than copr_username -%if %{defined copr_username} -%define copr_build 1 +# https://redhat.atlassian.net/browse/RHEL-151636 +# RHEL <= 9 and Fedora <= 43 have older policydb versions +%if (%{defined rhel} && 0%{?rhel} <= 9) || (%{defined fedora} && 0%{?fedora} <= 43) +%define old_policydb 1 +%endif + +# set copr_build is more intuitive than copr_username +%if %{defined copr_username} && "%{copr_username}" == "rhcontainerbot" && "%{copr_projectname}" == "podman-next" +%define next_build 1 %endif Name: container-selinux -# Set different Epochs for copr and koji -%if %{defined copr_build} +# Set different Epoch for rhcontainerbot/podman-next copr build +%if %{defined next_build} Epoch: 102 %else Epoch: 4 @@ -35,7 +41,7 @@ Epoch: 4 # Keep Version in upstream specfile at 0. It will be automatically set # to the correct value by Packit for copr and koji builds. # IGNORE this comment if you're looking at it in dist-git. -Version: 2.249.0 +Version: 2.250.0 Release: 1%{?dist} License: GPL-2.0-only URL: https://github.com/containers/%{name} @@ -52,7 +58,11 @@ Requires: selinux-policy >= %_selinux_policy_version Requires(post): selinux-policy-base >= %_selinux_policy_version Requires(post): selinux-policy-any >= %_selinux_policy_version Recommends: selinux-policy-targeted >= %_selinux_policy_version +%if %{defined old_policydb} Requires(post): policycoreutils +%else +Requires(post): policycoreutils >= 3.10 +%endif Requires(post): libselinux-utils Requires(post): sed Obsoletes: %{name} <= 2:1.12.5-13 @@ -114,7 +124,7 @@ fi #define license tag if not already defined %{!?_licensedir:%global license %doc} -# Placeholder check to silence rpmlint +# Empty placeholder check to silence rpmlint %check %files @@ -138,6 +148,10 @@ if %{_sbindir}/selinuxenabled ; then fi %changelog +* Fri Jul 17 2026 Jindrich Novy - 4:2.250.0-1 +- update to https://github.com/containers/container-selinux/releases/tag/v2.250.0 +- Resolves: RHEL-212010 + * Mon Jun 01 2026 Jindrich Novy - 4:2.249.0-1 - update to 2.249.0 - Resolves: RHEL-180807 diff --git a/sources b/sources index a80394c..0cd88b2 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (v2.249.0.tar.gz) = 80d64cacce9800fb77e0fb9b177c3fefcb5d430a230f32105dcb8cf484ffc4bf1aa215c18d00d8001bf1170e622e942cbd2cbd8f3b639c6c52904ae2b90a1ba0 +SHA512 (v2.250.0.tar.gz) = faf2abfc20c5a0db6525caa3743894bd15f75a5cc7e95d03166e6fdd0079e506a0a6d27633d8867337a63b812206aaef97ab50a9511d3849066a75b5eb86ca4b