Initial import (#1690027).

This commit is contained in:
Jan Friesse 2019-03-20 16:31:48 +01:00
parent 77ee7f241e
commit 1eaba7dcb1
3 changed files with 98 additions and 0 deletions

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
/spausedd-20190320.tar.gz

1
sources Normal file
View File

@ -0,0 +1 @@
SHA512 (spausedd-20190320.tar.gz) = a7f9863355a3106ea61c8b7e512c2bc895c8b5b07fb3d26f8feec8f963abb7a95230f83f9d27c6ac3aedaa9d91c6fb700bacc1ca59adfa769876168296241599

96
spausedd.spec Normal file
View File

@ -0,0 +1,96 @@
%bcond_without vmguestlib
Name: spausedd
Summary: Utility to detect and log scheduler pause
Version: 20190320
Release: 1%{?dist}
License: ISC
URL: https://github.com/jfriesse/spausedd
Source0: https://github.com/jfriesse/%{name}/releases/download/%{version}/%{name}-%{version}.tar.gz
# VMGuestLib exists only for x86 architectures
%if %{with vmguestlib}
%ifarch %{ix86} x86_64
%global use_vmguestlib 1
%endif
%endif
BuildRequires: gcc
%{?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
make \
%if %{defined use_vmguestlib}
WITH_VMGUESTLIB=1 \
%else
WITH_VMGUESTLIB=0 \
%endif
%{?_smp_mflags}
%install
make DESTDIR="%{buildroot}" PREFIX="%{_prefix}" install
mkdir -p %{buildroot}/%{_unitdir}
install -m 755 -p init/%{name}.service %{buildroot}/%{_unitdir}
%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
* 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