Blame SPECS/libtracefs.spec

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