Blame SPECS/libtraceevent.spec

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