897c917424
Rebasing to the latest version fixes most SAST issue, but doesn't includes the latest 8 fixes which have to be bacported on top of it. Resolves: RHEL-40112
140 lines
5.1 KiB
RPMSpec
140 lines
5.1 KiB
RPMSpec
Name: libtracecmd
|
|
Version: 1.5.2
|
|
Release: 1%{?dist}
|
|
License: LGPL-2.1-only AND LGPL-2.1-or-later AND GPL-2.0-only AND GPL-2.0-or-later
|
|
Summary: A library for reading tracing instances stored in a trace file
|
|
|
|
URL: https://git.kernel.org/pub/scm/utils/trace-cmd/trace-cmd.git/
|
|
Source0: https://git.kernel.org/pub/scm/utils/trace-cmd/trace-cmd.git/snapshot/trace-cmd-libtracecmd-%{version}.tar.gz
|
|
Patch0: trace-cmd-lib-Prevent-a-memory-leak-in-handle_option.patch
|
|
Patch1: trace-cmd-record-Prevent-a-memory-leak-in-show_error.patch
|
|
Patch2: trace-cmd-lib-Check-the-return-value-of-do_lseek-in-.patch
|
|
Patch3: trace-cmd-dump-Prevent-buffer-overrun-in-dump_clock.patch
|
|
Patch4: trace-cmd-record-Prevent-memory-leak-in-setup_networ.patch
|
|
Patch5: trace-cmd-lib-Prevent-memory-leak-in-tracecmd_create.patch
|
|
Patch6: trace-cmd-mem-Prevent-a-memory-leak-in-trace_mem.patch
|
|
Patch7: trace-cmd-record-Check-the-length-of-the-protocol-ve.patch
|
|
|
|
ExcludeArch: %{ix86} %{arm}
|
|
|
|
BuildRequires: make
|
|
BuildRequires: gcc
|
|
BuildRequires: xmlto
|
|
BuildRequires: asciidoc
|
|
BuildRequires: graphviz doxygen
|
|
BuildRequires: libxml2-devel
|
|
BuildRequires: gcc-c++
|
|
BuildRequires: freeglut-devel
|
|
BuildRequires: json-c-devel
|
|
BuildRequires: libtraceevent-devel >= 1.8.0
|
|
BuildRequires: libtracefs-devel >= 1.8.0
|
|
BuildRequires: chrpath
|
|
BuildRequires: libzstd-devel
|
|
|
|
%description
|
|
A library containing functions for getting information and reading
|
|
tracing instances stored in a trace file that can be used without the
|
|
trace-cmd application.
|
|
|
|
%package -n libtracecmd-devel
|
|
Summary: Development files for libtracecmd
|
|
Requires: libtracecmd%{_isa} = %{version}-%{release}
|
|
|
|
%description -n libtracecmd-devel
|
|
Development files of the libtracecmd library
|
|
|
|
%prep
|
|
%autosetup -p1 -n trace-cmd-libtracecmd-%{version}
|
|
|
|
%build
|
|
# MANPAGE_DOCBOOK_XSL define is hack to avoid using locate
|
|
MANPAGE_DOCBOOK_XSL=`rpm -ql docbook-style-xsl | grep manpages/docbook.xsl`
|
|
CFLAGS="%{optflags} -D_GNU_SOURCE" LDFLAGS="%{build_ldflags}" BUILD_TYPE=Release \
|
|
make V=9999999999 MANPAGE_DOCBOOK_XSL=$MANPAGE_DOCBOOK_XSL \
|
|
prefix=%{_prefix} libdir=%{_libdir} %{?_smp_mflags}\
|
|
PYTHON_VERS=python3 libs doc
|
|
|
|
%install
|
|
make libdir=%{_libdir} prefix=%{_prefix} V=1 DESTDIR=%{buildroot}/ CFLAGS="%{optflags} -D_GNU_SOURCE" LDFLAGS="%{build_ldflags} -z muldefs " BUILD_TYPE=Release install_libs install_doc
|
|
# Remove trace-cmd man pages and docs, leaving only the libtracecmd ones, as there are no separate makefile target for libtracecmd documents
|
|
find %{buildroot}%{_mandir} -iname trace-cmd\* -exec rm -rf {} \;
|
|
rm -rf %{buildroot}/%{_docdir}/trace-cmd
|
|
chrpath --delete %{buildroot}/%{_libdir}/libtracecmd.so*
|
|
|
|
%files
|
|
%license COPYING COPYING.LIB
|
|
%doc README
|
|
%{_libdir}/libtracecmd.so.1
|
|
%{_libdir}/libtracecmd.so.%{version}
|
|
%{_docdir}/libtracecmd-doc
|
|
%{_mandir}/man3/libtracecmd*
|
|
%{_mandir}/man3/tracecmd*
|
|
|
|
%files -n libtracecmd-devel
|
|
%{_libdir}/pkgconfig/libtracecmd.pc
|
|
%{_libdir}/libtracecmd.so
|
|
%{_includedir}/trace-cmd
|
|
|
|
%changelog
|
|
* Thu Nov 28 2024 Jerome Marchand <jmarchan@redhat.com> - 1.5.2-1
|
|
- Rebase to 1.5.2 and backport further SAST patches (RHEL-40112)
|
|
|
|
* Tue Oct 29 2024 Troy Dawson <tdawson@redhat.com> - 1.5.1-5
|
|
- Bump release for October 2024 mass rebuild:
|
|
Resolves: RHEL-64018
|
|
|
|
* Mon Jun 24 2024 Troy Dawson <tdawson@redhat.com> - 1.5.1-4
|
|
- Bump release for June 2024 mass rebuild
|
|
|
|
* Mon Jun 03 2024 Jerome Marchand <jmarchan@redhat.com> - 1.5.1-3
|
|
- Drop useless mlocate dependency (RHEL-39378)
|
|
|
|
* Thu Jan 25 2024 Fedora Release Engineering <releng@fedoraproject.org> - 1.5.1-2
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
|
|
|
|
* Tue Jan 23 2024 Zamir SUN <sztsian@gmail.com> - 1.5.1-1
|
|
- Update to 1.5.1
|
|
|
|
* Sun Jan 21 2024 Fedora Release Engineering <releng@fedoraproject.org> - 1.3.1-4
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
|
|
|
|
* Thu Jul 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 1.3.1-3
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
|
|
|
|
* Mon Jun 05 2023 Zamir SUN <sztsian@gmail.com> - 1.3.1-2
|
|
- SPDX migration
|
|
|
|
* Tue Apr 18 2023 Zamir SUN <sztsian@gmail.com> - 1.3.1-1
|
|
- Update to 1.3.1
|
|
|
|
* Fri Mar 31 2023 Jerome Marchand <jmarchan@redhat.com> - 1.2.0-3
|
|
- Fix build: RHBZ#2171769
|
|
|
|
* Thu Jan 19 2023 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.0-2
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
|
|
|
|
* Tue Oct 11 2022 Zamir SUN <sztsian@gmail.com> - 1.2.0-1
|
|
- Update to 1.2.0
|
|
|
|
* Thu Sep 8 2022 Zamir SUN <sztsian@gmail.com> - 1.1.3-4
|
|
- Add zstd support
|
|
- Fixes: RHBZ#2121037
|
|
|
|
* Thu Jul 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.3-3
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
|
|
|
|
* Fri Apr 15 2022 Zamir SUN <sztsian@gmail.com> - 1.1.3-2
|
|
- Rebuild with newer libtraceevent
|
|
|
|
* Wed Apr 13 2022 Zamir SUN <sztsian@gmail.com> - 1.1.3-1
|
|
- Update to 1.1.3
|
|
|
|
* Thu Jan 20 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.0-3
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
|
|
|
|
* Thu Jul 22 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.0-2
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
|
|
|
|
* Mon Apr 19 2021 Zamir SUN <sztsian@gmail.com> - 1.1.0-1
|
|
- Initial libtracecmd 1.1.0
|