Blame libtracefs.spec

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