3 %bcond_without xed # ptxed utility
4 %bcond_without tests # unit tests
5 %bcond_without ghc # man pages (requires ghc-dependent pandoc)
7 Summary: Intel Processor Trace Decoder Library
8 Summary(pl.UTF-8): Biblioteka dekodera Intel PT (śladów procesora Intel)
14 #Source0Download: https://github.com/intel/libipt/releases
15 Source0: https://github.com/intel/libipt/archive/v%{version}/%{name}-%{version}.tar.gz
16 # Source0-md5: bae11676b72d341ecb9b33b9add84be8
17 URL: https://github.com/intel/libipt
18 BuildRequires: cmake >= 2.8.6
19 %{?with_xed:BuildRequires: intel-xed-devel}
20 # C++ is required only for -DPTUNIT test "ptunit-cpp".
21 %{?with_tests:BuildRequires: libstdc++-devel}
22 %{?with_ghc:BuildRequires: pandoc}
23 ExclusiveArch: %{ix86} %{x8664} x32
24 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
27 The Intel Processor Trace (Intel PT) Decoder Library is Intel's
28 reference implementation for decoding Intel PT. It can be used as a
29 standalone library or it can be partially or fully integrated into
32 %description -l pl.UTF-8
33 Biblioteka Intel PT (Intel Processor Trace - śladów procesora Intel)
34 to wzorcowa implementacja Intela do dekodowania Intel PT. Może służyć
35 jako biblioteka samodzielna lub zintegrowana we własne narzędzia.
38 Summary: Header files for Intel Processor Trace Decoder Library
39 Summary(pl.UTF-8): Pliki nagłówkowe biblioteki dekodera Intel PT
40 Group: Development/Libraries
41 Requires: %{name} = %{version}-%{release}
44 This package contains the header files needed to develop programs that
45 use the Intel Processor Trace (Intel PT) Decoder Library.
47 %description devel -l pl.UTF-8
48 Ten pakiet zawiera pliki nagłówkowe potrzebne do tworzenia programów
49 wykorzystujących bibliotekę dekodera Intel PT (śladów procesora
53 Summary: Intel Processor Trace tools
54 Summary(pl.UTF-8): Narzędzia Intel PT
55 Group: Development/Tools
56 Requires: %{name} = %{version}-%{release}
59 Intel Processor Trace tools.
61 %description tools -l pl.UTF-8
72 -DFEATURE_ELF:BOOL=ON \
73 %{?with_ghc:-DMAN:BOOL=ON} \
76 %{?with_tests:-DPTUNIT:BOOL=ON} \
77 %{?with_xed:-DPTXED:BOOL=ON -DXED_INCLUDE=%{_includedir}/xed}
78 # -DSIDEBAND:BOOL=ON not yet: not installed, binaries depend on it
83 rm -rf $RPM_BUILD_ROOT
85 %{__make} -C build install \
86 DESTDIR=$RPM_BUILD_ROOT
88 install -d $RPM_BUILD_ROOT%{_bindir}
89 install build/bin/ptdump $RPM_BUILD_ROOT%{_bindir}
91 install build/bin/ptxed $RPM_BUILD_ROOT%{_bindir}
95 rm -rf $RPM_BUILD_ROOT
97 %post -p /sbin/ldconfig
98 %postun -p /sbin/ldconfig
101 %defattr(644,root,root,755)
103 %attr(755,root,root) %{_libdir}/libipt.so.*.*
104 %attr(755,root,root) %ghost %{_libdir}/libipt.so.2
107 %defattr(644,root,root,755)
108 %doc doc/{getting_started,howto_capture,howto_libipt}.md
109 %attr(755,root,root) %{_libdir}/libipt.so
110 %{_includedir}/intel-pt.h
112 %{_mandir}/man3/pt_*.3*
116 %defattr(644,root,root,755)
117 %attr(755,root,root) %{_bindir}/ptdump
119 %attr(755,root,root) %{_bindir}/ptxed