diff --git a/libipt.spec b/libipt.spec new file mode 100644 index 0000000000000000000000000000000000000000..c55b1dc3fc2de838d9e438d29386c614023d7028 --- /dev/null +++ b/libipt.spec @@ -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 - 2.0.1-1 +- Package init. diff --git a/v2.0.1.tar.gz b/v2.0.1.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..74cb6aa2c07d23534fb560cd095f2a68b59eb5e2 Binary files /dev/null and b/v2.0.1.tar.gz differ