|
|
a605be |
# git tag
|
|
|
a605be |
#%%global commit 4f24f98960c223e56329519bb90a90f0b2ad813f
|
|
|
a605be |
#%%global commitdate 20201120
|
|
|
a605be |
#%%global shortcommit %%(c=%%{commit}; echo ${c:0:7})
|
|
|
a605be |
|
|
|
a605be |
# LTO causes linking issues randomly like
|
|
|
a605be |
# lto1: internal compiler error: resolution sub id 0x7136344381f3059f not in object file
|
|
|
a605be |
# So disabling LTO at this moment.
|
|
|
a605be |
|
|
|
a605be |
%global _lto_cflags %nil
|
|
|
a605be |
|
|
|
a605be |
Name: libtracefs
|
|
|
a605be |
Version: 1.3.1
|
|
|
a605be |
Release: 2%{?dist}
|
|
|
a605be |
License: LGPLv2+ and GPLv2+
|
|
|
a605be |
Summary: Library for access kernel tracefs
|
|
|
a605be |
|
|
|
a605be |
URL: https://git.kernel.org/pub/scm/libs/libtrace/libtracefs.git/
|
|
|
a605be |
# If upstream does not provide tarballs, to generate:
|
|
|
a605be |
# git clone git://git.kernel.org/pub/scm/libs/libtrace/libtracefs.git
|
|
|
a605be |
# cd libtracefs
|
|
|
a605be |
# git archive --prefix=libtracefs-%%{version}/ -o libtracefs-%%{version}.tar.gz %%{git_commit}
|
|
|
a605be |
#Source0: libtracefs-%%{version}.tar.gz
|
|
|
a605be |
#Source0: https://git.kernel.org/pub/scm/libs/libtrace/libtracefs.git/snapshot/libtracefs-%%{commit}.tar.gz
|
|
|
a605be |
Source0: https://git.kernel.org/pub/scm/libs/libtrace/libtracefs.git/snapshot/libtracefs-%{version}.tar.gz
|
|
|
a605be |
Patch0: libtracefs-1.0.2-harden-linking.patch
|
|
|
a605be |
BuildRequires: gcc
|
|
|
a605be |
BuildRequires: make
|
|
|
a605be |
BuildRequires: pkgconfig(libtraceevent)
|
|
|
a605be |
|
|
|
a605be |
%description
|
|
|
a605be |
libtracefs is a library for accessing kernel tracefs
|
|
|
a605be |
|
|
|
a605be |
%package devel
|
|
|
a605be |
Summary: Development headers of %{name}
|
|
|
a605be |
Requires: %{name}%{_isa} = %{version}-%{release}
|
|
|
a605be |
|
|
|
a605be |
%description devel
|
|
|
a605be |
Development headers of %{name}
|
|
|
a605be |
|
|
|
a605be |
%prep
|
|
|
a605be |
%setup -q
|
|
|
a605be |
%patch0 -p1
|
|
|
a605be |
|
|
|
a605be |
%build
|
|
|
a605be |
%set_build_flags
|
|
|
a605be |
export GCCLDFLAGS="-Wl,-z,now"
|
|
|
a605be |
%make_build prefix=%{_prefix} libdir=%{_libdir} all
|
|
|
a605be |
|
|
|
a605be |
%install
|
|
|
a605be |
%set_build_flags
|
|
|
a605be |
export GCCLDFLAGS="-Wl,-z,now"
|
|
|
a605be |
%make_install prefix=%{_prefix} libdir=%{_libdir}
|
|
|
a605be |
rm -rf %{buildroot}/%{_libdir}/libtracefs.a
|
|
|
a605be |
|
|
|
a605be |
%files
|
|
|
a605be |
%license LICENSES/LGPL-2.1
|
|
|
a605be |
%license LICENSES/GPL-2.0
|
|
|
a605be |
%{_libdir}/%{name}.so.1
|
|
|
a605be |
%{_libdir}/%{name}.so.1.3.1
|
|
|
a605be |
|
|
|
a605be |
%files devel
|
|
|
a605be |
%{_includedir}/tracefs/tracefs.h
|
|
|
a605be |
%{_libdir}/pkgconfig/%{name}.pc
|
|
|
a605be |
%{_libdir}/%{name}.so
|
|
|
a605be |
|
|
|
a605be |
%changelog
|
|
|
a605be |
* Thu Feb 2 2023 Michael Petlan <mpetlan@redhat.com> - 1.3.1-2
|
|
|
a605be |
- Remove conflict with trace-cmd
|
|
|
a605be |
Related: rhbz#2159965
|
|
|
a605be |
|
|
|
a605be |
* Mon Nov 23 2020 Zamir SUN <sztsian@gmail.com> - 1.3.1-1
|
|
|
a605be |
- Initial libtracefs
|
|
|
a605be |
Related: rhbz#2075198
|