2021-03-20 07:55:39 +00:00
|
|
|
# git tag
|
|
|
|
#%%global commit 4f24f98960c223e56329519bb90a90f0b2ad813f
|
|
|
|
#%%global commitdate 20201120
|
|
|
|
#%%global shortcommit %%(c=%%{commit}; echo ${c:0:7})
|
|
|
|
|
|
|
|
# LTO causes linking issues randomly like
|
|
|
|
# lto1: internal compiler error: resolution sub id 0x7136344381f3059f not in object file
|
|
|
|
# So disabling LTO at this moment.
|
|
|
|
|
|
|
|
%global _lto_cflags %nil
|
|
|
|
|
|
|
|
Name: libtracefs
|
2023-04-05 09:41:44 +00:00
|
|
|
Version: 1.6.4
|
2024-01-21 05:33:12 +00:00
|
|
|
Release: 4%{?dist}
|
2023-06-05 13:43:03 +00:00
|
|
|
License: LGPL-2.1-or-later AND GPL-2.0-or-later AND GPL-2.0-only
|
2021-03-20 07:55:39 +00:00
|
|
|
Summary: Library for access kernel tracefs
|
|
|
|
|
|
|
|
URL: https://git.kernel.org/pub/scm/libs/libtrace/libtracefs.git/
|
|
|
|
# If upstream does not provide tarballs, to generate:
|
|
|
|
# git clone git://git.kernel.org/pub/scm/libs/libtrace/libtracefs.git
|
|
|
|
# cd libtracefs
|
|
|
|
# git archive --prefix=libtracefs-%%{version}/ -o libtracefs-%%{version}.tar.gz %%{git_commit}
|
|
|
|
#Source0: libtracefs-%%{version}.tar.gz
|
|
|
|
#Source0: https://git.kernel.org/pub/scm/libs/libtrace/libtracefs.git/snapshot/libtracefs-%%{commit}.tar.gz
|
|
|
|
Source0: https://git.kernel.org/pub/scm/libs/libtrace/libtracefs.git/snapshot/libtracefs-%{version}.tar.gz
|
|
|
|
BuildRequires: gcc
|
|
|
|
BuildRequires: make
|
2023-04-05 09:41:44 +00:00
|
|
|
BuildRequires: pkgconfig(libtraceevent) >= 1.7.0
|
2021-03-20 07:55:39 +00:00
|
|
|
# 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
|
2021-03-24 17:45:10 +00:00
|
|
|
Conflicts: trace-cmd < 2.9.1-6
|
2021-03-20 07:55:39 +00:00
|
|
|
|
|
|
|
%description
|
|
|
|
libtracefs is a library for accessing kernel tracefs
|
|
|
|
|
|
|
|
%package devel
|
|
|
|
Summary: Development headers of %{name}
|
|
|
|
Requires: %{name}%{_isa} = %{version}-%{release}
|
|
|
|
|
|
|
|
%description devel
|
|
|
|
Development headers of %{name}
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q
|
|
|
|
|
|
|
|
%build
|
|
|
|
%set_build_flags
|
2022-04-15 08:51:41 +00:00
|
|
|
# parallel compiling don't always work
|
|
|
|
make -O -j1 V=1 VERBOSE=1 prefix=%{_prefix} libdir=%{_libdir} all
|
2021-03-20 07:55:39 +00:00
|
|
|
|
|
|
|
%install
|
|
|
|
%make_install prefix=%{_prefix} libdir=%{_libdir}
|
|
|
|
rm -rf %{buildroot}/%{_libdir}/libtracefs.a
|
|
|
|
|
|
|
|
%files
|
|
|
|
%license LICENSES/LGPL-2.1
|
|
|
|
%license LICENSES/GPL-2.0
|
|
|
|
%{_libdir}/%{name}.so.1
|
2023-04-05 09:41:44 +00:00
|
|
|
%{_libdir}/%{name}.so.1.6.4
|
2021-03-20 07:55:39 +00:00
|
|
|
|
|
|
|
%files devel
|
|
|
|
%{_includedir}/tracefs/tracefs.h
|
|
|
|
%{_libdir}/pkgconfig/%{name}.pc
|
|
|
|
%{_libdir}/%{name}.so
|
|
|
|
|
|
|
|
%changelog
|
2024-01-21 05:33:12 +00:00
|
|
|
* Sun Jan 21 2024 Fedora Release Engineering <releng@fedoraproject.org> - 1.6.4-4
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
|
|
|
|
|
2023-07-20 12:20:13 +00:00
|
|
|
* Thu Jul 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 1.6.4-3
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
|
|
|
|
|
2023-06-05 13:43:03 +00:00
|
|
|
* Mon Jun 05 2023 Zamir SUN <sztsian@gmail.com> - 1.6.4-2
|
|
|
|
- SPDX migration
|
|
|
|
|
2023-04-05 09:41:44 +00:00
|
|
|
* Wed Apr 05 2023 Zamir SUN <sztsian@gmail.com> - 1.6.4-1
|
|
|
|
- Update to 1.6.4
|
|
|
|
|
2023-01-19 17:38:54 +00:00
|
|
|
* Thu Jan 19 2023 Fedora Release Engineering <releng@fedoraproject.org> - 1.5.0-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
|
|
|
|
|
2022-10-11 12:02:02 +00:00
|
|
|
* Tue Oct 11 2022 Zamir SUN <sztsian@gmail.com> - 1.5.0-1
|
|
|
|
- Update to 1.5.0
|
|
|
|
|
2022-07-21 19:13:28 +00:00
|
|
|
* Thu Jul 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1.3.1-3
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
|
|
|
|
|
2022-04-15 08:51:41 +00:00
|
|
|
* Fri Apr 15 2022 Zamir SUN <sztsian@gmail.com> - 1.3.1-2
|
|
|
|
- Update with newer libtracefs
|
|
|
|
|
2022-04-15 06:20:21 +00:00
|
|
|
* Wed Apr 13 2022 Zamir SUN <sztsian@gmail.com> - 1.3.1-1
|
|
|
|
- Update to 1.3.1
|
|
|
|
|
2022-02-16 12:37:05 +00:00
|
|
|
* Tue Feb 15 2022 Zamir SUN <sztsian@gmail.com> - 1.2.5-1
|
|
|
|
- Update to 1.2.5
|
|
|
|
|
2022-01-20 17:26:54 +00:00
|
|
|
* Thu Jan 20 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.1-3
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
|
|
|
|
|
2021-07-22 12:34:39 +00:00
|
|
|
* Thu Jul 22 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.1-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
|
|
|
|
|
2022-02-16 12:37:05 +00:00
|
|
|
|
2021-04-19 13:32:52 +00:00
|
|
|
* Mon Apr 19 2021 Zamir SUN <sztsian@gmail.com> - 1.1.1-1
|
|
|
|
- Update to 1.1.1
|
|
|
|
|
2021-03-24 17:45:10 +00:00
|
|
|
* Wed Mar 24 2021 Jerome Marchand <jmarchan@redhat.com> - 1.0.2-2
|
|
|
|
- Remove conflict for latest trace-cmd
|
|
|
|
|
2021-03-20 07:55:39 +00:00
|
|
|
* Mon Feb 08 2021 Zamir SUN <sztsian@gmail.com> - 1.0.2-1
|
|
|
|
- Update to 1.0.2
|
|
|
|
|
|
|
|
* Mon Nov 23 2020 Zamir SUN <sztsian@gmail.com> - 0-0.1.20201120git4f24f98
|
|
|
|
- Initial libtracefs
|
|
|
|
|