|
|
093829 |
# rmpbuild parameters:
|
|
|
093829 |
# --with docs: Build pre-generated documentation.
|
|
|
093829 |
|
|
|
093829 |
%global __cmake_in_source_build 1
|
|
|
093829 |
|
|
|
093829 |
Name: libipt
|
|
|
093829 |
Version: 2.0.4
|
|
|
093829 |
Release: 5%{?dist}
|
|
|
093829 |
Summary: Intel Processor Trace Decoder Library
|
|
|
093829 |
License: BSD
|
|
|
093829 |
URL: https://github.com/intel/libipt
|
|
|
093829 |
Source0: https://github.com/intel/libipt/archive/v%{version}.tar.gz
|
|
|
093829 |
Patch0: libipt-gcc11.patch
|
|
|
093829 |
Source1: doc-v%{version}.tar.xz
|
|
|
093829 |
# c++ is required only for -DPTUNIT test "ptunit-cpp".
|
|
|
093829 |
BuildRequires: gcc-c++ cmake
|
|
|
093829 |
%if 0%{?_with_docs:1}
|
|
|
093829 |
# pandoc is for -DMAN.
|
|
|
093829 |
BuildRequires: pandoc
|
|
|
093829 |
%endif
|
|
|
093829 |
BuildRequires: make
|
|
|
093829 |
ExclusiveArch: %{ix86} x86_64
|
|
|
093829 |
|
|
|
093829 |
%description
|
|
|
093829 |
The Intel Processor Trace (Intel PT) Decoder Library is Intel's reference
|
|
|
093829 |
implementation for decoding Intel PT. It can be used as a standalone library
|
|
|
093829 |
or it can be partially or fully integrated into your tool.
|
|
|
093829 |
|
|
|
093829 |
%ldconfig_scriptlets
|
|
|
093829 |
|
|
|
093829 |
%package devel
|
|
|
093829 |
Summary: Header files and libraries for Intel Processor Trace Decoder Library
|
|
|
093829 |
Requires: %{name}%{?_isa} = %{version}-%{release}
|
|
|
093829 |
ExclusiveArch: %{ix86} x86_64
|
|
|
093829 |
|
|
|
093829 |
%description devel
|
|
|
093829 |
The %{name}-devel package contains the header files and libraries needed to
|
|
|
093829 |
develop programs that use the Intel Processor Trace (Intel PT) Decoder Library.
|
|
|
093829 |
|
|
|
093829 |
%prep
|
|
|
093829 |
%setup -q -n libipt-%{version}
|
|
|
093829 |
%patch0 -p1
|
|
|
093829 |
|
|
|
093829 |
%build
|
|
|
093829 |
%cmake -DCMAKE_BUILD_TYPE=RelWithDebInfo \
|
|
|
093829 |
-DPTUNIT:BOOL=ON \
|
|
|
093829 |
%if 0%{?_with_docs:1}
|
|
|
093829 |
-DMAN:BOOL=ON \
|
|
|
093829 |
%endif
|
|
|
093829 |
-DDEVBUILD:BOOL=ON \
|
|
|
093829 |
.
|
|
|
093829 |
%make_build
|
|
|
093829 |
|
|
|
093829 |
%install
|
|
|
093829 |
%make_install
|
|
|
093829 |
%global develdocs howto_libipt.md
|
|
|
093829 |
(cd doc;cp -p %{develdocs} ..)
|
|
|
093829 |
|
|
|
093829 |
# If not building documentation, copy the pre-generated man pages
|
|
|
093829 |
# to the appropriate place. Otherwise, tar up the generated
|
|
|
093829 |
# documentation for use in subsequent builds.
|
|
|
093829 |
%if 0%{?_with_docs:1}
|
|
|
093829 |
(cd $RPM_BUILD_ROOT%{_mandir}/..; %__tar cJf %{SOURCE1} .)
|
|
|
093829 |
%else
|
|
|
093829 |
mkdir -p $RPM_BUILD_ROOT%{_mandir}
|
|
|
093829 |
(cd $RPM_BUILD_ROOT%{_mandir}/..; %__tar xJf %{SOURCE1})
|
|
|
093829 |
%endif
|
|
|
093829 |
|
|
|
093829 |
%check
|
|
|
093829 |
ctest -V %{?_smp_mflags}
|
|
|
093829 |
|
|
|
093829 |
%files
|
|
|
093829 |
%doc README
|
|
|
093829 |
%license LICENSE
|
|
|
093829 |
%{_libdir}/%{name}.so.*
|
|
|
093829 |
|
|
|
093829 |
%files devel
|
|
|
093829 |
%doc %{develdocs}
|
|
|
093829 |
%{_includedir}/*
|
|
|
093829 |
%{_libdir}/%{name}.so
|
|
|
093829 |
%{_mandir}/*/*.gz
|
|
|
093829 |
|
|
|
093829 |
%changelog
|
|
|
093829 |
* Thu Aug 12 2021 Keith Seitz <keiths@redhat.com> - 2.0.4-5
|
|
|
093829 |
- Rebuilt for CI verification of 1943531.
|
|
|
093829 |
|
|
|
093829 |
* Mon Aug 09 2021 Mohan Boddu <mboddu@redhat.com> - 2.0.4-4
|
|
|
093829 |
- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags
|
|
|
093829 |
Related: rhbz#1991688
|
|
|
093829 |
|
|
|
093829 |
* Fri Apr 16 2021 Mohan Boddu <mboddu@redhat.com> - 2.0.4-3
|
|
|
093829 |
- Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937
|
|
|
093829 |
|
|
|
093829 |
* Tue Mar 30 2021 Keith Seitz <keiths@redhat.com> - 2.0.4-2
|
|
|
093829 |
- Add support for pre-generated documenation, allowing removal
|
|
|
093829 |
of pandoc dependency. (RHBZ 1943531, Keith Seitz)
|
|
|
093829 |
|
|
|
093829 |
* Wed Mar 10 2021 Kevin Buettner <kevinb@redhat.com> - 2.0.4-1
|
|
|
093829 |
- Release v2.0.4.
|
|
|
093829 |
|
|
|
093829 |
* Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.2-3
|
|
|
093829 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
|
|
093829 |
|
|
|
093829 |
* Wed Aug 19 2020 Jeff Law <law@redhat.com> - 2.0.2-2
|
|
|
093829 |
- Fix uninitialized variable in testsuite
|
|
|
093829 |
|
|
|
093829 |
* Tue Aug 04 2020 Keith Seitz <keiths@redhat.com> - 2.0.2-1
|
|
|
093829 |
- Upgrade to 2.0.2.
|
|
|
093829 |
|
|
|
093829 |
* Sat Aug 01 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.1-6
|
|
|
093829 |
- Second attempt - Rebuilt for
|
|
|
093829 |
https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
|
|
093829 |
|
|
|
093829 |
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.1-5
|
|
|
093829 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
|
|
093829 |
|
|
|
093829 |
* Fri Jul 24 2020 Jeff Law <law@redhat.com> - 2.0.1-4
|
|
|
093829 |
- Use __cmake_in_source_build
|
|
|
093829 |
|
|
|
093829 |
* Wed Jul 22 2020 Tom Stellard <tstellar@redhat.com> - 2.0.1-3
|
|
|
093829 |
- Use make macros
|
|
|
093829 |
- https://fedoraproject.org/wiki/Changes/UseMakeBuildInstallMacro
|
|
|
093829 |
|
|
|
093829 |
* Wed Jan 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.1-2
|
|
|
093829 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
|
|
093829 |
|
|
|
093829 |
* Fri Aug 16 2019 Sergio Durigan Junior <sergiodj@redhat.com> - 2.0.1-1
|
|
|
093829 |
- Release v2.0.1.
|
|
|
093829 |
|
|
|
093829 |
* Thu Jul 25 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2.0-3
|
|
|
093829 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
|
|
093829 |
|
|
|
093829 |
* Fri Feb 01 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2.0-2
|
|
|
093829 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
|
|
093829 |
|
|
|
093829 |
* Wed Aug 8 2018 Sergio Durigan Junior <sergiodj@redhat.com> - 2.0-1
|
|
|
093829 |
- Release v2.0.
|
|
|
093829 |
|
|
|
093829 |
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.6.1-9
|
|
|
093829 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
|
|
093829 |
|
|
|
093829 |
* Mon Mar 5 2018 Jan Kratochvil <jan.kratochvil@redhat.com> - 1.6.1-8
|
|
|
093829 |
- Enable tests (PTUNIT) and man pages (MAN).
|
|
|
093829 |
- Change BuildRequires: gcc -> gcc-c++ as PTUNIT tests require C++.
|
|
|
093829 |
|
|
|
093829 |
* Sat Mar 3 2018 Jan Kratochvil <jan.kratochvil@redhat.com> - 1.6.1-7
|
|
|
093829 |
- Add: BuildRequires: gcc
|
|
|
093829 |
https://fedoraproject.org/wiki/Packaging:C_and_C%2B%2B#BuildRequires_and_Requires
|
|
|
093829 |
|
|
|
093829 |
* Fri Mar 2 2018 Jan Kratochvil <jan.kratochvil@redhat.com> - 1.6.1-6
|
|
|
093829 |
- Fix v1.6.1-implicit-fallthrough.patch compatibility with gcc < 7.
|
|
|
093829 |
- Use %%ldconfig_scriptlets.
|
|
|
093829 |
https://fedoraproject.org/wiki/Packaging:Scriptlets#Shared_Libraries
|
|
|
093829 |
|
|
|
093829 |
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.6.1-5
|
|
|
093829 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
|
|
093829 |
|
|
|
093829 |
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.6.1-4
|
|
|
093829 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
|
|
|
093829 |
|
|
|
093829 |
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.6.1-3
|
|
|
093829 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
|
|
|
093829 |
|
|
|
093829 |
* Fri Jun 9 2017 Jan Kratochvil <jan.kratochvil@redhat.com> - 1.6.1-2
|
|
|
093829 |
- Fix [-Werror=implicit-fallthrough=] with gcc-7.1.1.
|
|
|
093829 |
|
|
|
093829 |
* Fri Jun 9 2017 Jan Kratochvil <jan.kratochvil@redhat.com> - 1.6.1-1
|
|
|
093829 |
- Rebase to upstream 1.6.1.
|
|
|
093829 |
|
|
|
093829 |
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.5-2
|
|
|
093829 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
|
|
|
093829 |
|
|
|
093829 |
* Mon Apr 11 2016 Jan Kratochvil <jan.kratochvil@redhat.com> - 1.5-1
|
|
|
093829 |
- Rebase to upstream 1.5.
|
|
|
093829 |
|
|
|
093829 |
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.4.4-2
|
|
|
093829 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
|
|
|
093829 |
|
|
|
093829 |
* Wed Jan 20 2016 Jan Kratochvil <jan.kratochvil@redhat.com> - 1.4.4-1
|
|
|
093829 |
- Rebase to upstream 1.4.4.
|
|
|
093829 |
|
|
|
093829 |
* Wed Oct 14 2015 Jan Kratochvil <jan.kratochvil@redhat.com> - 1.4.3-1
|
|
|
093829 |
- Rebase to upstream 1.4.3.
|
|
|
093829 |
|
|
|
093829 |
* Mon Aug 31 2015 Jan Kratochvil <jan.kratochvil@redhat.com> - 1.4.2-1
|
|
|
093829 |
- Initial Fedora packaging.
|