diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..ae0dbdb --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +/babeltrace2-2.0.1.tar.bz2 +/babeltrace2-2.0.1.tar.bz2.asc diff --git a/babeltrace2.spec b/babeltrace2.spec new file mode 100644 index 0000000..49e9637 --- /dev/null +++ b/babeltrace2.spec @@ -0,0 +1,125 @@ +Name: babeltrace2 +Version: 2.0.1 +Release: 1%{?dist} +Summary: A trace manipulation toolkit +# # For a breakdown of the licensing, see LICENSE +License: MIT and GPLv2 +URL: https://www.efficios.com/babeltrace +Source0: https://www.efficios.com/files/babeltrace/babeltrace2-%{version}.tar.bz2 +Source1: https://www.efficios.com/files/babeltrace/babeltrace2-%{version}.tar.bz2.asc +# gpg2 --export --export-options export-minimal 7F49314A26E0DE78427680E05F1B2A0789F12B11 > gpgkey-7F49314A26E0DE78427680E05F1B2A0789F12B11.gpg +Source2: gpgkey-7F49314A26E0DE78427680E05F1B2A0789F12B11.gpg + +BuildRequires: autoconf >= 2.50 +BuildRequires: automake >= 1.10 +BuildRequires: bison >= 2.4 +BuildRequires: elfutils-devel >= 0.154 +BuildRequires: flex >= 2.5.35 +BuildRequires: glib2-devel >= 2.28.0 +BuildRequires: gnupg2 +BuildRequires: libtool >= 2.2 +BuildRequires: python3-devel >= 3.4 +BuildRequires: swig >= 3.0 + +Requires: libbabeltrace2%{?_isa} = %{version}-%{release} + +%description +The Babeltrace 2 project offers a library with a C API, Python 3 bindings, and +a command-line tool which makes it very easy for mere mortals to view, +convert, transform, and analyze traces. + +Babeltrace 2 is also the reference parser implementation of the Common Trace +Format (CTF), a very versatile trace format followed by various tracers and +tools such as LTTng and barectf. + + +%package -n libbabeltrace2 +Summary: A trace manipulation library + +%description -n libbabeltrace2 +The libbabeltrace2 package contains a library and plugin system to view, +convert, transform, and analyze traces. + + +%package -n libbabeltrace2-devel +Summary: Development files for libbabeltrace2 +Requires: libbabeltrace2%{?_isa} = %{version}-%{release} glib2-devel + +%description -n libbabeltrace2-devel +The libbabeltrace2-devel package contains the header files and libraries +needed to develop programs that use the libbabeltrace2 trace manipulation +library. + + +%package -n python3-bt2 +Summary: libbabeltrace2 Python bindings +Requires: libbabeltrace2%{?_isa} = %{version}-%{release} + +%description -n python3-bt2 +The python3-bt2 package provides Python 3 bindings for libbabeltrace2. + + +%prep +%{gpgverify} --keyring='%{SOURCE2}' --signature='%{SOURCE1}' --data='%{SOURCE0}' +%autosetup -p1 + +%build +# Reinitialize libtool with the fedora version to remove Rpath +autoreconf -vif + +export PYTHON=%{__python3} +export PYTHON_CONFIG=%{__python3}-config +%configure --disable-static \ + --enable-python-bindings \ + --enable-python-plugins \ + --enable-debug-info \ + --disable-Werror + +make %{?_smp_mflags} V=1 + +%check +make check + +%install +make DESTDIR=%{buildroot} install +find %{buildroot} -type f -name "*.la" -delete +# Clean installed doc +rm -f %{buildroot}/%{_pkgdocdir}/CONTRIBUTING.adoc +rm -f %{buildroot}/%{_pkgdocdir}/LICENSE +rm -f %{buildroot}/%{_pkgdocdir}/gpl-2.0.txt +rm -f %{buildroot}/%{_pkgdocdir}/lgpl-2.1.txt +rm -f %{buildroot}/%{_pkgdocdir}/mit-license.txt +rm -f %{buildroot}/%{_pkgdocdir}/std-ext-lib.txt + +%ldconfig_scriptlets -n lib%{name} + +%files +%doc ChangeLog +%doc README.adoc +%{!?_licensedir:%global license %%doc} +%license LICENSE gpl-2.0.txt mit-license.txt +%{_bindir}/babeltrace2 +%{_mandir}/man1/*.1* +%{_mandir}/man7/*.7* + +%files -n libbabeltrace2 +%{!?_licensedir:%global license %%doc} +%license LICENSE gpl-2.0.txt mit-license.txt +%{_libdir}/*.so.* +%{_libdir}/babeltrace2/plugin-providers/*.so +%{_libdir}/babeltrace2/plugins/*.so + +%files -n libbabeltrace2-devel +%{_prefix}/include/* +%{_libdir}/*.so +%{_libdir}/pkgconfig/babeltrace2.pc +%{_libdir}/pkgconfig/babeltrace2-ctf-writer.pc + +%files -n python3-bt2 +%{python3_sitearch}/bt2 +%{python3_sitearch}/bt2*.egg-info + + +%changelog +* Mon Feb 10 2020 Michael Jeanson - 2.0.1-1 +- New upstream release diff --git a/gpgkey-7F49314A26E0DE78427680E05F1B2A0789F12B11.gpg b/gpgkey-7F49314A26E0DE78427680E05F1B2A0789F12B11.gpg new file mode 100644 index 0000000..d020f1d Binary files /dev/null and b/gpgkey-7F49314A26E0DE78427680E05F1B2A0789F12B11.gpg differ diff --git a/sources b/sources new file mode 100644 index 0000000..5f64be3 --- /dev/null +++ b/sources @@ -0,0 +1,2 @@ +SHA512 (babeltrace2-2.0.1.tar.bz2) = 6a1df24c14a8ae572c3d811e011b06b86fb7ecd7d021d36205fe6b5cdb219bfe4e131f3ebecc78803a9beadb22db324b0494d707d7de9dcf3fa443831d45ad45 +SHA512 (babeltrace2-2.0.1.tar.bz2.asc) = ac60db683412f47f6e2deb04b7b88c31e0bf348ed5f11490a40e05bd380cba7724341ebc841f0af2836769cc272980108e3be836cafec52c4c6f28bdab2595d4