-
Notifications
You must be signed in to change notification settings - Fork 0
/
pcm.spec
100 lines (90 loc) · 2.77 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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
Name: pcm
Version: 0
Release: 0
Summary: Intel(r) Performance 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: make
BuildRequires: gcc-c++
BuildRequires: cmake
%description
Intel(r) Performance Counter Monitor (Intel(r) 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
mkdir build
cd build
cmake -DCMAKE_INSTALL_PREFIX=/usr/ -DCMAKE_BUILD_TYPE=RelWithDebInfo ..
make -j
%install
rm -rf $RPM_BUILD_ROOT
cd build
make install DESTDIR=$RPM_BUILD_ROOT
%clean
rm -rf $RPM_BUILD_ROOT
%post
%postun
%files
%defattr(-,root,root,0755)
%doc LICENSE doc/LINUX_HOWTO.txt
/usr/share/doc/PCM
/usr/share/licenses/pcm
/usr/share/doc/PCM/CUSTOM-COMPILE-OPTIONS.md
/usr/share/doc/PCM/DOCKER_README.md
/usr/share/doc/PCM/ENVVAR_README.md
/usr/share/doc/PCM/FAQ.md
/usr/share/doc/PCM/FREEBSD_HOWTO.txt
/usr/share/doc/PCM/LINUX_HOWTO.txt
/usr/share/doc/PCM/MAC_HOWTO.txt
/usr/share/doc/PCM/PCM-EXPORTER.md
/usr/share/doc/PCM/PCM-SENSOR-SERVER-README.md
/usr/share/doc/PCM/PCM_RAW_README.md
/usr/share/doc/PCM/README.md
/usr/share/doc/PCM/WINDOWS_HOWTO.md
/usr/share/doc/PCM/license.txt
/usr/share/licenses/pcm/LICENSE
%{_sbindir}/pcm-core
%{_sbindir}/pcm-iio
%{_sbindir}/pcm-latency
%{_sbindir}/pcm-lspci
%{_sbindir}/pcm-memory
%{_sbindir}/pcm-msr
%{_sbindir}/pcm-mmio
%{_sbindir}/pcm-numa
%{_sbindir}/pcm-pcicfg
%{_sbindir}/pcm-accel
%{_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
%{_datadir}/pcm/
%changelog
* Mon Feb 28 2022 - [email protected]
add addition doc files
* Tue Jan 04 2022 - [email protected]
Add cmake adaptation
* Fri Dec 17 2021 - [email protected]
Move licence.txt Linix_HOWTO.txt to doc folder
* Tue Aug 25 2020 - [email protected]
Add pcm-raw under %files
* Wed 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