Blame SPECS/libtraceevent.spec

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