Blame babeltrace2.spec

12d4587
Name:           babeltrace2
53fb203
Version:        2.0.4
228cc00
Release:        3%{?dist}
12d4587
Summary:        A trace manipulation toolkit
12d4587
# # For a breakdown of the licensing, see LICENSE
12d4587
License:        MIT and GPLv2
12d4587
URL:            https://www.efficios.com/babeltrace
12d4587
Source0:        https://www.efficios.com/files/babeltrace/babeltrace2-%{version}.tar.bz2
12d4587
Source1:        https://www.efficios.com/files/babeltrace/babeltrace2-%{version}.tar.bz2.asc
12d4587
# gpg2 --export --export-options export-minimal 7F49314A26E0DE78427680E05F1B2A0789F12B11 > gpgkey-7F49314A26E0DE78427680E05F1B2A0789F12B11.gpg
12d4587
Source2:        gpgkey-7F49314A26E0DE78427680E05F1B2A0789F12B11.gpg
12d4587
12d4587
BuildRequires:  autoconf >= 2.50
12d4587
BuildRequires:  automake >= 1.10
12d4587
BuildRequires:  bison >= 2.4
12d4587
BuildRequires:  elfutils-devel >= 0.154
12d4587
BuildRequires:  flex >= 2.5.35
12d4587
BuildRequires:  glib2-devel >= 2.28.0
12d4587
BuildRequires:  gnupg2
12d4587
BuildRequires:  libtool >= 2.2
12d4587
BuildRequires:  python3-devel >= 3.4
12d4587
BuildRequires:  swig >= 3.0
53fb203
BuildRequires:  make
12d4587
12d4587
Requires:       libbabeltrace2%{?_isa} = %{version}-%{release}
12d4587
12d4587
%description
12d4587
The Babeltrace 2 project offers a library with a C API, Python 3 bindings, and
12d4587
a command-line tool which makes it very easy for mere mortals to view,
12d4587
convert, transform, and analyze traces.
12d4587
12d4587
Babeltrace 2 is also the reference parser implementation of the Common Trace
12d4587
Format (CTF), a very versatile trace format followed by various tracers and
12d4587
tools such as LTTng and barectf.
12d4587
12d4587
12d4587
%package -n libbabeltrace2
12d4587
Summary:        A trace manipulation library
12d4587
12d4587
%description -n libbabeltrace2
12d4587
The libbabeltrace2 package contains a library and plugin system to view,
12d4587
convert, transform, and analyze traces.
12d4587
12d4587
12d4587
%package -n libbabeltrace2-devel
12d4587
Summary:        Development files for libbabeltrace2
12d4587
Requires:       libbabeltrace2%{?_isa} = %{version}-%{release} glib2-devel
12d4587
12d4587
%description -n libbabeltrace2-devel
12d4587
The libbabeltrace2-devel package contains the header files and libraries
12d4587
needed to develop programs that use the libbabeltrace2 trace manipulation
12d4587
library.
12d4587
12d4587
12d4587
%package -n python3-bt2
12d4587
Summary:        libbabeltrace2 Python bindings
12d4587
Requires:       libbabeltrace2%{?_isa} = %{version}-%{release}
12d4587
12d4587
%description -n python3-bt2
12d4587
The python3-bt2 package provides Python 3 bindings for libbabeltrace2.
12d4587
12d4587
12d4587
%prep
12d4587
%{gpgverify} --keyring='%{SOURCE2}' --signature='%{SOURCE1}' --data='%{SOURCE0}'
12d4587
%autosetup -p1
12d4587
12d4587
%build
12d4587
# Reinitialize libtool with the fedora version to remove Rpath
12d4587
autoreconf -vif
12d4587
12d4587
export PYTHON=%{__python3}
12d4587
export PYTHON_CONFIG=%{__python3}-config
12d4587
%configure --disable-static \
12d4587
	--enable-python-bindings \
12d4587
	--enable-python-plugins \
12d4587
	--enable-debug-info \
12d4587
	--disable-Werror
12d4587
12d4587
make %{?_smp_mflags} V=1
12d4587
12d4587
%check
12d4587
make check
12d4587
12d4587
%install
12d4587
make DESTDIR=%{buildroot} install
12d4587
find %{buildroot} -type f -name "*.la" -delete
12d4587
# Clean installed doc
12d4587
rm -f %{buildroot}/%{_pkgdocdir}/CONTRIBUTING.adoc
12d4587
rm -f %{buildroot}/%{_pkgdocdir}/LICENSE
12d4587
rm -f %{buildroot}/%{_pkgdocdir}/gpl-2.0.txt
12d4587
rm -f %{buildroot}/%{_pkgdocdir}/lgpl-2.1.txt
12d4587
rm -f %{buildroot}/%{_pkgdocdir}/mit-license.txt
12d4587
rm -f %{buildroot}/%{_pkgdocdir}/std-ext-lib.txt
12d4587
12d4587
%ldconfig_scriptlets  -n lib%{name}
12d4587
12d4587
%files
12d4587
%doc ChangeLog
12d4587
%doc README.adoc
12d4587
%{!?_licensedir:%global license %%doc}
12d4587
%license LICENSE gpl-2.0.txt mit-license.txt
12d4587
%{_bindir}/babeltrace2
12d4587
%{_mandir}/man1/*.1*
12d4587
%{_mandir}/man7/*.7*
12d4587
12d4587
%files -n libbabeltrace2
12d4587
%{!?_licensedir:%global license %%doc}
12d4587
%license LICENSE gpl-2.0.txt mit-license.txt
12d4587
%{_libdir}/*.so.*
12d4587
%{_libdir}/babeltrace2/plugin-providers/*.so
12d4587
%{_libdir}/babeltrace2/plugins/*.so
12d4587
12d4587
%files -n libbabeltrace2-devel
12d4587
%{_prefix}/include/*
12d4587
%{_libdir}/*.so
12d4587
%{_libdir}/pkgconfig/babeltrace2.pc
12d4587
%{_libdir}/pkgconfig/babeltrace2-ctf-writer.pc
12d4587
12d4587
%files -n python3-bt2
12d4587
%{python3_sitearch}/bt2
12d4587
%{python3_sitearch}/bt2*.egg-info
12d4587
12d4587
12d4587
%changelog
228cc00
* Wed Jul 21 2021 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.4-3
228cc00
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
228cc00
dcb00fe
* Fri Jun 04 2021 Python Maint <python-maint@redhat.com> - 2.0.4-2
dcb00fe
- Rebuilt for Python 3.10
dcb00fe
53fb203
* Wed Feb 24 2021 Michael Jeanson <mjeanson@efficios.com> - 2.0.4-1
53fb203
- New upstream release
53fb203
3ae57cc
* Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.3-4
3ae57cc
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
3ae57cc
a35bdd9
* Mon Jul 27 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.3-3
a35bdd9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
a35bdd9
d41b847
* Tue May 26 2020 Miro HronĨok <mhroncok@redhat.com> - 2.0.3-2
d41b847
- Rebuilt for Python 3.9
d41b847
19a441e
* Fri Apr 24 2020 Michael Jeanson <mjeanson@efficios.com> - 2.0.3-1
19a441e
- New upstream release
19a441e
87e90dc
* Thu Mar 12 2020 Michael Jeanson <mjeanson@efficios.com> - 2.0.2-1
87e90dc
- New upstream release
87e90dc
12d4587
* Mon Feb 10 2020 Michael Jeanson <mjeanson@efficios.com> - 2.0.1-1
12d4587
- New upstream release