2014-04-16 01:01:18 +02:00
|
|
|
#
|
|
|
|
# spec file for package babeltrace
|
|
|
|
#
|
2019-09-27 15:52:28 +02:00
|
|
|
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
|
2014-04-16 01:01:18 +02:00
|
|
|
#
|
|
|
|
# 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.
|
|
|
|
|
2019-10-17 16:39:47 +02:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2014-04-16 01:01:18 +02:00
|
|
|
#
|
|
|
|
|
2017-06-12 15:42:10 +02:00
|
|
|
|
2017-06-12 17:54:48 +02:00
|
|
|
%define soname libbabeltrace
|
|
|
|
%define sover 1
|
2012-02-29 19:21:25 +01:00
|
|
|
Name: babeltrace
|
2018-11-15 01:14:39 +01:00
|
|
|
Version: 1.5.6
|
2012-02-29 19:21:25 +01:00
|
|
|
Release: 0
|
|
|
|
Summary: Common Trace Format Babel Tower
|
2018-03-16 21:40:47 +01:00
|
|
|
License: MIT AND GPL-2.0-only
|
2019-09-27 15:52:28 +02:00
|
|
|
Url: https://diamon.org/babeltrace
|
2017-06-12 17:54:48 +02:00
|
|
|
Source: https://efficios.com/files/babeltrace/%{name}-%{version}.tar.bz2
|
2018-06-19 15:39:17 +02:00
|
|
|
Source1: https://efficios.com/files/babeltrace/%{name}-%{version}.tar.bz2.asc
|
|
|
|
Source2: %{name}.keyring
|
2014-04-16 01:01:18 +02:00
|
|
|
BuildRequires: bison
|
|
|
|
BuildRequires: flex
|
|
|
|
BuildRequires: pkgconfig
|
2017-06-12 17:54:48 +02:00
|
|
|
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)
|
2019-09-27 15:52:28 +02:00
|
|
|
ExclusiveArch: %ix86 x86_64 aarch64 ppc64le ppc64 s390x
|
2012-02-29 19:21:25 +01:00
|
|
|
|
|
|
|
%description
|
2017-06-12 17:54:48 +02:00
|
|
|
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.
|
2012-02-29 19:21:25 +01:00
|
|
|
|
2017-06-12 17:54:48 +02:00
|
|
|
The main format expected to be converted to/from is the
|
|
|
|
Common Trace Format (CTF).
|
2012-02-29 19:21:25 +01:00
|
|
|
|
2017-06-12 17:54:48 +02:00
|
|
|
%package -n python3-%{name}
|
|
|
|
Summary: Python Bindings for babeltrace
|
2012-02-29 19:21:25 +01:00
|
|
|
|
2017-06-12 17:54:48 +02:00
|
|
|
%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.
|
2012-02-29 19:21:25 +01:00
|
|
|
|
2017-06-12 17:54:48 +02:00
|
|
|
Python Bindings for the babeltrace package.
|
2014-04-16 01:01:18 +02:00
|
|
|
|
2017-06-12 17:54:48 +02:00
|
|
|
%package -n %{name}-devel
|
2012-02-29 19:21:25 +01:00
|
|
|
Summary: Common Trace Format Babel Tower
|
2017-06-12 17:54:48 +02:00
|
|
|
Requires: %{name} = %{version}
|
2012-02-29 19:21:25 +01:00
|
|
|
|
|
|
|
%description -n %{name}-devel
|
2017-06-12 17:54:48 +02:00
|
|
|
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.
|
2012-02-29 19:21:25 +01:00
|
|
|
|
2017-06-12 17:54:48 +02:00
|
|
|
The main format expected to be converted to/from is the
|
|
|
|
Common Trace Format (CTF).
|
2012-02-29 19:21:25 +01:00
|
|
|
|
|
|
|
%prep
|
2017-06-12 17:54:48 +02:00
|
|
|
%setup -q
|
2012-02-29 19:21:25 +01:00
|
|
|
|
|
|
|
%build
|
2017-06-12 17:54:48 +02:00
|
|
|
export PYTHON="python3"
|
|
|
|
export PYTHON_CONFIG="$PYTHON-config"
|
|
|
|
%configure \
|
|
|
|
--disable-static \
|
|
|
|
--docdir=%{_docdir}/%{name} \
|
|
|
|
--enable-python-bindings
|
|
|
|
make %{?_smp_mflags} V=1
|
2012-02-29 19:21:25 +01:00
|
|
|
|
|
|
|
%install
|
2017-06-12 17:54:48 +02:00
|
|
|
%make_install
|
|
|
|
find %{buildroot} -type f -name "*.la" -delete -print
|
2018-11-15 01:14:39 +01:00
|
|
|
# Remove licences from doc.
|
|
|
|
rm %{buildroot}%{_docdir}/%{name}/{LICENSE,mit-license.txt,gpl-2.0.txt}
|
2012-02-29 19:21:25 +01:00
|
|
|
|
|
|
|
%post -p /sbin/ldconfig
|
2014-04-16 01:01:18 +02:00
|
|
|
|
2012-02-29 19:21:25 +01:00
|
|
|
%postun -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%files
|
2017-06-12 17:54:48 +02:00
|
|
|
%doc %{_docdir}/%{name}/
|
2018-11-15 01:14:39 +01:00
|
|
|
%license LICENSE mit-license.txt gpl-2.0.txt
|
2012-02-29 19:21:25 +01:00
|
|
|
%{_bindir}/%{name}*
|
2017-06-12 17:54:48 +02:00
|
|
|
%{_libdir}/%{soname}*.so.%{sover}*
|
|
|
|
%{_mandir}/man1/*.1%{?ext_man}
|
|
|
|
|
|
|
|
%files -n python3-%{name}
|
2017-11-03 23:51:29 +01:00
|
|
|
%{python3_sitearch}/%{name}/
|
|
|
|
%{python3_sitearch}/%{name}-*
|
2012-02-29 19:21:25 +01:00
|
|
|
|
|
|
|
%files -n %{name}-devel
|
2017-06-12 17:54:48 +02:00
|
|
|
%{_includedir}/%{name}/
|
|
|
|
%{_libdir}/%{soname}*.so
|
2013-08-07 04:25:31 +02:00
|
|
|
%{_libdir}/pkgconfig/%{name}.pc
|
2014-04-16 01:01:18 +02:00
|
|
|
%{_libdir}/pkgconfig/%{name}-ctf.pc
|
2012-02-29 19:21:25 +01:00
|
|
|
|
|
|
|
%changelog
|