]> git.pld-linux.org Git - packages/libipt.git/blame - libipt.spec
- updated to 2.0.1
[packages/libipt.git] / libipt.spec
CommitLineData
436c5e6e
JB
1#
2# Conditional build:
3%bcond_without xed # ptxed utility
4%bcond_without tests # unit tests
5
d6f91479 6Summary: Intel Processor Trace Decoder Library
436c5e6e 7Summary(pl.UTF-8): Biblioteka dekodera Intel PT (śladów procesora Intel)
d6f91479 8Name: libipt
436c5e6e 9Version: 2.0.1
d6f91479
AM
10Release: 1
11License: BSD
12Group: Libraries
436c5e6e
JB
13#Source0Download: https://github.com/intel/libipt/releases
14Source0: https://github.com/intel/libipt/archive/v%{version}/%{name}-%{version}.tar.gz
15# Source0-md5: bae11676b72d341ecb9b33b9add84be8
16URL: https://github.com/intel/libipt
17BuildRequires: cmake >= 2.8.6
18%{?with_xed:BuildRequires: intel-xed-devel}
19# C++ is required only for -DPTUNIT test "ptunit-cpp".
20%{?with_tests:BuildRequires: libstdc++-devel}
21# pandoc for -DMAN
d6f91479 22BuildRequires: pandoc
436c5e6e
JB
23ExclusiveArch: %{ix86} %{x8664} x32
24BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
d6f91479
AM
25
26%description
27The Intel Processor Trace (Intel PT) Decoder Library is Intel's
28reference implementation for decoding Intel PT. It can be used as a
29standalone library or it can be partially or fully integrated into
30your tool.
31
436c5e6e
JB
32%description -l pl.UTF-8
33Biblioteka Intel PT (Intel Processor Trace - śladów procesora Intel)
34to wzorcowa implementacja Intela do dekodowania Intel PT. Może służyć
35jako biblioteka samodzielna lub zintegrowana we własne narzędzia.
36
d6f91479 37%package devel
436c5e6e
JB
38Summary: Header files for Intel Processor Trace Decoder Library
39Summary(pl.UTF-8): Pliki nagłówkowe biblioteki dekodera Intel PT
b3aba5ad 40Group: Development/Libraries
d6f91479 41Requires: %{name} = %{version}-%{release}
d6f91479
AM
42
43%description devel
436c5e6e
JB
44This package contains the header files needed to develop programs that
45use the Intel Processor Trace (Intel PT) Decoder Library.
46
47%description devel -l pl.UTF-8
48Ten pakiet zawiera pliki nagłówkowe potrzebne do tworzenia programów
49wykorzystujących bibliotekę dekodera Intel PT (śladów procesora
50Intel).
51
52%package tools
53Summary: Intel Processor Trace tools
54Summary(pl.UTF-8): Narzędzia Intel PT
55Group: Development/Tools
56Requires: %{name} = %{version}-%{release}
57
58%description tools
59Intel Processor Trace tools.
60
61%description tools -l pl.UTF-8
62Narzędzia Intel PT.
d6f91479
AM
63
64%prep
436c5e6e 65%setup -q
d6f91479
AM
66
67%build
68install -d build
69cd build
436c5e6e 70%cmake .. \
d6f91479 71 -DDEVBUILD:BOOL=ON \
436c5e6e
JB
72 -DFEATURE_ELF:BOOL=ON \
73 -DMAN:BOOL=ON \
74 -DPEVENT:BOOL=ON \
75 -DPTDUMP: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
d6f91479
AM
79
80%{__make}
81
82%install
83rm -rf $RPM_BUILD_ROOT
84
85%{__make} -C build install \
436c5e6e
JB
86 DESTDIR=$RPM_BUILD_ROOT
87
88install -d $RPM_BUILD_ROOT%{_bindir}
89install build/bin/ptdump $RPM_BUILD_ROOT%{_bindir}
90%if %{with xed}
91install build/bin/ptxed $RPM_BUILD_ROOT%{_bindir}
92%endif
d6f91479
AM
93
94%clean
95rm -rf $RPM_BUILD_ROOT
96
436c5e6e
JB
97%post -p /sbin/ldconfig
98%postun -p /sbin/ldconfig
d6f91479
AM
99
100%files
101%defattr(644,root,root,755)
436c5e6e
JB
102%doc LICENSE README
103%attr(755,root,root) %{_libdir}/libipt.so.*.*
104%attr(755,root,root) %ghost %{_libdir}/libipt.so.2
d6f91479
AM
105
106%files devel
107%defattr(644,root,root,755)
436c5e6e
JB
108%doc doc/{getting_started,howto_capture,howto_libipt}.md
109%attr(755,root,root) %{_libdir}/libipt.so
d6f91479 110%{_includedir}/intel-pt.h
d6f91479 111%{_mandir}/man3/pt_*.3*
436c5e6e
JB
112
113%files tools
114%defattr(644,root,root,755)
115%attr(755,root,root) %{_bindir}/ptdump
116%if %{with xed}
117%attr(755,root,root) %{_bindir}/ptxed
118%endif
This page took 0.086618 seconds and 4 git commands to generate.