Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package cifs-utils for openSUSE:Factory 
checked in at 2026-08-12 16:10:15
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/cifs-utils (Old)
 and      /work/SRC/openSUSE:Factory/.cifs-utils.new.17972 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "cifs-utils"

Wed Aug 12 16:10:15 2026 rev:83 rq:1370567 version:7.7

Changes:
--------
--- /work/SRC/openSUSE:Factory/cifs-utils/cifs-utils.changes    2026-07-14 
13:45:00.580903142 +0200
+++ /work/SRC/openSUSE:Factory/.cifs-utils.new.17972/cifs-utils.changes 
2026-08-12 16:10:38.265753316 +0200
@@ -1,0 +2,5 @@
+Sat Aug  8 14:41:40 UTC 2026 - Matej Cepl <[email protected]>
+
+- Correctly fix shebangs in Python scripts (bsc#1270134).
+
+-------------------------------------------------------------------

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

Other differences:
------------------
++++++ cifs-utils.spec ++++++
--- /var/tmp/diff_new_pack.3mAKMV/_old  2026-08-12 16:10:40.685854386 +0200
+++ /var/tmp/diff_new_pack.3mAKMV/_new  2026-08-12 16:10:40.693854720 +0200
@@ -49,6 +49,7 @@
 # we need to require either py2 or py3 package
 # some products do not have a py2/py3 versions
 %if 0%{?suse_version} >= 1500
+BuildRequires:  python-rpm-macros
 BuildRequires:  python3-docutils
 %else
 BuildRequires:  python-docutils
@@ -87,12 +88,6 @@
 Requires:       cifs-idmap-plugin
 Requires:       keyutils
 Suggests:       wb-cifs-idmap-plugin
-# For modern Python packaging, let's start with SLE-16
-# If there is a request for older versions support, let me know
-# ([email protected])
-%if 0%{?suse_version} >= 1600
-BuildRequires:  python-rpm-macros
-%endif
 %if ! %{defined _rundir}
 %define _rundir %{_localstatedir}/run
 %endif
@@ -137,12 +132,6 @@
 %prep
 %setup -q
 cp -a ${RPM_SOURCE_DIR}/README.cifstab.migration .
-pyscripts="smb2-quota smbinfo"
-for i in $pyscripts; do
-    if [ -e $i ]; then
-        sed -i 's,^#!/usr/bin/env python.*$,#!/usr/bin/python3,' $i
-    fi
-done
 
 %patch -P 1 -p1
 
@@ -190,7 +179,15 @@
 %fdupes %{buildroot}
 %endif
 
+%if 0%{?suse_version} >= 1500
 %python3_fix_shebang
+%else
+for i in %{buildroot}%{_bindir}/{smb2-quota,smbinfo}; do
+    if [ -x "$i" ]; then
+        sed -i 's|^#!/usr/bin/env python.*$|#!/usr/bin/python3|' "$i"
+    fi
+done
+%endif
 
 %post
 

Reply via email to