Blame SPECS/libtraceevent.spec

00167c
# git tag
00167c
#%%global commit 5dd505f3aba255c5fbc2a6dbed57fcba51b400f6
00167c
#%%global commitdate 20201009
00167c
#%%global shortcommit %%(c=%%{commit}; echo ${c:0:7})
00167c
00167c
Name: libtraceevent
00167c
Version: 1.1.1
00167c
Release: 8%{?dist}
00167c
License: LGPLv2+ and GPLv2+
00167c
Summary: Library to parse raw trace event formats
00167c
00167c
URL: https://git.kernel.org/pub/scm/libs/libtrace/libtraceevent.git/
00167c
# If upstream does not provide tarballs, to generate:
00167c
# git clone git://git.kernel.org/pub/scm/libs/libtrace/libtraceevent.git
00167c
# cd libtraceevent
00167c
# git archive --prefix=libtraceevent-%%{version}/ -o libtraceevent-%%{version}.tar.gz %%{git_commit}
00167c
#Source0: libtraceevent-%%{version}.tar.gz
00167c
Source0: https://git.kernel.org/pub/scm/libs/libtrace/libtraceevent.git/snapshot/libtraceevent-%{version}.tar.gz
00167c
Patch0: libtraceevent-Handle-parsing-of-REC-case.patch
00167c
Patch1: libtraceevent-Move-plugin_dir-define-logic-to-top-le.patch
00167c
00167c
BuildRequires:  gcc
00167c
BuildRequires: xmlto
00167c
BuildRequires: asciidoc
00167c
00167c
%global __provides_exclude_from ^%{_libdir}/traceevent/plugins
00167c
00167c
00167c
%description
00167c
libtraceevent is a library to parse raw trace event formats.
00167c
00167c
%package devel
00167c
Summary: Development headers of %{name}
00167c
Requires: %{name}%{_isa} = %{version}-%{release}
00167c
00167c
%description devel
00167c
Development headers of %{name}-libs
00167c
00167c
%prep
00167c
%autosetup -p1
00167c
00167c
%build
00167c
MANPAGE_DOCBOOK_XSL=`rpm -ql docbook-style-xsl | grep manpages/docbook.xsl`
00167c
%set_build_flags
00167c
#looks like CFLAGS is ignored when compiling plugins, but not EXTRA_CFLAGS
00167c
export EXTRA_CFLAGS="%{optflags}"
00167c
export LDFLAGS="-Wl,-z,now"
00167c
%make_build prefix=%{_prefix} libdir=%{_libdir} MANPAGE_XSL=%{MANPAGE_DOCBOOK_XSL} all doc
00167c
00167c
%install
00167c
%set_build_flags
00167c
#looks like CFLAGS is ignored when compiling plugins, but not EXTRA_CFLAGS
00167c
export EXTRA_CFLAGS="%{optflags}"
00167c
export LDFLAGS="-Wl,-z,now"
00167c
%make_install prefix=%{_prefix} libdir=%{_libdir} install doc-install
00167c
rm -rf %{buildroot}/%{_libdir}/libtraceevent.a
00167c
00167c
%files
00167c
%license LICENSES/LGPL-2.1
00167c
%license LICENSES/GPL-2.0
00167c
%{_libdir}/traceevent/
00167c
%{_libdir}/libtraceevent.so.%{version}
00167c
%{_libdir}/libtraceevent.so.1
00167c
%{_mandir}/man3/tep_*.3.*
00167c
%{_mandir}/man3/libtraceevent.3.*
00167c
%{_mandir}/man3/trace_seq*.3.*
00167c
%{_docdir}/%{name}-doc
00167c
00167c
%files devel
00167c
%{_includedir}/traceevent/
00167c
%{_libdir}/libtraceevent.so
00167c
%{_libdir}/pkgconfig/libtraceevent.pc
00167c
00167c
%changelog
00167c
* Fri Jan 14 2022 Michael Petlan <mpetlan@redhat.com> - 1.1.1-8
00167c
- Harden linking to meet annocheck requirements
00167c
  Related: rhbz#2037125
00167c
00167c
* Fri Nov 19 2021 Jerome Marchand <jmarchan@redhat.com> - 1.1.1-7
00167c
- Fix rpminspect annocheck issue.
00167c
00167c
* Tue Oct 26 2021 Jerome Marchand <jmarchan@redhat.com> - 1.1.1-6
00167c
- Handle parsing of "(REC)->" case
00167c
00167c
* Mon Aug 09 2021 Mohan Boddu <mboddu@redhat.com> - 1.1.1-5
00167c
- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags
00167c
  Related: rhbz#1991688
00167c
00167c
* Thu May  6 2021 Michael Petlan <mpetlan@redhat.com> - 1.1.1-4
00167c
- Remove conflict to enable perf linking. Resolves: rhbz#1957733
00167c
00167c
* Wed Apr 21 2021 Jerome Marchand <jmarchan@redhat.com> - 1.1.1-3
00167c
- Multi-build with libtracefs, trace-cmd and kernelshark
00167c
00167c
* Fri Apr 16 2021 Mohan Boddu <mboddu@redhat.com> - 1.1.1-2
00167c
- Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937
00167c
00167c
* Mon Feb 08 2021 Zamir SUN <sztsian@gmail.com> - 1.1.1-1
00167c
- Update to 1.1.1
00167c
00167c
* Sat Oct 17 2020 Zamir SUN <sztsian@gmail.com> - 1.1.0-1
00167c
- Update to 1.1.0
00167c
00167c
* Fri Oct 09 2020 Zamir SUN <sztsian@gmail.com> - 0-0.1.20201009git5dd505f
00167c
- Initial libtraceevent
00167c