-
Notifications
You must be signed in to change notification settings - Fork 2
/
smp_affinity.spec
92 lines (68 loc) · 2.93 KB
/
smp_affinity.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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
Name: smp_affinity
Version: 1.9.0
Release: 1%{?dist}
Summary: List and configure CPU affinity of process and interrupts
Group: Application/System
License: GPL-3
BuildArch: noarch
URL: https://github.com/saruspete/smp_affinity
Source0: https://github.com/saruspete/%{name}/archive/%{version}.tar.gz
#BuildRequires:
Requires: /usr/bin/perl
#Requires: perl-Math-BigInt
%define debug_package %{nil}
# You can try to push files in /usr/local or /opt
%define _prefix /
# =============================================================================
# Complete description of the package
# =============================================================================
%description
Display and configure affinity of processes and IRQs
# =============================================================================
# Preparation of the build environment
# =============================================================================
%prep
%setup -q
# =============================================================================
# Compilation of the source
# =============================================================================
%build
# =============================================================================
# Installation from build to buildroot
# =============================================================================
%install
rm -rf "${RPM_BUILD_ROOT}"
mkdir -p "${RPM_BUILD_ROOT}%{?prefix}/usr/bin"
cp smp_affinity "${RPM_BUILD_ROOT}%{?prefix}/usr/bin"
ls -al
# =============================================================================
# Cleanup of the build environment
# =============================================================================
#%clean
# =============================================================================
# Files to be embedded in final RPM
# =============================================================================
%files
%defattr(-,root,root)
# Standard files
%{?prefix}/usr/bin/smp_affinity
# =============================================================================
# Actions before installation / upgrade
# =============================================================================
%pre
# =============================================================================
# Actions after installation / upgrade
# =============================================================================
%post
# =============================================================================
# Actions before removal
# =============================================================================
%preun
# =============================================================================
# Actions after removal
# =============================================================================
%postun
# =============================================================================
# Changelog
# =============================================================================
%changelog