Blame SPECS/libtraceevent.spec

f8be3e
# git tag
f8be3e
#%%global commit 5dd505f3aba255c5fbc2a6dbed57fcba51b400f6
f8be3e
#%%global commitdate 20201009
f8be3e
#%%global shortcommit %%(c=%%{commit}; echo ${c:0:7})
f8be3e
f8be3e
Name: libtraceevent
f8be3e
Version: 1.5.3
f8be3e
Release: 1%{?dist}
f8be3e
License: LGPLv2+ and GPLv2+
f8be3e
Summary: Library to parse raw trace event formats
f8be3e
f8be3e
URL: https://git.kernel.org/pub/scm/libs/libtrace/libtraceevent.git/
f8be3e
# If upstream does not provide tarballs, to generate:
f8be3e
# git clone git://git.kernel.org/pub/scm/libs/libtrace/libtraceevent.git
f8be3e
# cd libtraceevent
f8be3e
# git archive --prefix=libtraceevent-%%{version}/ -o libtraceevent-%%{version}.tar.gz %%{git_commit}
f8be3e
#Source0: libtraceevent-%%{version}.tar.gz
f8be3e
Source0: https://git.kernel.org/pub/scm/libs/libtrace/libtraceevent.git/snapshot/libtraceevent-%{version}.tar.gz
f8be3e
f8be3e
BuildRequires:  gcc
f8be3e
BuildRequires: xmlto
f8be3e
BuildRequires: asciidoc
f8be3e
f8be3e
%global __provides_exclude_from ^%{_libdir}/traceevent/plugins
f8be3e
f8be3e
f8be3e
%description
f8be3e
libtraceevent is a library to parse raw trace event formats.
f8be3e
f8be3e
%package devel
f8be3e
Summary: Development headers of %{name}
f8be3e
Requires: %{name}%{_isa} = %{version}-%{release}
f8be3e
f8be3e
%description devel
f8be3e
Development headers of %{name}-libs
f8be3e
f8be3e
%prep
f8be3e
%autosetup -p1
f8be3e
f8be3e
%build
f8be3e
MANPAGE_DOCBOOK_XSL=`rpm -ql docbook-style-xsl | grep manpages/docbook.xsl`
f8be3e
%set_build_flags
f8be3e
#looks like CFLAGS is ignored when compiling plugins, but not EXTRA_CFLAGS
f8be3e
export EXTRA_CFLAGS="%{optflags}"
f8be3e
export LDFLAGS="-Wl,-z,now"
f8be3e
make -O -j1 V=1 VERBOSE=1 prefix=%{_prefix} libdir=%{_libdir} MANPAGE_XSL=%{MANPAGE_DOCBOOK_XSL} all doc
f8be3e
f8be3e
%install
f8be3e
%set_build_flags
f8be3e
#looks like CFLAGS is ignored when compiling plugins, but not EXTRA_CFLAGS
f8be3e
export EXTRA_CFLAGS="%{optflags}"
f8be3e
export LDFLAGS="-Wl,-z,now"
f8be3e
%make_install prefix=%{_prefix} libdir=%{_libdir} install doc-install
f8be3e
rm -rf %{buildroot}/%{_libdir}/libtraceevent.a
f8be3e
f8be3e
%files
f8be3e
%license LICENSES/LGPL-2.1
f8be3e
%license LICENSES/GPL-2.0
f8be3e
%{_libdir}/traceevent/
f8be3e
%{_libdir}/libtraceevent.so.%{version}
f8be3e
%{_libdir}/libtraceevent.so.1
f8be3e
%{_mandir}/man3/tep_*.3.*
f8be3e
%{_mandir}/man3/libtraceevent.3.*
f8be3e
%{_mandir}/man3/trace_seq*.3.*
f8be3e
%{_docdir}/%{name}-doc
f8be3e
f8be3e
%files devel
f8be3e
%{_includedir}/traceevent/
f8be3e
%{_libdir}/libtraceevent.so
f8be3e
%{_libdir}/pkgconfig/libtraceevent.pc
f8be3e
f8be3e
%changelog
f8be3e
* Mon Oct 24 2022 Michael Petlan <mpetlan@redhat.com> - 1.5.3-1
f8be3e
- Initial libtraceevent
f8be3e
  Related: rhbz#2075197
f8be3e