-
Notifications
You must be signed in to change notification settings - Fork 489
/
Copy pathpcm.spec
112 lines (101 loc) · 3.08 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
101
102
103
104
105
106
107
108
109
110
111
112
Name: pcm
Version: master
Release: 0
Summary: Intel(r) Performance Counter Monitor
Group: System/Monitoring
License: BSD-3-Clause
Url: https://github.com/intel/pcm
Source: %{version}.zip
Source1: https://github.com/intel/perfmon/archive/main.zip
BuildRoot: %{_tmppath}/%{name}-%{version}-build
AutoReqProv: on
BuildRequires: unzip
BuildRequires: gcc
BuildRequires: make
BuildRequires: gcc-c++
BuildRequires: cmake
%if 0%{?suse_version}
BuildRequires: libopenssl-devel
%else
BuildRequires: openssl-devel
BuildRequires: libasan
%endif
%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
rm -rf perfmon
unzip $RPM_SOURCE_DIR/main.zip
mv perfmon-main perfmon
%build
mkdir build
cd build
cmake -DPCM_NO_STATIC_LIBASAN=ON -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-tpmi
%{_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