Blame SPECS/spausedd.spec

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