]> git.pld-linux.org Git - packages/libipt.git/blame - libipt.spec
- group for devel
[packages/libipt.git] / libipt.spec
CommitLineData
d6f91479
AM
1Summary: Intel Processor Trace Decoder Library
2Name: libipt
3Version: 2.0
4Release: 1
5License: BSD
6Group: Libraries
7URL: https://github.com/01org/processor-trace
8Source0: https://github.com/01org/processor-trace/archive/v%{version}.tar.gz
9# Source0-md5: d7cc87d42479d41870056a99591096cd
10# c++ is required only for -DPTUNIT test "ptunit-cpp".
11# pandoc is for -DMAN.
12BuildRequires: cmake
13BuildRequires: libstdc++-devel
14BuildRequires: pandoc
b3c45e15 15ExclusiveArch: %{ix86} %{x8664}
d6f91479
AM
16
17%description
18The Intel Processor Trace (Intel PT) Decoder Library is Intel's
19reference implementation for decoding Intel PT. It can be used as a
20standalone library or it can be partially or fully integrated into
21your tool.
22
23%package devel
24Summary: Header files and libraries for Intel Processor Trace Decoder Library
b3aba5ad 25Group: Development/Libraries
d6f91479 26Requires: %{name} = %{version}-%{release}
b3c45e15 27ExclusiveArch: %{ix86} %{x8664}
d6f91479
AM
28
29%description devel
30The %{name}-devel package contains the header files and libraries
31needed to develop programs that use the Intel Processor Trace (Intel
32PT) Decoder Library.
33
34%prep
35%setup -q -n processor-trace-%{version}
36
37%build
38install -d build
39cd build
40%cmake \
41 -DPTUNIT:BOOL=ON \
42 -DMAN:BOOL=ON \
43 -DDEVBUILD:BOOL=ON \
44 ..
45
46%{__make}
47
48%install
49rm -rf $RPM_BUILD_ROOT
50
51%{__make} -C build install \
52 DESTDIR=$RPM_BUILD_ROOT
53
54%clean
55rm -rf $RPM_BUILD_ROOT
56
57%post -p /sbin/ldconfig
58%postun -p /sbin/ldconfig
59
60%files
61%defattr(644,root,root,755)
62%doc README
63%attr(755,root,root) %ghost %{_libdir}/%{name}.so.2
64%attr(755,root,root) %{_libdir}/%{name}.so.*.*
65
66%files devel
67%defattr(644,root,root,755)
68%doc doc/{getting_started,howto_libipt}.md
69%{_includedir}/intel-pt.h
70%attr(755,root,root) %{_libdir}/%{name}.so
71%{_mandir}/man3/pt_*.3*
This page took 0.130579 seconds and 4 git commands to generate.