forked from pool/babeltrace2
572a44ecf5
- update to 2.0.3: * Fix: lib: use appropriate format specifier to print message iterator class * Fix: sink.text.pretty: check that port is connected before creating message iterator * Add initial Python bindings documentation * Fix: bt2: read properties on _DiscardedEventsMessage * tests: add tests for discarded events/packets creation * Fix: bt2: add precond. check, for stream class supporting discarded msgs with clock snapshot without clock class * Fix: flt-utils.muxer: reference leak in muxer_msg_iter_add_upstream_msg_iter error path * Fix: sink.text.details: goto error when failing to add input port * Fix: src.text.dmesg: add missing assignment of `status` on error path * Revert "bt2: _EventConst.__getitem__(): use a single temporary variable" * Fix: src.ctf.fs: initialize the other_entry variable * bt2: _EventConst.__getitem__(): use a single temporary variable * Fix: _EventConst.__getitem__(): check if event has a packet * doc: bt_field_class...get_mapping_labels...(): clarify RV's validity * doc/api/libbabeltrace2/style.css: make font weight of `.intertd` normal * common: cast arguments to character classification functions to unsigned char * flt.utils.muxer: initialize variable to silence -Wmaybe-uninitialized warning * Fix: configure.ac: silently accepting invalid Python configuration * Cleanup: configure.ac: remove redundant `AC_ARG_ENABLE` parameters * Fix: plugin-dev.h: Disable address sanitizer on pointer array section variables * Fix: cli: use BT_CLI_LOGE_APPEND_CAUSE instead of printf to print errors * tests: improve flt.utils.trimmer/test_trimming to test streams without packets * Fix: flt-utils.trimmer: accept streams without packet support * Fix: lib: don't assume that streams have packets in auto seek * Fix: correct typo in README OBS-URL: https://build.opensuse.org/request/show/827677 OBS-URL: https://build.opensuse.org/package/show/devel:tools:lttng/babeltrace2?expand=0&rev=3
116 lines
3.4 KiB
RPMSpec
116 lines
3.4 KiB
RPMSpec
#
|
|
# spec file for package babeltrace2
|
|
#
|
|
# Copyright (c) 2020 SUSE LLC
|
|
#
|
|
# All modifications and additions to the file contributed by third parties
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
# upon. The license for this file, and modifications and additions to the
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
# license for the pristine package is not an Open Source License, in which
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
# published by the Open Source Initiative.
|
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
|
#
|
|
|
|
|
|
%define soname libbabeltrace2
|
|
%define sover 0
|
|
Name: babeltrace2
|
|
Version: 2.0.3
|
|
Release: 0
|
|
Summary: Common Trace Format Babel Tower
|
|
License: MIT AND GPL-2.0-only
|
|
URL: https://diamon.org/babeltrace
|
|
Source: https://efficios.com/files/babeltrace/%{name}-%{version}.tar.bz2
|
|
Source1: https://efficios.com/files/babeltrace/%{name}-%{version}.tar.bz2.asc
|
|
Source2: %{name}.keyring
|
|
BuildRequires: bison
|
|
BuildRequires: flex
|
|
BuildRequires: pkgconfig
|
|
BuildRequires: swig
|
|
BuildRequires: pkgconfig(glib-2.0)
|
|
BuildRequires: pkgconfig(libdw) >= 0.154
|
|
BuildRequires: pkgconfig(libelf) >= 0.154
|
|
BuildRequires: pkgconfig(popt)
|
|
BuildRequires: pkgconfig(python3)
|
|
BuildRequires: pkgconfig(uuid)
|
|
ExclusiveArch: %ix86 x86_64 aarch64 ppc64le ppc64 s390x
|
|
|
|
%description
|
|
This project provides trace read and write libraries, as well as a
|
|
trace converter. A plugin can be created for any trace format to
|
|
allow its conversion to/from another trace format.
|
|
|
|
The main format expected to be converted to/from is the
|
|
Common Trace Format (CTF).
|
|
|
|
%package -n python3-%{name}
|
|
Summary: Python Bindings for babeltrace2
|
|
|
|
%description -n python3-%{name}
|
|
This project provides trace read and write libraries, as well as a
|
|
trace converter. A plugin can be created for any trace format to
|
|
allow its conversion to/from another trace format.
|
|
|
|
Python Bindings for the babeltrace2 package.
|
|
|
|
%package -n %{name}-devel
|
|
Summary: Common Trace Format Babel Tower
|
|
Requires: %{name} = %{version}
|
|
|
|
%description -n %{name}-devel
|
|
This project provides trace read and write libraries, as well as a
|
|
trace converter. A plugin can be created for any trace format to
|
|
allow its conversion to/from another trace format.
|
|
|
|
The main format expected to be converted to/from is the
|
|
Common Trace Format (CTF).
|
|
|
|
%prep
|
|
%setup -q
|
|
|
|
%build
|
|
export PYTHON="python3"
|
|
export PYTHON_CONFIG="$PYTHON-config"
|
|
%configure \
|
|
--disable-static \
|
|
--disable-Werror \
|
|
--docdir=%{_docdir}/%{name} \
|
|
--enable-python-bindings
|
|
%make_build
|
|
|
|
%install
|
|
%make_install
|
|
find %{buildroot} -type f -name "*.la" -delete -print
|
|
# Remove licences from doc.
|
|
rm %{buildroot}%{_docdir}/%{name}/{LICENSE,mit-license.txt,gpl-2.0.txt}
|
|
|
|
%post -p /sbin/ldconfig
|
|
|
|
%postun -p /sbin/ldconfig
|
|
|
|
%files
|
|
%doc %{_docdir}/%{name}/
|
|
%license LICENSE mit-license.txt gpl-2.0.txt
|
|
%{_bindir}/%{name}*
|
|
%{_libdir}/%{name}/
|
|
%{_libdir}/%{soname}*.so.%{sover}*
|
|
%{_mandir}/man1/*.1%{?ext_man}
|
|
%{_mandir}/man7/*.7%{?ext_man}
|
|
|
|
%files -n python3-%{name}
|
|
%{python3_sitearch}/bt2/
|
|
%{python3_sitearch}/bt2-*
|
|
|
|
%files -n %{name}-devel
|
|
%{_includedir}/%{name}/
|
|
%{_includedir}/%{name}-ctf-writer/
|
|
%{_libdir}/%{soname}*.so
|
|
%{_libdir}/pkgconfig/%{name}.pc
|
|
%{_libdir}/pkgconfig/%{name}-ctf-writer.pc
|
|
|
|
%changelog
|