Script 'mail_helper' called by obssrc
Hello community,
here is the log from the commit of package obs-service-format_spec_file for
openSUSE:Factory checked in at 2025-09-15 19:52:29
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/obs-service-format_spec_file (Old)
and /work/SRC/openSUSE:Factory/.obs-service-format_spec_file.new.1977
(New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "obs-service-format_spec_file"
Mon Sep 15 19:52:29 2025 rev:89 rq:1304678 version:20250907
Changes:
--------
---
/work/SRC/openSUSE:Factory/obs-service-format_spec_file/obs-service-format_spec_file.changes
2025-08-04 15:26:29.006179113 +0200
+++
/work/SRC/openSUSE:Factory/.obs-service-format_spec_file.new.1977/obs-service-format_spec_file.changes
2025-09-15 19:56:35.648392851 +0200
@@ -1,0 +2,10 @@
+Sun Sep 07 19:53:46 UTC 2025 - [email protected]
+
+- Update to version 20250907:
+ * Update test cases
+ * Special handling for 'SUSE Software Solutions Germany' license
+ * Keep 3rd party licenses intact
+ * Keep SUSE T&Cs close to SUSE Copyright
+ * Make create_copyright_section() return true when SUSE Copyright processed
+
+-------------------------------------------------------------------
Old:
----
obs-service-format_spec_file-20250804.obscpio
New:
----
obs-service-format_spec_file-20250907.obscpio
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ obs-service-format_spec_file.spec ++++++
--- /var/tmp/diff_new_pack.g1cuHk/_old 2025-09-15 19:56:36.164414518 +0200
+++ /var/tmp/diff_new_pack.g1cuHk/_new 2025-09-15 19:56:36.168414686 +0200
@@ -17,7 +17,7 @@
Name: obs-service-format_spec_file
-Version: 20250804
+Version: 20250907
Release: 0
Summary: An OBS source service: reformats a spec file to SUSE standard
License: GPL-2.0-only
++++++ _servicedata ++++++
--- /var/tmp/diff_new_pack.g1cuHk/_old 2025-09-15 19:56:36.208416366 +0200
+++ /var/tmp/diff_new_pack.g1cuHk/_new 2025-09-15 19:56:36.212416533 +0200
@@ -1,6 +1,6 @@
<servicedata>
<service name="tar_scm">
<param
name="url">https://github.com/openSUSE/obs-service-format_spec_file.git</param>
- <param
name="changesrevision">6ccc35b3e2f3601c3261c51e63d596c740f80e28</param></service></servicedata>
+ <param
name="changesrevision">3567c055567ed4e95d09dddf40a16aa2e7933f97</param></service></servicedata>
(No newline at EOF)
++++++ debian.dsc ++++++
--- /var/tmp/diff_new_pack.g1cuHk/_old 2025-09-15 19:56:36.232417373 +0200
+++ /var/tmp/diff_new_pack.g1cuHk/_new 2025-09-15 19:56:36.236417541 +0200
@@ -1,6 +1,6 @@
Format: 1.0
Source: obs-service-format-spec-file
-Version: 20250804
+Version: 20250907
Binary: obs-service-format-spec-file
Maintainer: Adrian Schroeter <[email protected]>
Architecture: all
++++++ obs-service-format_spec_file-20250804.obscpio ->
obs-service-format_spec_file-20250907.obscpio ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/obs-service-format_spec_file-20250804/prepare_spec
new/obs-service-format_spec_file-20250907/prepare_spec
--- old/obs-service-format_spec_file-20250804/prepare_spec 2025-08-04
09:26:41.000000000 +0200
+++ new/obs-service-format_spec_file-20250907/prepare_spec 2025-09-07
21:53:54.000000000 +0200
@@ -25,6 +25,20 @@
our $base_package = "";
our $header_name;
+our $suse_terms = '#
+# All modifications and additions to the file contributed by third parties
+# remain the property of their copyright owners, unless otherwise agreed
+# upon. The license for this file, and modifications and additions to the
+# file, is the same license as for the pristine package itself (unless the
+# license for the pristine package is not an Open Source License, in which
+# case the license is the MIT License). An "Open Source License" is a
+# license that conforms to the Open Source Definition (Version 1.9)
+# published by the Open Source Initiative.
+
+# Please submit bugfixes or comments via https://bugs.opensuse.org/
+#';
+
+
{
package SPDXMapper;
@@ -516,6 +530,7 @@
my @copyrights = @{$self->{copyright} || []};
if (! defined $self->{suse_copyright_set}) {
+ unshift @copyrights, $suse_terms;
unshift @copyrights, get_suse_copyright();
}
my $copy_list = join("\n", @copyrights);
@@ -530,18 +545,6 @@
print <<EOF;
#
$copy_list
-#
-# All modifications and additions to the file contributed by third parties
-# remain the property of their copyright owners, unless otherwise agreed
-# upon. The license for this file, and modifications and additions to the
-# file, is the same license as for the pristine package itself (unless the
-# license for the pristine package is not an Open Source License, in which
-# case the license is the MIT License). An "Open Source License" is a
-# license that conforms to the Open Source Definition (Version 1.9)
-# published by the Open Source Initiative.
-
-# Please submit bugfixes or comments via https://bugs.opensuse.org/
-#
EOF
if (defined $self->{footer}) {
for my $footer (@{$self->{footer}}) {
@@ -630,15 +633,25 @@
$self->find("preamble")->add_footer("# icecream $line") if $line ne '';
}
+ # returns true if suse copyright section identfied, else false
sub create_copyright_section {
my ($self, $line) = @_;
my $copyright = $line;
- $copyright =~
s{\s*(\d+|copyrights?|\(c\)|suse|LLC|contributors|linux|products|gmbh|nuremberg|n..?rnberg|germany|\W+)\s*}{}gi;
- if (length($copyright) <= 5) { # not much left
- $self->find("preamble")->add_suse_copyright();
- return;
+ if ($line =~ m/^#\s*Copyright\s*/) {
+ $copyright =~
s{\s*(\d+|copyrights?|\(c\)|suse|LLC|contributors|linux|products|gmbh|nuremberg|n..?rnberg|germany|\W+)\s*}{}gi;
+ if (length($copyright) <= 5) { # not much left
+ $self->find("preamble")->add_suse_copyright();
+ # return true if suse copyright string
+ return 1;
+ } elsif ($copyright eq "SoftwareSolutions") {
+ # Lex 'SUSE Software Solutions Germany'
+ $self->find("preamble")->add_suse_copyright();
+ $self->find("preamble")->add_copyright($line);
+ return 1;
+ }
}
$self->find("preamble")->add_copyright($line);
+ return 0;
}
sub add_to_current_section {
@@ -812,11 +825,21 @@
}
if (/^#\s*Copyright\s*/) {
- $self->create_copyright_section($_);
-
- # copy out everything until next blank line
- while ($readspec[0] !~ m/^#*\s*$/) {
- $self->create_copyright_section(shift @readspec);
+ if ($self->create_copyright_section($_)) {
+ # copy out everything until next blank line
+ while ($readspec[0] !~ m/^#*\s*$/) {
+ $self->create_copyright_section(shift @readspec);
+ }
+ $self->find("preamble")->add_copyright($suse_terms);
+
+ } else {
+ # For non-SUSE copyrights assume that any subsequent
+ # comment or empty line belongs to the copyright.
+
+ while ($readspec[0] =~ m/(^#.*)|(^\s*$)/ &&
+ $readspec[0] !~
/^#(\![^\s]|\s*(Copyright|icecream|nodebuginfo|norootforbuild|usedforbuild|needsrootforbuild|needsbinariesforbuild|needssslcertforbuild|needspubkeyforbuild|usedforbuild)\s*)/)
{
+ $self->find("preamble")->add_copyright(shift @readspec);
+ }
}
next;
}
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/obs-service-format_spec_file-20250804/testing/amdsmi.spec
new/obs-service-format_spec_file-20250907/testing/amdsmi.spec
--- old/obs-service-format_spec_file-20250804/testing/amdsmi.spec
1970-01-01 01:00:00.000000000 +0100
+++ new/obs-service-format_spec_file-20250907/testing/amdsmi.spec
2025-09-07 21:53:54.000000000 +0200
@@ -0,0 +1,274 @@
+#
+# Copyright Fedora Project Authors.
+#
+# Permission is hereby granted, free of charge, to any person obtaining a copy
+# of this software and associated documentation files (the "Software"), to
+# deal in the Software without restriction, including without limitation the
+# rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
+# sell copies of the Software, and to permit persons to whom the Software is
+# furnished to do so, subject to the following conditions:
+#
+# The above copyright notice and this permission notice shall be included in
+# all copies or substantial portions of the Software.
+#
+# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+# THE SOFTWARE.
+#
+%global rocm_release 6.4
+%global rocm_patch 2
+%global rocm_version %{rocm_release}.%{rocm_patch}
+%global upstreamname amdsmi
+
+# Downloads its own googletest
+# Testing also depends on having AMD hardware cpu and/or gpu installed.
+# Not suitable for a general check
+#
+# Non root result for gfx1100 and this kernel
6.13.0-0.rc0.20241126git7eef7e306d3c.10.fc42.x86_64
+# 25 pass, 5 fail
+# No oops
+%bcond_with test
+%if %{with test}
+%global build_test ON
+%else
+%global build_test OFF
+%endif
+
+Name: amdsmi
+Version: %{rocm_version}
+Release: 6%{?dist}
+Summary: AMD System Management Interface
+
+License: NCSA AND MIT AND BSD-3-Clause
+URL: https://github.com/RadeonOpenCompute/%{upstreamname}
+Source0:
%{url}/archive/rocm-%{version}.tar.gz#/%{upstreamname}-%{version}.tar.gz
+# esmi_ib_library is not suitable for packaging
+# https://github.com/amd/esmi_ib_library/issues/13
+# This tag was choosen by the amdsmi project because 4.0+ introduced variables
not
+# found in the upstream kernel.
+%global esmi_ver 4.1.2
+Source1:
https://github.com/amd/esmi_ib_library/archive/refs/tags/esmi_pkg_ver-%{esmi_ver}.tar.gz
+Patch2: 0001-Include-cstdint-for-gcc-15.patch
+Patch3: 0002-option-use-system-gtest.patch
+Patch4: 0003-test-client-includes-for-gcc-15.patch
+
+ExclusiveArch: x86_64
+
+BuildRequires: cmake
+BuildRequires: gcc-c++
+BuildRequires: kernel-devel
+BuildRequires: libdrm-devel
+BuildRequires: python3-devel
+
+%if %{with test}
+%if 0%{?suse_version}
+BuildRequires: gtest
+%else
+BuildRequires: gtest-devel
+%endif
+%endif
+
+Requires: python3dist(pyyaml)
+
+# University of Illinois/NCSA Open Source License
+Provides: bundled(esmi_ib_library) = %{esmi_ver}
+
+%description
+The AMD System Management Interface Library, or AMD SMI library, is a C
+library for Linux that provides a user space interface for applications
+to monitor and control AMD devices.
+
+%package devel
+Summary: Libraries and headers for %{name}
+Requires: %{name}%{?_isa} = %{version}-%{release}
+
+%description devel
+%{summary}
+
+%if %{with test}
+%package test
+Summary: Tests for %{name}
+Requires: %{name}%{?_isa} = %{version}-%{release}
+Requires: libdrm-devel
+
+%description test
+%{summary}
+%endif
+
+%prep
+%autosetup -n %{upstreamname}-rocm-%{version} -p1
+tar xf %{SOURCE1}
+mv esmi_ib_library-* esmi_ib_library
+# So we can pick up this license
+mv esmi_ib_library/License.txt esmi_ib_library_License.txt
+# The esmi version check uses git tags, but we use tar's without git files.
+# Just inject in the tag that we've pulled into the version check:
+sed -i 's/NOT latest_esmi_tag/NOT "esmi_pkg_ver-%{esmi_ver}"/' CMakeLists.txt
+
+# W: spurious-executable-perm /usr/share/doc/amdsmi/README.md
+chmod a-x README.md
+
+# /usr/libexec/amdsmi_cli/BDF.py:126: SyntaxWarning: invalid escape sequence
'\.'
+# bdf_regex =
"(?:[0-6]?[0-9a-fA-F]{1,4}:)?[0-2]?[0-9a-fA-F]{1,2}:[0-9a-fA-F]{1,2}\.[0-7]"
+sed -i -e 's@bdf_regex = "@bdf_regex = r"@' amdsmi_cli/BDF.py
+
+# Fix script shebang
+sed -i -e 's@env python3@python3@' amdsmi_cli/*.py
+
+# Install local gtests in same dir as tests
+sed -i -e
's@${CPACK_PACKAGING_INSTALL_PREFIX}/lib@${SHARE_INSTALL_PREFIX}/tests@'
tests/amd_smi_test/CMakeLists.txt
+
+%build
+%cmake \
+ -DBUILD_KERNEL_ASM_DIR=/usr/include/asm \
+ -DCMAKE_SKIP_INSTALL_RPATH=TRUE \
+%if %{with test}
+ -DUSE_SYSTEM_GTEST=On \
+%endif
+ -DBUILD_TESTS=%build_test
+
+%cmake_build
+
+%install
+%cmake_install
+
+mkdir -p %{buildroot}/%{python3_sitelib}
+if [ -d %{buildroot}/usr/share/amd_smi/amdsmi ]; then
+ mv %{buildroot}/usr/share/amd_smi/amdsmi %{buildroot}/%{python3_sitelib}
+ mv %{buildroot}/usr/share/amd_smi/pyproject.toml
%{buildroot}/%{python3_sitelib}/amdsmi/
+else
+ mv %{buildroot}/usr/share/amdsmi %{buildroot}/%{python3_sitelib}
+ mv %{buildroot}/usr/share/pyproject.toml
%{buildroot}/%{python3_sitelib}/amdsmi/
+fi
+
+# Remove some things
+rm -rf %{buildroot}/usr/share/example
+rm -rf %{buildroot}/usr/share/amd_smi/example
+rm -rf %{buildroot}/usr/share/doc/amd_smi-asan/LICENSE.txt
+rm -f %{buildroot}/usr/share/doc/amd_smi/LICENSE.txt
+rm -f %{buildroot}/usr/share/doc/amd_smi/README.md
+rm -rf %{buildroot}/usr/share/doc/amd_smi/copyright
+rm -f %{buildroot}%{_datadir}/_version.py
+rm -f %{buildroot}%{_datadir}/amd_smi/_version.py
+rm -f %{buildroot}%{_datadir}/setup.py
+rm -f %{buildroot}%{_datadir}/amd_smi/setup.py
+
+# W: unstripped-binary-or-object
/usr/lib/python3.13/site-packages/amdsmi/libamd_smi.so
+# Does an explict open, so can not just rm it
+# let's just strip it
+strip %{buildroot}/%{python3_sitelib}/amdsmi/*.so
+# E: non-executable-script .../amdsmi_cli/amdsmi_cli_exceptions.py 644
/usr/bin/env python3
+chmod a+x %{buildroot}/%{_libexecdir}/amdsmi_cli/amdsmi_*.py
+
+%if %{with test}
+# put the test files in a reasonable place
+mkdir %{buildroot}%{_datadir}/amdsmi
+mv %{buildroot}%{_datadir}/tests %{buildroot}%{_datadir}/amdsmi/.
+%endif
+
+%if 0%{?suse_version}
+%post -p /sbin/ldconfig
+%postun -p /sbin/ldconfig
+%endif
+
+%files
+%doc README.md
+%license LICENSE
+%license esmi_ib_library_License.txt
+%{_libdir}/libamd_smi.so.*
+%{_libdir}/libgoamdsmi_shim64.so.*
+%{_bindir}/amd-smi
+%{_libexecdir}/amdsmi_cli
+%{python3_sitelib}/amdsmi
+
+%files devel
+%dir %{_includedir}/amd_smi
+%dir %{_libdir}/cmake/amd_smi
+%{_includedir}/amd_smi/*.h
+%{_includedir}/*.h
+%{_libdir}/libamd_smi.so
+%{_libdir}/libgoamdsmi_shim64.so
+%{_libdir}/cmake/amd_smi/*.cmake
+
+%if %{with test}
+%files test
+%{_datadir}/amdsmi
+%{_datadir}/amdsmi/tests
+%endif
+
+%changelog
+* Wed Aug 27 2025 Tom Rix <[email protected]> - 6.4.2-6
+- Add Fedora copyright
+
+* Mon Aug 25 2025 Tom Rix <[email protected]> - 6.4.2-5
+- Simplify file removal
+
+* Fri Aug 15 2025 Python Maint <[email protected]> - 6.4.2-4
+- Rebuilt for Python 3.14.0rc2 bytecode
+
+* Wed Aug 13 2025 Tom Rix <[email protected]> - 6.4.2-3
+- Build -test on SUSE
+
+* Wed Jul 23 2025 Fedora Release Engineering <[email protected]> -
6.4.2-2
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild
+
+* Tue Jul 22 2025 Jeremy Newton <alexjnewt at hotmail dot com> - 6.4.2-1
+- Update to 6.4.2
+
+* Wed Jun 18 2025 Tim Flink <[email protected]> - 6.4.1-4
+- update so that test subpackage builds cleanly in mock and runs outside of
build environment
+
+* Mon Jun 2 2025 Tom Rix <[email protected]> - 6.4.1-3
+- handle movement of copyright file on suse
+
+* Mon Jun 02 2025 Python Maint <[email protected]> - 6.4.1-2
+- Rebuilt for Python 3.14
+
+* Thu May 22 2025 Jeremy Newton <alexjnewt at hotmail dot com> - 6.4.1-1
+- Update to 6.4.1
+
+* Wed Apr 16 2025 Jeremy Newton <alexjnewt at hotmail dot com> - 6.4.0-1
+- Update to 6.4.0
+
+* Tue Mar 11 2025 Tom Rix <[email protected]> - 6.3.3-3
+- Adjust install of python for fedora
+
+* Thu Feb 27 2025 Tom Rix <[email protected]> - 6.3.3-2
+- Install amd_smi-config.cmake
+
+* Wed Feb 19 2025 Tom Rix <[email protected]> - 6.3.3-1
+- Update to 6.3.3
+
+* Wed Jan 29 2025 Tom Rix <[email protected]> - 6.3.2-1
+- Update to 6.3.2
+
+* Fri Jan 17 2025 Tom Rix <[email protected]> - 6.3.1-6
+- Cleanup for suse
+
+* Thu Jan 16 2025 Tom Rix <[email protected]> - 6.3.1-5
+- Improve empty return patch
+- Fix shebangs
+
+* Thu Jan 16 2025 Fedora Release Engineering <[email protected]> -
6.3.1-4
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild
+
+* Wed Jan 8 2025 Tom Rix <[email protected]> - 6.3.1-3
+- Include cstdint for gcc 15
+
+* Tue Dec 31 2024 Tom Rix <[email protected]> - 6.3.1-2
+- Require pyyaml
+
+* Sun Dec 22 2024 Tom Rix <[email protected]> - 6.3.1-1
+- Update to 6.3.1
+
+* Sat Dec 7 2024 Tom Rix <[email protected]> - 6.3.0-1
+- Update to 6.3
+
+* Sun Nov 3 2024 Tom Rix <[email protected]> - 6.2.1-1
+- Stub for tumbleweed
+
+
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/obs-service-format_spec_file-20250804/testing/amdsmi.spec.out
new/obs-service-format_spec_file-20250907/testing/amdsmi.spec.out
--- old/obs-service-format_spec_file-20250804/testing/amdsmi.spec.out
1970-01-01 01:00:00.000000000 +0100
+++ new/obs-service-format_spec_file-20250907/testing/amdsmi.spec.out
2025-09-07 21:53:54.000000000 +0200
@@ -0,0 +1,220 @@
+#
+# spec file for package amdsmi
+#
+# Copyright (c) 2021 SUSE LLC and contributors
+#
+# All modifications and additions to the file contributed by third parties
+# remain the property of their copyright owners, unless otherwise agreed
+# upon. The license for this file, and modifications and additions to the
+# file, is the same license as for the pristine package itself (unless the
+# license for the pristine package is not an Open Source License, in which
+# case the license is the MIT License). An "Open Source License" is a
+# license that conforms to the Open Source Definition (Version 1.9)
+# published by the Open Source Initiative.
+
+# Please submit bugfixes or comments via https://bugs.opensuse.org/
+#
+# Copyright Fedora Project Authors.
+#
+# Permission is hereby granted, free of charge, to any person obtaining a copy
+# of this software and associated documentation files (the "Software"), to
+# deal in the Software without restriction, including without limitation the
+# rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
+# sell copies of the Software, and to permit persons to whom the Software is
+# furnished to do so, subject to the following conditions:
+#
+# The above copyright notice and this permission notice shall be included in
+# all copies or substantial portions of the Software.
+#
+# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+# THE SOFTWARE.
+#
+
+
+%global rocm_release 6.4
+%global rocm_patch 2
+%global rocm_version %{rocm_release}.%{rocm_patch}
+%global upstreamname amdsmi
+
+# Downloads its own googletest
+# Testing also depends on having AMD hardware cpu and/or gpu installed.
+# Not suitable for a general check
+#
+# Non root result for gfx1100 and this kernel
6.13.0-0.rc0.20241126git7eef7e306d3c.10.fc42.x86_64
+# 25 pass, 5 fail
+# No oops
+%bcond_with test
+%if %{with test}
+%global build_test ON
+%else
+%global build_test OFF
+%endif
+
+Name: amdsmi
+Version: %{rocm_version}
+Release: 6%{?dist}
+Summary: AMD System Management Interface
+
+License: BSD-3-Clause AND MIT AND NCSA
+URL: https://github.com/RadeonOpenCompute/%{upstreamname}
+Source0:
%{url}/archive/rocm-%{version}.tar.gz#/%{upstreamname}-%{version}.tar.gz
+# esmi_ib_library is not suitable for packaging
+# https://github.com/amd/esmi_ib_library/issues/13
+# This tag was choosen by the amdsmi project because 4.0+ introduced variables
not
+# found in the upstream kernel.
+%global esmi_ver 4.1.2
+Source1:
https://github.com/amd/esmi_ib_library/archive/refs/tags/esmi_pkg_ver-%{esmi_ver}.tar.gz
+Patch2: 0001-Include-cstdint-for-gcc-15.patch
+Patch3: 0002-option-use-system-gtest.patch
+Patch4: 0003-test-client-includes-for-gcc-15.patch
+
+ExclusiveArch: x86_64
+
+BuildRequires: cmake
+BuildRequires: gcc-c++
+BuildRequires: kernel-devel
+BuildRequires: libdrm-devel
+BuildRequires: python3-devel
+
+%if %{with test}
+%if 0%{?suse_version}
+BuildRequires: gtest
+%else
+BuildRequires: gtest-devel
+%endif
+%endif
+
+Requires: python3dist(pyyaml)
+
+# University of Illinois/NCSA Open Source License
+Provides: bundled(esmi_ib_library) = %{esmi_ver}
+
+%description
+The AMD System Management Interface Library, or AMD SMI library, is a C
+library for Linux that provides a user space interface for applications
+to monitor and control AMD devices.
+
+%package devel
+Summary: Libraries and headers for %{name}
+Requires: %{name}%{?_isa} = %{version}-%{release}
+
+%description devel
+%{summary}
+
+%if %{with test}
+%package test
+Summary: Tests for %{name}
+Requires: %{name}%{?_isa} = %{version}-%{release}
+Requires: libdrm-devel
+
+%description test
+%{summary}
+%endif
+
+%prep
+%autosetup -n %{upstreamname}-rocm-%{version} -p1
+tar xf %{SOURCE1}
+mv esmi_ib_library-* esmi_ib_library
+# So we can pick up this license
+mv esmi_ib_library/License.txt esmi_ib_library_License.txt
+# The esmi version check uses git tags, but we use tar's without git files.
+# Just inject in the tag that we've pulled into the version check:
+sed -i 's/NOT latest_esmi_tag/NOT "esmi_pkg_ver-%{esmi_ver}"/' CMakeLists.txt
+
+# W: spurious-executable-perm /usr/share/doc/amdsmi/README.md
+chmod a-x README.md
+
+# /usr/libexec/amdsmi_cli/BDF.py:126: SyntaxWarning: invalid escape sequence
'\.'
+# bdf_regex =
"(?:[0-6]?[0-9a-fA-F]{1,4}:)?[0-2]?[0-9a-fA-F]{1,2}:[0-9a-fA-F]{1,2}\.[0-7]"
+sed -i -e 's@bdf_regex = "@bdf_regex = r"@' amdsmi_cli/BDF.py
+
+# Fix script shebang
+sed -i -e 's@env python3@python3@' amdsmi_cli/*.py
+
+# Install local gtests in same dir as tests
+sed -i -e
's@${CPACK_PACKAGING_INSTALL_PREFIX}/lib@${SHARE_INSTALL_PREFIX}/tests@'
tests/amd_smi_test/CMakeLists.txt
+
+%build
+%cmake \
+ -DBUILD_KERNEL_ASM_DIR=/usr/include/asm \
+ -DCMAKE_SKIP_INSTALL_RPATH=TRUE \
+%if %{with test}
+ -DUSE_SYSTEM_GTEST=On \
+%endif
+ -DBUILD_TESTS=%build_test
+
+%cmake_build
+
+%install
+%cmake_install
+
+mkdir -p %{buildroot}/%{python3_sitelib}
+if [ -d %{buildroot}/usr/share/amd_smi/amdsmi ]; then
+ mv %{buildroot}/usr/share/amd_smi/amdsmi %{buildroot}/%{python3_sitelib}
+ mv %{buildroot}/usr/share/amd_smi/pyproject.toml
%{buildroot}/%{python3_sitelib}/amdsmi/
+else
+ mv %{buildroot}/usr/share/amdsmi %{buildroot}/%{python3_sitelib}
+ mv %{buildroot}/usr/share/pyproject.toml
%{buildroot}/%{python3_sitelib}/amdsmi/
+fi
+
+# Remove some things
+rm -rf %{buildroot}/usr/share/example
+rm -rf %{buildroot}/usr/share/amd_smi/example
+rm -rf %{buildroot}/usr/share/doc/amd_smi-asan/LICENSE.txt
+rm -f %{buildroot}/usr/share/doc/amd_smi/LICENSE.txt
+rm -f %{buildroot}/usr/share/doc/amd_smi/README.md
+rm -rf %{buildroot}/usr/share/doc/amd_smi/copyright
+rm -f %{buildroot}%{_datadir}/_version.py
+rm -f %{buildroot}%{_datadir}/amd_smi/_version.py
+rm -f %{buildroot}%{_datadir}/setup.py
+rm -f %{buildroot}%{_datadir}/amd_smi/setup.py
+
+# W: unstripped-binary-or-object
/usr/lib/python3.13/site-packages/amdsmi/libamd_smi.so
+# Does an explict open, so can not just rm it
+# let's just strip it
+strip %{buildroot}/%{python3_sitelib}/amdsmi/*.so
+# E: non-executable-script .../amdsmi_cli/amdsmi_cli_exceptions.py 644
/usr/bin/env python3
+chmod a+x %{buildroot}/%{_libexecdir}/amdsmi_cli/amdsmi_*.py
+
+%if %{with test}
+# put the test files in a reasonable place
+mkdir %{buildroot}%{_datadir}/amdsmi
+mv %{buildroot}%{_datadir}/tests %{buildroot}%{_datadir}/amdsmi/.
+%endif
+
+%if 0%{?suse_version}
+%post -p /sbin/ldconfig
+%postun -p /sbin/ldconfig
+%endif
+
+%files
+%doc README.md
+%license LICENSE
+%license esmi_ib_library_License.txt
+%{_libdir}/libamd_smi.so.*
+%{_libdir}/libgoamdsmi_shim64.so.*
+%{_bindir}/amd-smi
+%{_libexecdir}/amdsmi_cli
+%{python3_sitelib}/amdsmi
+
+%files devel
+%dir %{_includedir}/amd_smi
+%dir %{_libdir}/cmake/amd_smi
+%{_includedir}/amd_smi/*.h
+%{_includedir}/*.h
+%{_libdir}/libamd_smi.so
+%{_libdir}/libgoamdsmi_shim64.so
+%{_libdir}/cmake/amd_smi/*.cmake
+
+%if %{with test}
+%files test
+%{_datadir}/amdsmi
+%{_datadir}/amdsmi/tests
+%endif
+
+%changelog
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/obs-service-format_spec_file-20250804/testing/interestingheader.spec.out
new/obs-service-format_spec_file-20250907/testing/interestingheader.spec.out
---
old/obs-service-format_spec_file-20250804/testing/interestingheader.spec.out
2025-08-04 09:26:41.000000000 +0200
+++
new/obs-service-format_spec_file-20250907/testing/interestingheader.spec.out
2025-09-07 21:53:54.000000000 +0200
@@ -2,7 +2,6 @@
# spec file for package interestingheader
#
# Copyright (c) 2021 SUSE LLC and contributors
-# Copyright (c) 2011 Edgar Aichinger <[email protected]>
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -15,6 +14,8 @@
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
+# Copyright (c) 2011 Edgar Aichinger <[email protected]>
+#
BuildRequires: Mesa
++++++ obs-service-format_spec_file.obsinfo ++++++
--- /var/tmp/diff_new_pack.g1cuHk/_old 2025-09-15 19:56:36.476427618 +0200
+++ /var/tmp/diff_new_pack.g1cuHk/_new 2025-09-15 19:56:36.480427787 +0200
@@ -1,5 +1,5 @@
name: obs-service-format_spec_file
-version: 20250804
-mtime: 1754292401
-commit: 6ccc35b3e2f3601c3261c51e63d596c740f80e28
+version: 20250907
+mtime: 1757274834
+commit: 3567c055567ed4e95d09dddf40a16aa2e7933f97