-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpcm.spec
72 lines (61 loc) · 1.84 KB
/
pcm.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
Name: pcm
Version: 0
Release: 0
Summary: Processor Counter Monitor
Group: System/Monitoring
License: BSD-3-Clause
Url: https://github.com/opcm/pcm/archive
Source: master.zip
BuildRoot: %{_tmppath}/%{name}-%{version}-build
AutoReqProv: on
BuildRequires: unzip
BuildRequires: gcc
BuildRequires: gcc-c++
%description
Processor Counter Monitor (PCM) is an application programming interface (API) and a set of tools based on the API to monitor performance and energy metrics of Intel(r) Core(tm), Xeon(r), Atom(tm) and Xeon Phi(tm) processors. PCM works on Linux, Windows, Mac OS X, FreeBSD and DragonFlyBSD operating systems.
%prep
%setup -n pcm-master
%build
make -j
%install
rm -rf $RPM_BUILD_ROOT
make install prefix=$RPM_BUILD_ROOT/%{_bindir}/..
%clean
rm -rf $RPM_BUILD_ROOT
%post
%postun
%files
%defattr(-,root,root,0755)
%doc license.txt LINUX_HOWTO.txt
%{_sbindir}/pcm-core
%{_sbindir}/pcm-iio
%{_sbindir}/pcm-latency
%{_sbindir}/pcm-lspci
%{_sbindir}/pcm-memory
%{_sbindir}/pcm-msr
%{_sbindir}/pcm-numa
%{_sbindir}/pcm-pcicfg
%{_sbindir}/pcm-pcie
%{_sbindir}/pcm-power
%{_sbindir}/pcm-sensor
%{_sbindir}/pcm-sensor-server
%{_sbindir}/pcm-tsx
%{_sbindir}/pcm-raw
%{_sbindir}/pcm
%{_bindir}/pcm-client
%{_sbindir}/pcm-daemon
%{_sbindir}/pcm-bw-histogram
%{_bindir}/../share/pcm
%{_bindir}/../share/pcm/opCode.txt
%changelog
* Tue Aug 25 2020 - [email protected]
Add pcm-raw under %files
* Tue Apr 01 2020 - [email protected]
Add pcm-sensor-server under %files
* Mon Nov 25 2019 - [email protected]
call make install and use %{_sbindir} or %{_bindir}
* Mon Oct 21 2019 - [email protected]
add opCode file to /usr/share/pcm
use "install" to copy pcm-bw-histogram.sh
* Fri Oct 18 2019 - [email protected]
created spec file