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 cd0d2c
Version: 1.6.4
Zamir SUN bb6a08
Release: 2%{?dist}
Zamir SUN bb6a08
License: LGPL-2.1-or-later AND GPL-2.0-or-later AND GPL-2.0-only
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 cd0d2c
BuildRequires:  pkgconfig(libtraceevent) >= 1.7.0
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
Jerome Marchand 39ab20
Conflicts: trace-cmd < 2.9.1-6
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
Ziqian SUN(Zamir) ddd951
# parallel compiling don't always work
Ziqian SUN(Zamir) ddd951
make -O -j1 V=1 VERBOSE=1 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 cd0d2c
%{_libdir}/%{name}.so.1.6.4
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 bb6a08
* Mon Jun 05 2023 Zamir SUN <sztsian@gmail.com> - 1.6.4-2
Zamir SUN bb6a08
- SPDX migration
Zamir SUN bb6a08
Zamir SUN cd0d2c
* Wed Apr 05 2023 Zamir SUN <sztsian@gmail.com> - 1.6.4-1
Zamir SUN cd0d2c
- Update to 1.6.4
Zamir SUN cd0d2c
Fedora Release Engineering 879c4e
* Thu Jan 19 2023 Fedora Release Engineering <releng@fedoraproject.org> - 1.5.0-2
Fedora Release Engineering 879c4e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
Fedora Release Engineering 879c4e
Zamir SUN 2a0fb8
* Tue Oct 11 2022 Zamir SUN <sztsian@gmail.com> - 1.5.0-1
Zamir SUN 2a0fb8
- Update to 1.5.0
Zamir SUN 2a0fb8
Fedora Release Engineering a5daef
* Thu Jul 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1.3.1-3
Fedora Release Engineering a5daef
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
Fedora Release Engineering a5daef
Ziqian SUN(Zamir) ddd951
* Fri Apr 15 2022 Zamir SUN <sztsian@gmail.com> - 1.3.1-2
Ziqian SUN(Zamir) ddd951
- Update with newer libtracefs
Ziqian SUN(Zamir) ddd951
Ziqian SUN(Zamir) 3fe2b8
* Wed Apr 13 2022 Zamir SUN <sztsian@gmail.com> - 1.3.1-1
Ziqian SUN(Zamir) 3fe2b8
- Update to 1.3.1
Ziqian SUN(Zamir) 3fe2b8
Zamir SUN b2f1bf
* Tue Feb 15 2022 Zamir SUN <sztsian@gmail.com> - 1.2.5-1
Zamir SUN b2f1bf
- Update to 1.2.5
Zamir SUN b2f1bf
Fedora Release Engineering a85cf0
* Thu Jan 20 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.1-3
Fedora Release Engineering a85cf0
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
Fedora Release Engineering a85cf0
Fedora Release Engineering 896de5
* Thu Jul 22 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.1-2
Fedora Release Engineering 896de5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
Fedora Release Engineering 896de5
Zamir SUN b2f1bf
Zamir SUN 931fc7
* Mon Apr 19 2021 Zamir SUN <sztsian@gmail.com> - 1.1.1-1
Zamir SUN 931fc7
- Update to 1.1.1
Zamir SUN 931fc7
Jerome Marchand 39ab20
* Wed Mar 24 2021 Jerome Marchand <jmarchan@redhat.com> - 1.0.2-2
Jerome Marchand 39ab20
- Remove conflict for latest trace-cmd
Jerome Marchand 39ab20
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