Merge pull request !1 from syyhao/dev225
This commit is contained in:
openeuler-ci-bot 2020-02-26 09:29:34 +08:00 committed by Gitee
commit a8cc52db30
2 changed files with 55 additions and 0 deletions

55
libipt.spec Normal file
View File

@ -0,0 +1,55 @@
Name: libipt
Version: 2.0.1
Release: 1
Summary: Intel(R) Processor Trace Decoder Library
License: BSD
URL: https://github.com/intel/libipt
Source0: https://github.com/intel/%{name}/archive/v%{version}.tar.gz
BuildRequires: gcc-c++ cmake
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: Development files for %{name}
Requires: %{name} = %{version}-%{release}
ExclusiveArch: %{ix86} x86_64
%description devel
This package contains the development files for Intel Processor Trace (Intel PT)
Decoder Library.
%prep
%autosetup -n %{name}-%{version} -p1
%build
%cmake -DCMAKE_BUILD_TYPE=RelWithDebInfo -DPTUNIT:BOOL=ON -DMAN:BOOL=OFF \
-DDEVBUILD:BOOL=ON .
make VERBOSE=1 %{?_smp_mflags}
%install
make install DESTDIR=%{buildroot}
%check
ctest -V %{?_smp_mflags}
%ldconfig_scriptlets
%files
%doc README
%license LICENSE
%{_libdir}/%{name}.so.*
%files devel
%doc doc/howto_*.md
%{_includedir}/*
%{_libdir}/%{name}.so
%changelog
* Tue Jan 52 2020 openEuler Buildteam <buildteam@openeuler.org> - 2.0.1-1
- Package init.

BIN
v2.0.1.tar.gz Normal file

Binary file not shown.