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