2019-03-20 15:31:48 +00:00
|
|
|
%bcond_without vmguestlib
|
|
|
|
|
|
|
|
Name: spausedd
|
|
|
|
Summary: Utility to detect and log scheduler pause
|
2021-07-19 08:59:05 +00:00
|
|
|
Version: 20210719
|
2021-07-23 18:01:50 +00:00
|
|
|
Release: 2%{?dist}
|
2019-03-20 15:31:48 +00:00
|
|
|
License: ISC
|
|
|
|
URL: https://github.com/jfriesse/spausedd
|
|
|
|
Source0: https://github.com/jfriesse/%{name}/releases/download/%{version}/%{name}-%{version}.tar.gz
|
|
|
|
|
2020-09-22 13:04:49 +00:00
|
|
|
# VMGuestLib exists only for x86 architectures (for Fedora) and x86_64 (for RHEL)
|
2019-03-20 15:31:48 +00:00
|
|
|
%if %{with vmguestlib}
|
2020-09-22 13:04:49 +00:00
|
|
|
%if 0%{?rhel} >= 6
|
|
|
|
%ifarch x86_64
|
|
|
|
%global use_vmguestlib 1
|
|
|
|
%endif
|
|
|
|
%else
|
2019-03-20 15:31:48 +00:00
|
|
|
%ifarch %{ix86} x86_64
|
|
|
|
%global use_vmguestlib 1
|
|
|
|
%endif
|
|
|
|
%endif
|
2020-09-22 13:04:49 +00:00
|
|
|
%endif
|
2019-03-20 15:31:48 +00:00
|
|
|
|
|
|
|
BuildRequires: gcc
|
2021-01-05 09:41:05 +00:00
|
|
|
BuildRequires: make
|
2019-03-20 15:31:48 +00:00
|
|
|
%{?systemd_requires}
|
|
|
|
BuildRequires: systemd
|
|
|
|
|
|
|
|
%if %{defined use_vmguestlib}
|
|
|
|
BuildRequires: pkgconfig(vmguestlib)
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%description
|
|
|
|
Utility to detect and log scheduler pause
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q -n %{name}-%{version}
|
|
|
|
|
|
|
|
%build
|
|
|
|
%set_build_flags
|
2020-07-22 10:23:10 +00:00
|
|
|
%make_build \
|
2019-03-20 15:31:48 +00:00
|
|
|
%if %{defined use_vmguestlib}
|
|
|
|
WITH_VMGUESTLIB=1 \
|
|
|
|
%else
|
|
|
|
WITH_VMGUESTLIB=0 \
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%install
|
2020-07-22 10:23:10 +00:00
|
|
|
%make_install PREFIX="%{_prefix}"
|
2019-03-20 15:31:48 +00:00
|
|
|
|
|
|
|
mkdir -p %{buildroot}/%{_unitdir}
|
2019-08-06 11:08:26 +00:00
|
|
|
install -m 644 -p init/%{name}.service %{buildroot}/%{_unitdir}
|
2019-03-20 15:31:48 +00:00
|
|
|
|
|
|
|
%clean
|
|
|
|
|
|
|
|
%files
|
|
|
|
%doc AUTHORS
|
|
|
|
%license COPYING
|
|
|
|
%{_bindir}/%{name}
|
|
|
|
%{_mandir}/man8/*
|
|
|
|
%{_unitdir}/spausedd.service
|
|
|
|
|
|
|
|
%post
|
|
|
|
%systemd_post spausedd.service
|
|
|
|
|
|
|
|
%preun
|
|
|
|
%systemd_preun spausedd.service
|
|
|
|
|
|
|
|
%postun
|
|
|
|
%systemd_postun spausedd.service
|
|
|
|
|
|
|
|
%changelog
|
2021-07-23 18:01:50 +00:00
|
|
|
* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 20210719-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
|
|
|
|
|
2021-07-19 08:59:05 +00:00
|
|
|
* Mon Jul 19 2021 Jan Friesse <jfriesse@redhat.com> - 20210719-1
|
|
|
|
- Add mode option for moving to root cgroup functionality
|
|
|
|
|
2021-05-20 11:30:17 +00:00
|
|
|
* Thu May 20 2021 Jan Friesse <jfriesse@redhat.com> - 20210520-1
|
|
|
|
- Document cgroup v2 problems
|
|
|
|
|
2021-05-11 08:39:59 +00:00
|
|
|
* Tue May 11 2021 Jan Friesse <jfriesse@redhat.com> - 20210511-1
|
|
|
|
- Support for cgroup v2
|
|
|
|
|
2021-03-26 15:10:24 +00:00
|
|
|
* Fri Mar 26 2021 Jan Friesse <jfriesse@redhat.com> - 20210326-1
|
|
|
|
- Fix possible memory leak
|
|
|
|
- Check memlock rlimit
|
|
|
|
|
2021-01-27 20:49:09 +00:00
|
|
|
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 20201112-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
|
|
|
|
2020-11-12 11:02:15 +00:00
|
|
|
* Thu Nov 12 2020 Jan Friesse <jfriesse@redhat.com> - 20201112-1
|
|
|
|
- Add ability to move process into root cgroup
|
|
|
|
- Rebase to new version
|
|
|
|
|
2020-11-10 09:46:16 +00:00
|
|
|
* Tue Nov 10 2020 Jan Friesse <jfriesse@redhat.com> - 20201110-1
|
|
|
|
- Fix log_perror
|
|
|
|
- Rebase to new version
|
|
|
|
|
2020-09-22 13:04:49 +00:00
|
|
|
* Tue Sep 22 2020 Jan Friesse <jfriesse@redhat.com> - 20200323-4
|
|
|
|
- Fix build for ELN
|
|
|
|
|
2020-07-29 11:13:11 +00:00
|
|
|
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 20200323-3
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
|
|
|
|
2020-07-22 10:23:10 +00:00
|
|
|
* Wed Jul 22 2020 Jan Friesse <jfriesse@redhat.com> - 20200323-2
|
|
|
|
- Use make macros
|
|
|
|
- https://fedoraproject.org/wiki/Changes/UseMakeBuildInstallMacro
|
|
|
|
|
2020-03-23 15:44:52 +00:00
|
|
|
* Mon Mar 23 2020 Jan Friesse <jfriesse@redhat.com> - 20200323-1
|
|
|
|
- Enhance man page
|
|
|
|
- Add CI tests
|
|
|
|
- Enable gating
|
|
|
|
- Rebase to new version
|
|
|
|
|
2020-01-30 23:59:15 +00:00
|
|
|
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 20190807-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
|
|
|
|
2019-08-07 14:31:16 +00:00
|
|
|
* Wed Aug 07 2019 Jan Friesse <jfriesse@redhat.com> - 20190807-1
|
|
|
|
- Enhance makefile
|
|
|
|
- Rebase to new version
|
|
|
|
|
2019-08-06 11:08:26 +00:00
|
|
|
* Tue Aug 06 2019 Jan Friesse <jfriesse@redhat.com> - 20190320-3
|
|
|
|
- Do not set exec permission for service file
|
|
|
|
|
2019-07-26 23:49:52 +00:00
|
|
|
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 20190320-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
|
|
|
|
2019-03-20 15:31:48 +00:00
|
|
|
* Wed Mar 20 2019 Jan Friesse <jfriesse@redhat.com> - 20190320-1
|
|
|
|
- Use license macro in spec file
|
|
|
|
|
|
|
|
* Tue Mar 19 2019 Jan Friesse <jfriesse@redhat.com> - 20190319-1
|
|
|
|
- Add AUTHORS and COPYING
|
|
|
|
- Fix version number in specfile
|
|
|
|
- Use install -p to preserve timestamps
|
|
|
|
- Use set_build_flags macro
|
|
|
|
- Rebase to new version
|
|
|
|
|
|
|
|
* Mon Mar 18 2019 Jan Friesse <jfriesse@redhat.com> - 20190318-2
|
|
|
|
- Initial version for Fedora
|
|
|
|
|
|
|
|
* Mon Mar 18 2019 Jan Friesse <jfriesse@redhat.com> - 20190318-1
|
|
|
|
- Require VMGuestLib only on x86 and x86_64
|
|
|
|
|
|
|
|
* Wed Mar 21 2018 Jan Friesse <jfriesse@redhat.com> - 20180321-1
|
|
|
|
- Remove exlusivearch for VMGuestLib.
|
|
|
|
- Add copr branch with enhanced spec file which tries to automatically
|
|
|
|
detect what build options should be used (systemd/vmguestlib).
|
|
|
|
|
|
|
|
* Tue Mar 20 2018 Jan Friesse <jfriesse@redhat.com> - 20180320-1
|
|
|
|
- Add support for VMGuestLib
|
|
|
|
- Add more examples
|
|
|
|
|
|
|
|
* Mon Feb 19 2018 Jan Friesse <jfriesse@redhat.com> - 20180219-1
|
|
|
|
- Add support for steal time
|
|
|
|
|
|
|
|
* Fri Feb 9 2018 Jan Friesse <jfriesse@redhat.com> - 20180209-1
|
|
|
|
- Initial version
|