2014-04-16 01:01:18 +02:00
|
|
|
#
|
|
|
|
# spec file for package babeltrace
|
|
|
|
#
|
2017-06-12 17:54:48 +02:00
|
|
|
# Copyright (c) 2017 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.
|
|
|
|
|
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
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
|
2017-06-12 17:54:48 +02:00
|
|
|
Version: 1.5.2
|
2012-02-29 19:21:25 +01:00
|
|
|
Release: 0
|
|
|
|
Summary: Common Trace Format Babel Tower
|
2017-06-12 17:54:48 +02:00
|
|
|
License: MIT AND GPL-2.0
|
2014-04-16 01:01:18 +02:00
|
|
|
Group: Development/Languages/C and C++
|
2017-06-12 15:42:10 +02:00
|
|
|
Url: http://diamon.org/babeltrace
|
2017-06-12 17:54:48 +02:00
|
|
|
Source: https://efficios.com/files/babeltrace/%{name}-%{version}.tar.bz2
|
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)
|
|
|
|
ExclusiveArch: %ix86 x86_64 aarch64 ppc64le ppc64
|
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
|
|
|
|
Group: Development/Libraries/Python
|
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
|
|
|
|
Group: Development/Languages/C and C++
|
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
|
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
|
|
|
|
%defattr(-,root,root)
|
2017-06-12 17:54:48 +02:00
|
|
|
%doc %{_docdir}/%{name}/
|
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}
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%{python3_sitearch}/_%{name}.so*
|
|
|
|
%{python3_sitearch}/%{name}.py
|
|
|
|
%{python3_sitearch}/__pycache__/%{name}.*
|
2012-02-29 19:21:25 +01:00
|
|
|
|
|
|
|
%files -n %{name}-devel
|
|
|
|
%defattr(-,root,root)
|
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
|