Script 'mail_helper' called by obssrc
Hello community,
here is the log from the commit of package delayacct-utils for openSUSE:Factory
checked in at 2022-04-10 19:13:59
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/delayacct-utils (Old)
and /work/SRC/openSUSE:Factory/.delayacct-utils.new.1900 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "delayacct-utils"
Sun Apr 10 19:13:59 2022 rev:26 rq:968238 version:MACRO
Changes:
--------
--- /work/SRC/openSUSE:Factory/delayacct-utils/delayacct-utils.changes
2019-04-03 09:28:08.111818634 +0200
+++
/work/SRC/openSUSE:Factory/.delayacct-utils.new.1900/delayacct-utils.changes
2022-04-10 19:14:00.364771646 +0200
@@ -1,0 +2,6 @@
+Fri Apr 8 15:19:25 UTC 2022 - Dirk M??ller <[email protected]>
+
+- rebuild when kernel version changes
+- spec cleaning
+
+-------------------------------------------------------------------
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ delayacct-utils.spec ++++++
--- /var/tmp/diff_new_pack.kVgGAS/_old 2022-04-10 19:14:00.900765662 +0200
+++ /var/tmp/diff_new_pack.kVgGAS/_new 2022-04-10 19:14:00.900765662 +0200
@@ -1,7 +1,7 @@
#
# spec file for package delayacct-utils
#
-# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2022 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -12,56 +12,70 @@
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
-# Please submit bugfixes or comments via http://bugs.opensuse.org/
+# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
+%define version %(rpm -q --qf '%%{VERSION}' kernel-source)
Name: delayacct-utils
-BuildRequires: kernel-source
+Version: %{version}
+Release: 0
Summary: Delay Accounting Utilities
-License: GPL-2.0
+License: GPL-2.0-only
Group: System/Monitoring
-%define version %(rpm -q --qf '%%{VERSION}' kernel-devel)
-Version: %version
-Release: 0
-BuildRoot: %{_tmppath}/%{name}-%{version}-build
-BuildRequires: kernel-devel
+URL: https://www.kernel.org/
Source0: delayacct-utils.tar.bz2
Patch0: delayacct-utils-nl.patch
+BuildRequires: kernel-devel
+BuildRequires: kernel-source
%description
Delay accounting allows the administrator to track the time an
application spends waiting on disk I/O, swap I/O and CPU scheduling.
This can help pin-point resource shortages in a system configuration.
+%package rebuild
+Summary: Empty package to ensure rebuilding delayacct-utils in OBS
+Group: System/Monitoring
+%requires_eq kernel-source
+
+%description rebuild
+This is empty package that ensures delayacct-utils is rebuilt every time
+kernel-default is rebuilt in OBS.
+
+There is no reason to install this package.
+
%prep
-%setup -q -n %name
+%setup -q -n %{name}
%patch0 -p1
mkdir -p linux
%if 0%{?suse_version} <= 1220
-cp /usr/src/linux/include/linux/taskstats.h linux/taskstats.h
+cp %{_prefix}/src/linux/include/linux/taskstats.h linux/taskstats.h
%else
-cp /usr/src/linux/include/uapi/linux/taskstats.h linux/taskstats.h
+cp %{_prefix}/src/linux/include/uapi/linux/taskstats.h linux/taskstats.h
%endif
-if [ -f /usr/src/linux/Documentation/accounting/getdelays.c ]; then
- cp /usr/src/linux/Documentation/accounting/getdelays.c .
+if [ -f %{_prefix}/src/linux/Documentation/accounting/getdelays.c ]; then
+ cp %{_prefix}/src/linux/Documentation/accounting/getdelays.c .
fi
-if [ -f /usr/src/linux/tools/accounting/getdelays.c ]; then
- cp /usr/src/linux/tools/accounting/getdelays.c .
+if [ -f %{_prefix}/src/linux/tools/accounting/getdelays.c ]; then
+ cp %{_prefix}/src/linux/tools/accounting/getdelays.c .
fi
%build
-make CCOPT="$RPM_OPT_FLAGS" %{?_smp_mflags}
+%make_build CCOPT="%{optflags}"
%install
-mkdir -p $RPM_BUILD_ROOT%_bindir $RPM_BUILD_ROOT%_mandir/man1
-install -m 555 getdelays $RPM_BUILD_ROOT%_bindir
-install -m 444 getdelays.1 $RPM_BUILD_ROOT%_mandir/man1
+mkdir -p %{buildroot}%{_bindir} %{buildroot}%{_mandir}/man1
+install -m 555 getdelays %{buildroot}%{_bindir}
+install -m 444 getdelays.1 %{buildroot}%{_mandir}/man1
%files
-%defattr(444,root,root,755)
-%doc README COPYING
+%license COPYING
+%doc README
%attr(555,root,root) %{_bindir}/getdelays
%attr(444,root,root) %{_mandir}/man?/*
+%files rebuild
+%license COPYING
+
%changelog