-
Notifications
You must be signed in to change notification settings - Fork 0
/
cputopology.spec
43 lines (33 loc) · 979 Bytes
/
cputopology.spec
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
Summary: CPU Topology Configuration Tool
Name: cputopology
Version: 1.0
Release: 0%{?dist}
License: GPL
Source0: cputopology.tar.bz2
Requires: bash, util-linux, systemd-units
%description
The CPU Topology Configuration Tool is a command-line utility that allows users
to configure their cpu topology at boot time via systemd and kernel parameters
or run time on the command line.
%global debug_package %{nil}
%prep
%autosetup
%build
%install
mkdir -p %{buildroot}/%{_sbindir}/
mkdir -p %{buildroot}/%{_unitdir}/
install -m 755 cputopology %{buildroot}/%{_sbindir}/cputopology
install -m 644 cputopology.service %{buildroot}/%{_unitdir}/cputopology.service
%files
%defattr(-,root,root)
%{_sbindir}/cputopology
%{_unitdir}/cputopology.service
%post
%systemd_post cputopology.service
%preun
%systemd_preun cputopology.service
%postun
%systemd_postun_with_restart cputopology.service
%changelog
* Tue Feb 19 2019 Prarit Bhargava <prarit@redhat.com> 1.0.0
- Initial version