Blame SPECS/libtracefs.spec

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