From: Arkadiusz Miƛkiewicz Date: Wed, 10 Oct 2018 12:47:13 +0000 (+0200) Subject: - initial; based on fc spec X-Git-Tag: auto/th/libipt-2.0-1~1 X-Git-Url: http://git.pld-linux.org/?p=packages%2Flibipt.git;a=commitdiff_plain;h=d6f9147 - initial; based on fc spec --- d6f91479db5073570cf0c5f2b2f038a28263b97d diff --git a/libipt.spec b/libipt.spec new file mode 100644 index 0000000..d0a1210 --- /dev/null +++ b/libipt.spec @@ -0,0 +1,70 @@ +Summary: Intel Processor Trace Decoder Library +Name: libipt +Version: 2.0 +Release: 1 +License: BSD +Group: Libraries +URL: https://github.com/01org/processor-trace +Source0: https://github.com/01org/processor-trace/archive/v%{version}.tar.gz +# Source0-md5: d7cc87d42479d41870056a99591096cd +# c++ is required only for -DPTUNIT test "ptunit-cpp". +# pandoc is for -DMAN. +BuildRequires: cmake +BuildRequires: libstdc++-devel +BuildRequires: pandoc +ExclusiveArch: %{ix86} x86_64 + +%description +The Intel Processor Trace (Intel PT) Decoder Library is Intel's +reference implementation for decoding Intel PT. It can be used as a +standalone library or it can be partially or fully integrated into +your tool. + +%package devel +Summary: Header files and libraries for Intel Processor Trace Decoder Library +Requires: %{name} = %{version}-%{release} +ExclusiveArch: %{ix86} x86_64 + +%description devel +The %{name}-devel package contains the header files and libraries +needed to develop programs that use the Intel Processor Trace (Intel +PT) Decoder Library. + +%prep +%setup -q -n processor-trace-%{version} + +%build +install -d build +cd build +%cmake \ + -DPTUNIT:BOOL=ON \ + -DMAN:BOOL=ON \ + -DDEVBUILD:BOOL=ON \ + .. + +%{__make} + +%install +rm -rf $RPM_BUILD_ROOT + +%{__make} -C build install \ + DESTDIR=$RPM_BUILD_ROOT + +%clean +rm -rf $RPM_BUILD_ROOT + +%post -p /sbin/ldconfig +%postun -p /sbin/ldconfig + +%files +%defattr(644,root,root,755) +%doc README +%attr(755,root,root) %ghost %{_libdir}/%{name}.so.2 +%attr(755,root,root) %{_libdir}/%{name}.so.*.* + +%files devel +%defattr(644,root,root,755) +%doc doc/{getting_started,howto_libipt}.md +%{_includedir}/intel-pt.h +%attr(755,root,root) %{_libdir}/%{name}.so +%{_mandir}/man3/pt_*.3*