Blame SPECS/libtraceevent.spec

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