Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package kvm_stat for openSUSE:Factory checked in at 2021-01-28 21:22:29 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/kvm_stat (Old) and /work/SRC/openSUSE:Factory/.kvm_stat.new.28504 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "kvm_stat" Thu Jan 28 21:22:29 2021 rev:16 rq:867342 version:MACRO Changes: -------- --- /work/SRC/openSUSE:Factory/kvm_stat/kvm_stat.changes 2021-01-08 17:40:39.521063842 +0100 +++ /work/SRC/openSUSE:Factory/.kvm_stat.new.28504/kvm_stat.changes 2021-01-28 21:22:31.243649080 +0100 @@ -1,0 +2,9 @@ +Thu Jan 28 01:55:12 UTC 2021 - Dario Faggioli <dfaggi...@suse.com> + +- Install the systemd unit file in the proper place, so that the + service can be started right away, if the user wants that, without + having to copy the file in the units directory. +- Integrate with logrotate, by providing a logrotate config file, as + the logs can easily become very big. + +------------------------------------------------------------------- New: ---- logrotate.kvm_stat ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ kvm_stat.spec ++++++ --- /var/tmp/diff_new_pack.EZI0nm/_old 2021-01-28 21:22:31.763649904 +0100 +++ /var/tmp/diff_new_pack.EZI0nm/_new 2021-01-28 21:22:31.767649910 +0100 @@ -30,6 +30,7 @@ BuildRequires: libxslt-tools Requires: python3-curses +Recommends: logrotate Recommends: kernel >= 5.2.0 Conflicts: qemu < 2.6.90 @@ -37,6 +38,7 @@ BuildRoot: %{_tmppath}/%{name}-%{version}-build # Patches 01 to 07 are for jsc#SLE-13784 +Source1: logrotate.kvm_stat Patch01: rework-command-line-sequence.patch Patch02: switch-to-argparse.patch Patch03: add-command-line-switch-s-to-update.patch @@ -78,14 +80,30 @@ # OBS checks don't like /usr/bin/env in script interpreter lines sed -re '1 { s_^#! */usr/bin/env +/_#!/_ ; s_^#! */usr/bin/env +([^/])_#!/usr/bin/\1_ }' -i "tools/kvm/kvm_stat/kvm_stat" make -C tools kvm_stat_install INSTALL_ROOT=%{buildroot} -install -d -m 755 %{buildroot}/%{_datadir}/kvm_stat -install -m 644 tools/kvm/kvm_stat/kvm_stat.service %{buildroot}/%{_datadir}/kvm_stat/ +install -D -m 644 %{SOURCE1} %{buildroot}%{_sysconfdir}/logrotate.d/kvm_stat +install -D -m 644 tools/kvm/kvm_stat/kvm_stat.service %{buildroot}%{_unitdir}/kvm_stat.service +install -d %{buildroot}%{_sbindir} +ln -sf service %{buildroot}%{_sbindir}/rckvm_stat + +%pre +%service_add_pre kvm_stat.service + +%post +%service_add_post kvm_stat.service + +%preun +%service_del_preun kvm_stat.service + +%postun +%service_del_postun kvm_stat.service %files %defattr(-, root, root) %license COPYING +%{_unitdir}/kvm_stat.service +%config(noreplace) %{_sysconfdir}/logrotate.d/kvm_stat +%{_sbindir}/rckvm_stat %{_bindir}/kvm_stat %{_mandir}/man1/kvm_stat* -%{_datadir}/kvm_stat %changelog ++++++ logrotate.kvm_stat ++++++ /var/log/kvm_stat.csv { compress delaycompress dateext maxage 365 rotate 14 daily minsize 50M notifempty missingok copytruncate }