|
|
95d88a |
# git tag
|
|
|
95d88a |
#%%global commit 4f24f98960c223e56329519bb90a90f0b2ad813f
|
|
|
95d88a |
#%%global commitdate 20201120
|
|
|
95d88a |
#%%global shortcommit %%(c=%%{commit}; echo ${c:0:7})
|
|
|
95d88a |
|
|
|
95d88a |
# LTO causes linking issues randomly like
|
|
|
95d88a |
# lto1: internal compiler error: resolution sub id 0x7136344381f3059f not in object file
|
|
|
95d88a |
# So disabling LTO at this moment.
|
|
|
95d88a |
|
|
|
95d88a |
%global _lto_cflags %nil
|
|
|
95d88a |
|
|
|
95d88a |
Name: libtracefs
|
|
|
cfd401 |
Version: 1.3.1
|
|
|
cfd401 |
Release: 1%{?dist}
|
|
|
95d88a |
License: LGPLv2+ and GPLv2+
|
|
|
95d88a |
Summary: Library for access kernel tracefs
|
|
|
95d88a |
|
|
|
95d88a |
URL: https://git.kernel.org/pub/scm/libs/libtrace/libtracefs.git/
|
|
|
95d88a |
# If upstream does not provide tarballs, to generate:
|
|
|
95d88a |
# git clone git://git.kernel.org/pub/scm/libs/libtrace/libtracefs.git
|
|
|
95d88a |
# cd libtracefs
|
|
|
95d88a |
# git archive --prefix=libtracefs-%%{version}/ -o libtracefs-%%{version}.tar.gz %%{git_commit}
|
|
|
95d88a |
#Source0: libtracefs-%%{version}.tar.gz
|
|
|
95d88a |
#Source0: https://git.kernel.org/pub/scm/libs/libtrace/libtracefs.git/snapshot/libtracefs-%%{commit}.tar.gz
|
|
|
95d88a |
Source0: https://git.kernel.org/pub/scm/libs/libtrace/libtracefs.git/snapshot/libtracefs-%{version}.tar.gz
|
|
|
95d88a |
Patch0: libtracefs-1.0.2-harden-linking.patch
|
|
|
95d88a |
BuildRequires: gcc
|
|
|
95d88a |
BuildRequires: make
|
|
|
95d88a |
BuildRequires: pkgconfig(libtraceevent)
|
|
|
95d88a |
# The libtracefs is meant to be used by perf, trace-cmd etc. in the future, before it's ready in perf, let's add a conflict
|
|
|
95d88a |
Conflicts: trace-cmd < 2.9.1-6
|
|
|
95d88a |
|
|
|
95d88a |
%description
|
|
|
95d88a |
libtracefs is a library for accessing kernel tracefs
|
|
|
95d88a |
|
|
|
95d88a |
%package devel
|
|
|
95d88a |
Summary: Development headers of %{name}
|
|
|
95d88a |
Requires: %{name}%{_isa} = %{version}-%{release}
|
|
|
95d88a |
|
|
|
95d88a |
%description devel
|
|
|
95d88a |
Development headers of %{name}
|
|
|
95d88a |
|
|
|
95d88a |
%prep
|
|
|
95d88a |
%setup -q
|
|
|
95d88a |
%patch0 -p1
|
|
|
95d88a |
|
|
|
95d88a |
%build
|
|
|
95d88a |
%set_build_flags
|
|
|
95d88a |
export GCCLDFLAGS="-Wl,-z,now"
|
|
|
95d88a |
%make_build prefix=%{_prefix} libdir=%{_libdir} all
|
|
|
95d88a |
|
|
|
95d88a |
%install
|
|
|
95d88a |
%set_build_flags
|
|
|
95d88a |
export GCCLDFLAGS="-Wl,-z,now"
|
|
|
95d88a |
%make_install prefix=%{_prefix} libdir=%{_libdir}
|
|
|
95d88a |
rm -rf %{buildroot}/%{_libdir}/libtracefs.a
|
|
|
95d88a |
|
|
|
95d88a |
%files
|
|
|
95d88a |
%license LICENSES/LGPL-2.1
|
|
|
95d88a |
%license LICENSES/GPL-2.0
|
|
|
95d88a |
%{_libdir}/%{name}.so.1
|
|
|
cfd401 |
%{_libdir}/%{name}.so.1.3.1
|
|
|
95d88a |
|
|
|
95d88a |
%files devel
|
|
|
95d88a |
%{_includedir}/tracefs/tracefs.h
|
|
|
95d88a |
%{_libdir}/pkgconfig/%{name}.pc
|
|
|
95d88a |
%{_libdir}/%{name}.so
|
|
|
95d88a |
|
|
|
95d88a |
%changelog
|
|
|
cfd401 |
* Tue Aug 30 2022 Michael Petlan <mpetlan@redhat.com> - 1.3.1-1
|
|
|
cfd401 |
- Rebase to 1.3.1
|
|
|
cfd401 |
Related: rhbz#2075215
|
|
|
cfd401 |
|
|
|
95d88a |
* Fri Jan 14 2022 Michael Petlan <mpetlan@redhat.com> - 1.0.2-7
|
|
|
95d88a |
- Harden library linking; add the flags to install section too
|
|
|
95d88a |
Related: rhbz#2038853
|
|
|
95d88a |
|
|
|
95d88a |
* Wed Jan 12 2022 Michael Petlan <mpetlan@redhat.com> - 1.0.2-6
|
|
|
95d88a |
- Harden library linking
|
|
|
95d88a |
Related: rhbz#2038853
|
|
|
95d88a |
|
|
|
95d88a |
* Mon Aug 09 2021 Mohan Boddu <mboddu@redhat.com> - 1.0.2-5
|
|
|
95d88a |
- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags
|
|
|
95d88a |
Related: rhbz#1991688
|
|
|
95d88a |
|
|
|
95d88a |
* Thu Apr 22 2021 Jerome Marchand <jmarchan@redhat.com> - 1.0.2-4
|
|
|
95d88a |
- Kernelshark rebuild
|
|
|
95d88a |
|
|
|
95d88a |
* Fri Apr 16 2021 Mohan Boddu <mboddu@redhat.com> - 1.0.2-3
|
|
|
95d88a |
- Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937
|
|
|
95d88a |
|
|
|
95d88a |
* Wed Mar 24 2021 Jerome Marchand <jmarchan@redhat.com> - 1.0.2-2
|
|
|
95d88a |
- Remove conflict for latest trace-cmd
|
|
|
95d88a |
|
|
|
95d88a |
* Mon Feb 08 2021 Zamir SUN <sztsian@gmail.com> - 1.0.2-1
|
|
|
95d88a |
- Update to 1.0.2
|
|
|
95d88a |
|
|
|
95d88a |
* Mon Nov 23 2020 Zamir SUN <sztsian@gmail.com> - 0-0.1.20201120git4f24f98
|
|
|
95d88a |
- Initial libtracefs
|
|
|
95d88a |
|