Blame libtraceevent.spec

Zamir SUN 59ca74
# git tag
Zamir SUN 59ca74
#%%global commit 5dd505f3aba255c5fbc2a6dbed57fcba51b400f6
Zamir SUN 59ca74
#%%global commitdate 20201009
Zamir SUN 59ca74
#%%global shortcommit %%(c=%%{commit}; echo ${c:0:7})
Zamir SUN 59ca74
Zamir SUN 59ca74
Name: libtraceevent
Zamir SUN 59ca74
Version: 1.1.1
Zamir SUN 59ca74
Release: 1%{?dist}
Zamir SUN 59ca74
License: LGPLv2+ and GPLv2+
Zamir SUN 59ca74
Summary: Library to parse raw trace event formats
Zamir SUN 59ca74
Zamir SUN 59ca74
URL: https://git.kernel.org/pub/scm/libs/libtrace/libtraceevent.git/
Zamir SUN 59ca74
# If upstream does not provide tarballs, to generate:
Zamir SUN 59ca74
# git clone git://git.kernel.org/pub/scm/libs/libtrace/libtraceevent.git
Zamir SUN 59ca74
# cd libtraceevent
Zamir SUN 59ca74
# git archive --prefix=libtraceevent-%%{version}/ -o libtraceevent-%%{version}.tar.gz %%{git_commit}
Zamir SUN 59ca74
#Source0: libtraceevent-%%{version}.tar.gz
Zamir SUN 59ca74
Source0: https://git.kernel.org/pub/scm/libs/libtrace/libtraceevent.git/snapshot/libtraceevent-%{version}.tar.gz
Zamir SUN 59ca74
BuildRequires:  gcc
Zamir SUN 59ca74
BuildRequires: xmlto
Zamir SUN 59ca74
BuildRequires: asciidoc
Zamir SUN 59ca74
# The libtraceevent is meant to be used by perf, trace-cmd etc. in the future, before it's ready in perf, let's add a conflict
Zamir SUN 59ca74
Conflicts: perf
Zamir SUN 59ca74
Zamir SUN 59ca74
%global __provides_exclude_from ^%{_libdir}/traceevent/plugins
Zamir SUN 59ca74
Zamir SUN 59ca74
Zamir SUN 59ca74
%description
Zamir SUN 59ca74
libtraceevent is a library to parse raw trace event formats.
Zamir SUN 59ca74
Zamir SUN 59ca74
%package devel
Zamir SUN 59ca74
Summary: Development headers of %{name}
Zamir SUN 59ca74
Requires: %{name}%{_isa} = %{version}-%{release}
Zamir SUN 59ca74
Zamir SUN 59ca74
%description devel
Zamir SUN 59ca74
Development headers of %{name}-libs
Zamir SUN 59ca74
Zamir SUN 59ca74
%prep
Zamir SUN 59ca74
%setup -q
Zamir SUN 59ca74
Zamir SUN 59ca74
%build
Zamir SUN 59ca74
MANPAGE_DOCBOOK_XSL=`rpm -ql docbook-style-xsl | grep manpages/docbook.xsl`
Zamir SUN 59ca74
%set_build_flags
Zamir SUN 59ca74
%make_build prefix=%{_prefix} libdir=%{_libdir} MANPAGE_XSL=%{MANPAGE_DOCBOOK_XSL} all doc
Zamir SUN 59ca74
Zamir SUN 59ca74
%install
Zamir SUN 59ca74
%make_install prefix=%{_prefix} libdir=%{_libdir} install doc-install
Zamir SUN 59ca74
rm -rf %{buildroot}/%{_libdir}/libtraceevent.a
Zamir SUN 59ca74
Zamir SUN 59ca74
%files
Zamir SUN 59ca74
%license LICENSES/LGPL-2.1
Zamir SUN 59ca74
%license LICENSES/GPL-2.0
Zamir SUN 59ca74
%{_libdir}/traceevent/
Zamir SUN 59ca74
%{_libdir}/libtraceevent.so.%{version}
Zamir SUN 59ca74
%{_libdir}/libtraceevent.so.1
Zamir SUN 59ca74
%{_mandir}/man3/tep_*.3.*
Zamir SUN 59ca74
%{_mandir}/man3/libtraceevent.3.*
Zamir SUN 59ca74
%{_mandir}/man3/trace_seq*.3.*
Zamir SUN 59ca74
%{_docdir}/%{name}-doc
Zamir SUN 59ca74
Zamir SUN 59ca74
%files devel
Zamir SUN 59ca74
%{_includedir}/traceevent/
Zamir SUN 59ca74
%{_libdir}/libtraceevent.so
Zamir SUN 59ca74
%{_libdir}/pkgconfig/libtraceevent.pc
Zamir SUN 59ca74
Zamir SUN 59ca74
%changelog
Zamir SUN 59ca74
* Mon Feb 08 2021 Zamir SUN <sztsian@gmail.com> - 1.1.1-1
Zamir SUN 59ca74
- Update to 1.1.1
Zamir SUN 59ca74
Zamir SUN 59ca74
* Sat Oct 17 2020 Zamir SUN <sztsian@gmail.com> - 1.1.0-1
Zamir SUN 59ca74
- Update to 1.1.0
Zamir SUN 59ca74
Zamir SUN 59ca74
* Fri Oct 09 2020 Zamir SUN <sztsian@gmail.com> - 0-0.1.20201009git5dd505f
Zamir SUN 59ca74
- Initial libtraceevent
Zamir SUN 59ca74