Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package rke2-selinux for openSUSE:Factory 
checked in at 2025-06-23 15:03:38
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/rke2-selinux (Old)
 and      /work/SRC/openSUSE:Factory/.rke2-selinux.new.7067 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "rke2-selinux"

Mon Jun 23 15:03:38 2025 rev:5 rq:1287658 version:0.19.stable.1

Changes:
--------
--- /work/SRC/openSUSE:Factory/rke2-selinux/rke2-selinux.changes        
2025-06-18 17:58:35.826224255 +0200
+++ /work/SRC/openSUSE:Factory/.rke2-selinux.new.7067/rke2-selinux.changes      
2025-06-23 15:04:09.054925409 +0200
@@ -1,0 +2,5 @@
+Sun Jun 22 06:58:24 UTC 2025 - Johannes Kastl 
<opensuse_buildserv...@ojkastl.de>
+
+- add Makefile to make updating the hardcoded versions easier
+
+-------------------------------------------------------------------

New:
----
  Makefile
  PACKAGING_README.md

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ rke2-selinux.spec ++++++
--- /var/tmp/diff_new_pack.Ej0FZW/_old  2025-06-23 15:04:09.950962791 +0200
+++ /var/tmp/diff_new_pack.Ej0FZW/_new  2025-06-23 15:04:09.950962791 +0200
@@ -42,11 +42,13 @@
 Group:          System Environment/Base
 License:        Apache-2.0
 URL:            https://github.com/rancher/rke2-selinux
-Source:         %{name}-%{version}.tar.gz
+Source0:        %{name}-%{version}.tar.gz
+Source1:        Makefile
+Source2:        PACKAGING_README.md
 
 BuildArch:      noarch
 BuildRequires:  container-selinux >= %{container_policyver}
-BuildRequires:  git
+BuildRequires:  git-core
 BuildRequires:  selinux-policy >= %{selinux_policyver}
 BuildRequires:  selinux-policy-devel >= %{selinux_policyver}
 
@@ -65,7 +67,7 @@
 This package installs and sets up the SELinux policy security module for rke2.
 
 %prep
-%setup -q
+%autosetup
 
 %build
 cd policy/microos

++++++ Makefile ++++++
.ONESHELL:

NAME = rke2-selinux
SPEC = rke2-selinux.spec

default: clean osc_services package_versions

.PHONY: clean
clean:
        rm -rf $(NAME) $(NAME)-*.obscpio

.PHONY: osc_services
osc_services:
        osc service manualrun

.PHONY: package_versions
package_versions:
        selinux_policyver=$$( awk '/^%define selinux_policyver/ {print $$3}' 
$(NAME)/policy/microos/rke2-selinux.spec )
        echo "selinux_policyver is set to $$selinux_policyver"
        container_policyver=$$( awk '/^%define container_policyver/ {print 
$$3}' $(NAME)/policy/microos/rke2-selinux.spec )
        echo "container_policyver is set to $$container_policyver"

        echo "Replacing selinux_policyver"
        sed -i "/^%define selinux_policyver/ s/%define 
selinux_policyver.*/%define selinux_policyver $$selinux_policyver/" $(SPEC)
        echo "Replacing container_policyver"
        sed -i "/^%define container_policyver/ s/%define 
container_policyver.*/%define container_policyver $$container_policyver/" 
$(SPEC)

++++++ PACKAGING_README.md ++++++
# Packaging rke2-selinux

When updating to a new version, you need to update the version constraints for
the selinux policy packages.

1. Change the version in the `_service` file
2. Run `make`
3. Check the changelog entry created by the obs services
5. Commit the changes as usual

For this to work, you need to have the `gawk` package installed.

For the OBS workflow you need the `obs-service-tar_scm` and
`obs-service-recompress` packages installed locally.

Reply via email to