sysstat/sysstat.spec

170 lines
5.6 KiB
RPMSpec
Raw Normal View History

#
# spec file for package sysstat
#
Accepting request 1179169 from home:pgajdos - version update to 12.7.5 2023/12/17: Version 12.7.5 - Sebastien Godard (sysstat <at> orange.fr) * [Quan quan Cao]: sar/sadc: Add new metrics pgprom/s and pgdem/s. * sar: Remove %vmeff metric. * sadf: Update various output formats to take into account metrics that have been added or removed. * Update DTD and XSD documents. * Update sar manual page. * sar: Add a cron entry and a new systemd service and timer to rotate daily data file at midnight. * Option -V with sysstat commands also displays environment contents. * [Sam Morris]: Use correct encoding to produce hyphen-minus when rendering man pages. * Add UMASK variable definition to sysstat(5) manual page. * Update non regression tests. * Add --getenv option to commands that didn't have it. * Update README file for Debian-based distros. * Update link to my personal web page in README and manual pages. * NLS: Translations updated. 2023/06/18: Version 12.7.4 - Sebastien Godard (sysstat <at> orange.fr) * Makefile.in: Fix installation error. * Makefile.in: Remove gcc warning displayed in LTO mode. 2023/06/16: Version 12.7.3 - Sebastien Godard (sysstat <at> orange.fr) * sar: Add new option '-x' used to display extended reports. * [Pavel Kopylov]: Fix an overflow which is still possible for some values. * [Jan Kurik]: Fix export of PSI metrics to a PCP archive. * [Lukáš Zaoral]: Tools that take `--dec=X` option should only accept digits. * common.c: Fix an overflow which was still possible for some values. OBS-URL: https://build.opensuse.org/request/show/1179169 OBS-URL: https://build.opensuse.org/package/show/Base:System/sysstat?expand=0&rev=151
2024-06-11 22:26:16 +02:00
# Copyright (c) 2024 SUSE LLC
#
# 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/
#
Name: sysstat
Accepting request 1179169 from home:pgajdos - version update to 12.7.5 2023/12/17: Version 12.7.5 - Sebastien Godard (sysstat <at> orange.fr) * [Quan quan Cao]: sar/sadc: Add new metrics pgprom/s and pgdem/s. * sar: Remove %vmeff metric. * sadf: Update various output formats to take into account metrics that have been added or removed. * Update DTD and XSD documents. * Update sar manual page. * sar: Add a cron entry and a new systemd service and timer to rotate daily data file at midnight. * Option -V with sysstat commands also displays environment contents. * [Sam Morris]: Use correct encoding to produce hyphen-minus when rendering man pages. * Add UMASK variable definition to sysstat(5) manual page. * Update non regression tests. * Add --getenv option to commands that didn't have it. * Update README file for Debian-based distros. * Update link to my personal web page in README and manual pages. * NLS: Translations updated. 2023/06/18: Version 12.7.4 - Sebastien Godard (sysstat <at> orange.fr) * Makefile.in: Fix installation error. * Makefile.in: Remove gcc warning displayed in LTO mode. 2023/06/16: Version 12.7.3 - Sebastien Godard (sysstat <at> orange.fr) * sar: Add new option '-x' used to display extended reports. * [Pavel Kopylov]: Fix an overflow which is still possible for some values. * [Jan Kurik]: Fix export of PSI metrics to a PCP archive. * [Lukáš Zaoral]: Tools that take `--dec=X` option should only accept digits. * common.c: Fix an overflow which was still possible for some values. OBS-URL: https://build.opensuse.org/request/show/1179169 OBS-URL: https://build.opensuse.org/package/show/Base:System/sysstat?expand=0&rev=151
2024-06-11 22:26:16 +02:00
Version: 12.7.5
Release: 0
Summary: Sar and Iostat Commands for Linux
License: GPL-2.0-or-later
Group: System/Monitoring
- update to 12.4.0: * All commands: Display statistics in color by default when the output is connected to a terminal. * sar: Now pretty-print all device names by default (that is to say, you no longer need to use option -p with option -d for that). * cifsiostat, iostat, sar: Add new --pretty option (this option makes the reports easier to read when long item names are used). * iostat: No longer use sysstat.ioconf file to determine the name of the devices. This file gave a wrong name for some devices with big minor numbers. * iostat, sar: Make device name consistent between both of them. * configure: Add new option "--enable-use-crond" to use standard cron daemon even if systemd is installed. * configure: Use AC_COMPILE_IFELSE instead of old AC_TRY_COMPILE macro. Remove other obsolete autoconf macros. * configure: Add new option "delay_range=". Used by sa2 script to wait for a random delay. * configure: Fix --enable-debuginfo option. * sa1: Insert a comment in daily datafile on system suspend/resume. * sa2: Wait for a random delay before running to prevent massive I/O burst on some systems. * sar: Fix typo in manual page. * sar, iostat, cifsiostat, mpstat, pidstat, tapestat and sa1 manual pages updated. * Update style for all manual pages. * Compress manual pages by default when they are installed. * Makefile: Remove all reports and date files (even those compressed with another program than gzip) when told to do so. * Add pcp help file to be used with iconfig script. * Update Travis script (now calls do_test script). OBS-URL: https://build.opensuse.org/package/show/Base:System/sysstat?expand=0&rev=111
2020-08-16 23:50:17 +02:00
URL: https://github.com/sysstat/sysstat
Source: https://github.com/sysstat/sysstat/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
Source1: isag.desktop
# PATCH-FIX-OPENSUSE should be upstreamed
# add locking to scripts sa1 and sa2 (bnc#7861)
Patch0: sysstat-8.1.6-sa1sa2lock.diff
# PATCH-FIX-OPENSUSE should be upstreamed
# use getpagesize() instead of kb_shift for hugetable archs
Patch2: sysstat-8.0.4-pagesize.diff
# PATCH-FIX-OPENSUSE bsc#1151453
2019-12-13 09:28:11 +01:00
Patch3: sysstat-service.patch
Patch4: harden_sysstat.service.patch
BuildRequires: findutils
BuildRequires: gettext-runtime
BuildRequires: libpcp-devel
BuildRequires: libpcp_import1
BuildRequires: pkgconfig
BuildRequires: sed
BuildRequires: systemd-rpm-macros
BuildRequires: update-desktop-files
Requires: procmail
Requires: xz
%{?systemd_ordering}
%ifnarch s390 s390x
BuildRequires: libsensors4-devel
%endif
%description
Sar and Iostat commands for Linux. The sar command collects and reports
system activity information. The iostat command reports CPU statistics
and I/O statistics for TTY devices and disks. The information
collected by sar and iostat can be saved in a binary file for future
inspection. Both commands now support SMP machines when displaying CPU
utilization.
%package isag
Summary: Interactive System Activity Grapher for sysstat
Group: System/Monitoring
Requires: gnuplot
Requires: sysstat = %{version}
Requires: tk
%description isag
This package includes the isag command, which graphically displays the
system activity data stored in a binary data produced by a sar command
from a sysstat package.
%prep
Accepting request 1179169 from home:pgajdos - version update to 12.7.5 2023/12/17: Version 12.7.5 - Sebastien Godard (sysstat <at> orange.fr) * [Quan quan Cao]: sar/sadc: Add new metrics pgprom/s and pgdem/s. * sar: Remove %vmeff metric. * sadf: Update various output formats to take into account metrics that have been added or removed. * Update DTD and XSD documents. * Update sar manual page. * sar: Add a cron entry and a new systemd service and timer to rotate daily data file at midnight. * Option -V with sysstat commands also displays environment contents. * [Sam Morris]: Use correct encoding to produce hyphen-minus when rendering man pages. * Add UMASK variable definition to sysstat(5) manual page. * Update non regression tests. * Add --getenv option to commands that didn't have it. * Update README file for Debian-based distros. * Update link to my personal web page in README and manual pages. * NLS: Translations updated. 2023/06/18: Version 12.7.4 - Sebastien Godard (sysstat <at> orange.fr) * Makefile.in: Fix installation error. * Makefile.in: Remove gcc warning displayed in LTO mode. 2023/06/16: Version 12.7.3 - Sebastien Godard (sysstat <at> orange.fr) * sar: Add new option '-x' used to display extended reports. * [Pavel Kopylov]: Fix an overflow which is still possible for some values. * [Jan Kurik]: Fix export of PSI metrics to a PCP archive. * [Lukáš Zaoral]: Tools that take `--dec=X` option should only accept digits. * common.c: Fix an overflow which was still possible for some values. OBS-URL: https://build.opensuse.org/request/show/1179169 OBS-URL: https://build.opensuse.org/package/show/Base:System/sysstat?expand=0&rev=151
2024-06-11 22:26:16 +02:00
%autosetup -p1
cp %{SOURCE1} .
# remove date and time from objects
find ./ -name \*.c -exec sed -i -e 's: " compiled " __DATE__ " " __TIME__::g' {} \;
%build
export conf_dir="%{_sysconfdir}/sysstat"
export sa_lib_dir="%{_libdir}/sa"
2019-12-13 09:28:11 +01:00
export cron_owner=root
export LFLAGS="-L. -lsyscom"
export history="60"
export sadc_options="-S ALL"
%configure \
--with-systemdsystemunitdir=%{_unitdir} \
--with-systemdsleepdir=%{_systemd_util_dir}/system-sleep \
--enable-install-cron \
--disable-silent-rules \
--enable-nls \
--disable-man-group \
--enable-copy-only \
--disable-file-attr \
--enable-debug-info \
--enable-pcp \
%ifnarch s390 s390x
--enable-sensors \
%endif
--disable-stripping
%make_build
%install
mkdir -p %{buildroot}%{_localstatedir}/log/sa %{buildroot}%{_sbindir}
%make_install
install -D -m 0644 isag.desktop %{buildroot}%{_datadir}/applications/isag.desktop
%suse_update_desktop_file isag
cp contrib/isag/isag %{buildroot}%{_bindir}
cp contrib/isag/isag.1 %{buildroot}%{_mandir}/man1
rm -rf %{buildroot}%{_datadir}/doc/sysstat*
ln -sf %{_sbindir}/service %{buildroot}%{_sbindir}/rcsysstat
%find_lang %{name}
%check
2019-12-13 09:28:11 +01:00
# Newer versions only have simulation tests
# make %%{?_smp_mflags} test
%pre
Accepting request 1179169 from home:pgajdos - version update to 12.7.5 2023/12/17: Version 12.7.5 - Sebastien Godard (sysstat <at> orange.fr) * [Quan quan Cao]: sar/sadc: Add new metrics pgprom/s and pgdem/s. * sar: Remove %vmeff metric. * sadf: Update various output formats to take into account metrics that have been added or removed. * Update DTD and XSD documents. * Update sar manual page. * sar: Add a cron entry and a new systemd service and timer to rotate daily data file at midnight. * Option -V with sysstat commands also displays environment contents. * [Sam Morris]: Use correct encoding to produce hyphen-minus when rendering man pages. * Add UMASK variable definition to sysstat(5) manual page. * Update non regression tests. * Add --getenv option to commands that didn't have it. * Update README file for Debian-based distros. * Update link to my personal web page in README and manual pages. * NLS: Translations updated. 2023/06/18: Version 12.7.4 - Sebastien Godard (sysstat <at> orange.fr) * Makefile.in: Fix installation error. * Makefile.in: Remove gcc warning displayed in LTO mode. 2023/06/16: Version 12.7.3 - Sebastien Godard (sysstat <at> orange.fr) * sar: Add new option '-x' used to display extended reports. * [Pavel Kopylov]: Fix an overflow which is still possible for some values. * [Jan Kurik]: Fix export of PSI metrics to a PCP archive. * [Lukáš Zaoral]: Tools that take `--dec=X` option should only accept digits. * common.c: Fix an overflow which was still possible for some values. OBS-URL: https://build.opensuse.org/request/show/1179169 OBS-URL: https://build.opensuse.org/package/show/Base:System/sysstat?expand=0&rev=151
2024-06-11 22:26:16 +02:00
%service_add_pre sysstat.service sysstat-collect.service sysstat-collect.timer sysstat-summary.service sysstat-summary.timer sysstat-rotate.service syssstat-rotate.timer
%post
Accepting request 1179169 from home:pgajdos - version update to 12.7.5 2023/12/17: Version 12.7.5 - Sebastien Godard (sysstat <at> orange.fr) * [Quan quan Cao]: sar/sadc: Add new metrics pgprom/s and pgdem/s. * sar: Remove %vmeff metric. * sadf: Update various output formats to take into account metrics that have been added or removed. * Update DTD and XSD documents. * Update sar manual page. * sar: Add a cron entry and a new systemd service and timer to rotate daily data file at midnight. * Option -V with sysstat commands also displays environment contents. * [Sam Morris]: Use correct encoding to produce hyphen-minus when rendering man pages. * Add UMASK variable definition to sysstat(5) manual page. * Update non regression tests. * Add --getenv option to commands that didn't have it. * Update README file for Debian-based distros. * Update link to my personal web page in README and manual pages. * NLS: Translations updated. 2023/06/18: Version 12.7.4 - Sebastien Godard (sysstat <at> orange.fr) * Makefile.in: Fix installation error. * Makefile.in: Remove gcc warning displayed in LTO mode. 2023/06/16: Version 12.7.3 - Sebastien Godard (sysstat <at> orange.fr) * sar: Add new option '-x' used to display extended reports. * [Pavel Kopylov]: Fix an overflow which is still possible for some values. * [Jan Kurik]: Fix export of PSI metrics to a PCP archive. * [Lukáš Zaoral]: Tools that take `--dec=X` option should only accept digits. * common.c: Fix an overflow which was still possible for some values. OBS-URL: https://build.opensuse.org/request/show/1179169 OBS-URL: https://build.opensuse.org/package/show/Base:System/sysstat?expand=0&rev=151
2024-06-11 22:26:16 +02:00
%service_add_post sysstat.service sysstat-collect.service sysstat-collect.timer sysstat-summary.service sysstat-summary.timer sysstat-rotate.service syssstat-rotate.timer
# Earlier versions used cron, remove leftover
rm -f /etc/cron.d/sysstat || :
%preun
Accepting request 1179169 from home:pgajdos - version update to 12.7.5 2023/12/17: Version 12.7.5 - Sebastien Godard (sysstat <at> orange.fr) * [Quan quan Cao]: sar/sadc: Add new metrics pgprom/s and pgdem/s. * sar: Remove %vmeff metric. * sadf: Update various output formats to take into account metrics that have been added or removed. * Update DTD and XSD documents. * Update sar manual page. * sar: Add a cron entry and a new systemd service and timer to rotate daily data file at midnight. * Option -V with sysstat commands also displays environment contents. * [Sam Morris]: Use correct encoding to produce hyphen-minus when rendering man pages. * Add UMASK variable definition to sysstat(5) manual page. * Update non regression tests. * Add --getenv option to commands that didn't have it. * Update README file for Debian-based distros. * Update link to my personal web page in README and manual pages. * NLS: Translations updated. 2023/06/18: Version 12.7.4 - Sebastien Godard (sysstat <at> orange.fr) * Makefile.in: Fix installation error. * Makefile.in: Remove gcc warning displayed in LTO mode. 2023/06/16: Version 12.7.3 - Sebastien Godard (sysstat <at> orange.fr) * sar: Add new option '-x' used to display extended reports. * [Pavel Kopylov]: Fix an overflow which is still possible for some values. * [Jan Kurik]: Fix export of PSI metrics to a PCP archive. * [Lukáš Zaoral]: Tools that take `--dec=X` option should only accept digits. * common.c: Fix an overflow which was still possible for some values. OBS-URL: https://build.opensuse.org/request/show/1179169 OBS-URL: https://build.opensuse.org/package/show/Base:System/sysstat?expand=0&rev=151
2024-06-11 22:26:16 +02:00
%service_del_preun sysstat.service sysstat-collect.service sysstat-collect.timer sysstat-summary.service sysstat-summary.timer sysstat-rotate.service syssstat-rotate.timer
[ "$1" -gt 0 ] || rm -rf %{_localstatedir}/log/sa/*
%postun
Accepting request 1179169 from home:pgajdos - version update to 12.7.5 2023/12/17: Version 12.7.5 - Sebastien Godard (sysstat <at> orange.fr) * [Quan quan Cao]: sar/sadc: Add new metrics pgprom/s and pgdem/s. * sar: Remove %vmeff metric. * sadf: Update various output formats to take into account metrics that have been added or removed. * Update DTD and XSD documents. * Update sar manual page. * sar: Add a cron entry and a new systemd service and timer to rotate daily data file at midnight. * Option -V with sysstat commands also displays environment contents. * [Sam Morris]: Use correct encoding to produce hyphen-minus when rendering man pages. * Add UMASK variable definition to sysstat(5) manual page. * Update non regression tests. * Add --getenv option to commands that didn't have it. * Update README file for Debian-based distros. * Update link to my personal web page in README and manual pages. * NLS: Translations updated. 2023/06/18: Version 12.7.4 - Sebastien Godard (sysstat <at> orange.fr) * Makefile.in: Fix installation error. * Makefile.in: Remove gcc warning displayed in LTO mode. 2023/06/16: Version 12.7.3 - Sebastien Godard (sysstat <at> orange.fr) * sar: Add new option '-x' used to display extended reports. * [Pavel Kopylov]: Fix an overflow which is still possible for some values. * [Jan Kurik]: Fix export of PSI metrics to a PCP archive. * [Lukáš Zaoral]: Tools that take `--dec=X` option should only accept digits. * common.c: Fix an overflow which was still possible for some values. OBS-URL: https://build.opensuse.org/request/show/1179169 OBS-URL: https://build.opensuse.org/package/show/Base:System/sysstat?expand=0&rev=151
2024-06-11 22:26:16 +02:00
%service_del_postun sysstat.service sysstat-collect.service sysstat-collect.timer sysstat-summary.service sysstat-summary.timer sysstat-rotate.service syssstat-rotate.timer
%files -f "%{name}.lang"
%license COPYING
%doc CHANGES CREDITS FAQ.md README.md
%{_mandir}/man1/*
%{_mandir}/man5/*
%{_mandir}/man8/*
%exclude %{_mandir}/man1/isag*
%dir %{_sysconfdir}/sysstat
%dir %{_systemd_util_dir}/system-sleep
%config(noreplace) %{_sysconfdir}/sysstat/sysstat
%attr(644,root,root) %config(noreplace) %{_sysconfdir}/sysstat/sysstat.ioconf
%{_bindir}/cifsiostat
%{_bindir}/iostat
%{_bindir}/mpstat
%{_bindir}/pidstat
%{_bindir}/sadf
%{_bindir}/sar
%{_bindir}/tapestat
%exclude %{_bindir}/isag
%{_libdir}/sa
%{_unitdir}/sysstat.service
%{_unitdir}/sysstat-collect.service
%{_unitdir}/sysstat-collect.timer
%{_unitdir}/sysstat-summary.service
%{_unitdir}/sysstat-summary.timer
Accepting request 1179169 from home:pgajdos - version update to 12.7.5 2023/12/17: Version 12.7.5 - Sebastien Godard (sysstat <at> orange.fr) * [Quan quan Cao]: sar/sadc: Add new metrics pgprom/s and pgdem/s. * sar: Remove %vmeff metric. * sadf: Update various output formats to take into account metrics that have been added or removed. * Update DTD and XSD documents. * Update sar manual page. * sar: Add a cron entry and a new systemd service and timer to rotate daily data file at midnight. * Option -V with sysstat commands also displays environment contents. * [Sam Morris]: Use correct encoding to produce hyphen-minus when rendering man pages. * Add UMASK variable definition to sysstat(5) manual page. * Update non regression tests. * Add --getenv option to commands that didn't have it. * Update README file for Debian-based distros. * Update link to my personal web page in README and manual pages. * NLS: Translations updated. 2023/06/18: Version 12.7.4 - Sebastien Godard (sysstat <at> orange.fr) * Makefile.in: Fix installation error. * Makefile.in: Remove gcc warning displayed in LTO mode. 2023/06/16: Version 12.7.3 - Sebastien Godard (sysstat <at> orange.fr) * sar: Add new option '-x' used to display extended reports. * [Pavel Kopylov]: Fix an overflow which is still possible for some values. * [Jan Kurik]: Fix export of PSI metrics to a PCP archive. * [Lukáš Zaoral]: Tools that take `--dec=X` option should only accept digits. * common.c: Fix an overflow which was still possible for some values. OBS-URL: https://build.opensuse.org/request/show/1179169 OBS-URL: https://build.opensuse.org/package/show/Base:System/sysstat?expand=0&rev=151
2024-06-11 22:26:16 +02:00
%{_unitdir}/sysstat-rotate.service
%{_unitdir}/sysstat-rotate.timer
%{_systemd_util_dir}/system-sleep/sysstat.sleep
%dir %{_localstatedir}/log/sa
%{_sbindir}/rcsysstat
%files isag
%doc contrib/isag/README-isag
%{_mandir}/man1/isag*
%{_bindir}/isag
%{_datadir}/applications/isag.desktop
%changelog