86 lines
2.5 KiB
RPMSpec
86 lines
2.5 KiB
RPMSpec
Name: libipt
|
|
Version: 1.6.1
|
|
Release: 3%{?dist}
|
|
Summary: Intel Processor Trace Decoder Library
|
|
License: BSD
|
|
URL: https://github.com/01org/processor-trace
|
|
Source0: https://github.com/01org/processor-trace/archive/v%{version}.tar.gz
|
|
Patch1: v1.6.1-implicit-fallthrough.patch
|
|
BuildRequires: 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.
|
|
|
|
%post -p /sbin/ldconfig
|
|
%postun -p /sbin/ldconfig
|
|
|
|
%package devel
|
|
Summary: Header files and libraries for Intel Processor Trace Decoder Library
|
|
Requires: %{name}%{?_isa} = %{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}
|
|
%patch1 -p1
|
|
|
|
%build
|
|
# -DPTUNIT:BOOL=ON has no effect on ctest.
|
|
%cmake -DCMAKE_BUILD_TYPE=RelWithDebInfo \
|
|
-DPTUNIT:BOOL=OFF \
|
|
-DDEVBUILD:BOOL=ON \
|
|
.
|
|
make VERBOSE=1 %{?_smp_mflags}
|
|
|
|
%install
|
|
make install DESTDIR=%{buildroot}
|
|
%global develdocs howto_libipt.md
|
|
(cd doc;cp -p %{develdocs} ..)
|
|
|
|
%check
|
|
ctest -V %{?_smp_mflags}
|
|
|
|
%files
|
|
%doc README
|
|
%license LICENSE
|
|
%{_libdir}/%{name}.so.*
|
|
|
|
%files devel
|
|
%doc %{develdocs}
|
|
%{_includedir}/*
|
|
%{_libdir}/%{name}.so
|
|
|
|
%changelog
|
|
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.6.1-3
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
|
|
|
|
* Fri Jun 9 2017 Jan Kratochvil <jan.kratochvil@redhat.com> - 1.6.1-2
|
|
- Fix [-Werror=implicit-fallthrough=] with gcc-7.1.1.
|
|
|
|
* Fri Jun 9 2017 Jan Kratochvil <jan.kratochvil@redhat.com> - 1.6.1-1
|
|
- Rebase to upstream 1.6.1.
|
|
|
|
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.5-2
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
|
|
|
|
* Mon Apr 11 2016 Jan Kratochvil <jan.kratochvil@redhat.com> - 1.5-1
|
|
- Rebase to upstream 1.5.
|
|
|
|
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.4.4-2
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
|
|
|
|
* Wed Jan 20 2016 Jan Kratochvil <jan.kratochvil@redhat.com> - 1.4.4-1
|
|
- Rebase to upstream 1.4.4.
|
|
|
|
* Wed Oct 14 2015 Jan Kratochvil <jan.kratochvil@redhat.com> - 1.4.3-1
|
|
- Rebase to upstream 1.4.3.
|
|
|
|
* Mon Aug 31 2015 Jan Kratochvil <jan.kratochvil@redhat.com> - 1.4.2-1
|
|
- Initial Fedora packaging.
|