[packages/babeltrace2] - new
qboosh
qboosh at pld-linux.org
Mon Apr 13 22:06:54 CEST 2020
commit ab16c0237a237dd578482e389478c16df444baeb
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date: Mon Apr 13 22:06:52 2020 +0200
- new
babeltrace2-python.patch | 11 +++
babeltrace2.spec | 183 +++++++++++++++++++++++++++++++++++++++++++++++
2 files changed, 194 insertions(+)
---
diff --git a/babeltrace2.spec b/babeltrace2.spec
new file mode 100644
index 0000000..287bfa9
--- /dev/null
+++ b/babeltrace2.spec
@@ -0,0 +1,183 @@
+#
+# Conditional build:
+%bcond_without apidocs # API documentation
+%bcond_without python # Python binding
+#
+Summary: Trace Format Babel Tower
+Summary(pl.UTF-8): Wieża Babel formatów narzędzi śledzących
+Name: babeltrace2
+Version: 2.0.2
+Release: 1
+License: MIT
+Group: Applications/System
+Source0: https://www.efficios.com/files/babeltrace/%{name}-%{version}.tar.bz2
+# Source0-md5: be8eddfb85dd70bf80d7f5453e965662
+Patch0: %{name}-python.patch
+URL: https://babeltrace.org/
+BuildRequires: autoconf >= 2.50
+BuildRequires: automake >= 1:1.12
+%{?with_apidocs:BuildRequires: doxygen}
+BuildRequires: elfutils-devel >= 0.154
+BuildRequires: glib2-devel >= 1:2.28.0
+BuildRequires: libtool >= 2:2
+BuildRequires: libuuid-devel
+BuildRequires: pkgconfig
+BuildRequires: popt-devel
+%{?with_python:BuildRequires: python3-devel >= 1:3.2}
+BuildRequires: rpm-pythonprov
+BuildRequires: rpmbuild(macros) >= 1.507
+BuildRequires: swig-python >= 2.0.0
+Requires: elfutils >= 0.154
+Requires: glib2 >= 1:2.28.0
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%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.
+
+%description -l pl.UTF-8
+Ten projekt udostępnia biblioteki do odczytu i zapisu śladów, a także
+konwerter śladów. Można tworzyć wtyczki dla dowolnego formatu śladów,
+aby umożliwić konwersję do/z innego formatu.
+
+%package devel
+Summary: Header files for Babeltrace libraries
+Summary(pl.UTF-8): Pliki nagłówkowe bibliotek Babeltrace
+Group: Development/Libraries
+Requires: %{name} = %{version}-%{release}
+Requires: elfutils-devel >= 0.154
+Requires: glib2-devel >= 1:2.28.0
+Requires: libuuid-devel
+Requires: popt-devel
+
+%description devel
+Header files for Babeltrace libraries.
+
+%description devel -l pl.UTF-8
+Pliki nagłówkowe bibliotek Babeltrace.
+
+%package static
+Summary: Static Babeltrace 2 libraries
+Summary(pl.UTF-8): Statyczne biblioteki Babeltrace 2
+Group: Development/Libraries
+Requires: %{name}-devel = %{version}-%{release}
+
+%description static
+Static Babeltrace 2 libraries.
+
+%description static -l pl.UTF-8
+Statyczne biblioteki Babeltrace 2.
+
+%package apidocs
+Summary: API documentation for Babeltrace 2 libraries
+Summary(pl.UTF-8): Dokumentacja API bibliotek Babeltrace 2
+Group: Documentation
+%if "%{_rpmversion}" >= "4.6"
+BuildArch: noarch
+%endif
+
+%description apidocs
+API documentation for Babeltrace 2 libraries.
+
+%description apidocs -l pl.UTF-8
+Dokumentacja API bibliotek Babeltrace 2.
+
+%package -n python3-babeltrace2
+Summary: Python 3 binding to Babeltrace 2 library
+Summary(pl.UTF-8): Wiązanie Pythona 3 do biblioteki Babeltrace 2
+Group: Libraries/Python
+Requires: %{name} = %{version}-%{release}
+
+%description -n python3-babeltrace2
+Python 3 binding to Babeltrace 2 library.
+
+%description -n python3-babeltrace2 -l pl.UTF-8
+Wiązanie Pythona 3 do biblioteki Babeltrace 2.
+
+%prep
+%setup -q
+%patch0 -p1
+
+%build
+%{__libtoolize}
+%{__aclocal} -I m4
+%{__autoconf}
+%{__autoheader}
+%{__automake}
+%configure \
+ %{?with_apidocs:--enable-api-doc} \
+ %{?with_python:--enable-python-bindings} \
+ --disable-silent-rules
+%{__make}
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%{__make} install \
+ DESTDIR=$RPM_BUILD_ROOT
+
+%{__rm} $RPM_BUILD_ROOT%{_libdir}/babeltrace2/plugins/*.{la,a}
+# obsoleted by pkg-config
+%{__rm} $RPM_BUILD_ROOT%{_libdir}/lib*.la
+
+# packaged as %doc
+%{__rm} -r $RPM_BUILD_ROOT%{_docdir}/babeltrace2
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%post -p /sbin/ldconfig
+%postun -p /sbin/ldconfig
+
+%files
+%defattr(644,root,root,755)
+%doc ChangeLog LICENSE README.adoc mit-license.txt std-ext-lib.txt
+%attr(755,root,root) %{_bindir}/babeltrace2
+%attr(755,root,root) %{_libdir}/libbabeltrace2.so.*.*.*
+%attr(755,root,root) %ghost %{_libdir}/libbabeltrace2.so.0
+%attr(755,root,root) %{_libdir}/libbabeltrace2-ctf-writer.so.*.*.*
+%attr(755,root,root) %ghost %{_libdir}/libbabeltrace2-ctf-writer.so.0
+%dir %{_libdir}/babeltrace2
+%dir %{_libdir}/babeltrace2/plugins
+%attr(755,root,root) %{_libdir}/babeltrace2/plugins/babeltrace-plugin-ctf.so
+%attr(755,root,root) %{_libdir}/babeltrace2/plugins/babeltrace-plugin-lttng-utils.so
+%attr(755,root,root) %{_libdir}/babeltrace2/plugins/babeltrace-plugin-text.so
+%attr(755,root,root) %{_libdir}/babeltrace2/plugins/babeltrace-plugin-utils.so
+%{_mandir}/man1/babeltrace2.1*
+%{_mandir}/man1/babeltrace2-convert.1*
+%{_mandir}/man1/babeltrace2-help.1*
+%{_mandir}/man1/babeltrace2-list-plugins.1*
+%{_mandir}/man1/babeltrace2-query.1*
+%{_mandir}/man1/babeltrace2-run.1*
+%{_mandir}/man7/babeltrace2*.7*
+
+%files devel
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_libdir}/libbabeltrace2.so
+%attr(755,root,root) %{_libdir}/libbabeltrace2-ctf-writer.so
+%{_includedir}/babeltrace2
+%{_includedir}/babeltrace2-ctf-writer
+%{_pkgconfigdir}/babeltrace2.pc
+%{_pkgconfigdir}/babeltrace2-ctf-writer.pc
+
+%files static
+%defattr(644,root,root,755)
+%{_libdir}/libbabeltrace2.a
+%{_libdir}/libbabeltrace2-ctf-writer.a
+
+%if %{with apidocs}
+%files apidocs
+%defattr(644,root,root,755)
+%doc doc/api/libbabeltrace2/output/html/{search,*.css,*.html,*.js,*.png}
+%endif
+
+%if %{with python}
+%files -n python3-babeltrace2
+%defattr(644,root,root,755)
+%dir %{py3_sitedir}/bt2
+%attr(755,root,root) %{py3_sitedir}/bt2/_native_bt.cpython-*.so
+%{py3_sitedir}/bt2/*.py
+%{py3_sitedir}/bt2/__pycache__
+%{py3_sitedir}/bt2-%{version}-py*.egg-info
+%endif
diff --git a/babeltrace2-python.patch b/babeltrace2-python.patch
new file mode 100644
index 0000000..e2dbfd8
--- /dev/null
+++ b/babeltrace2-python.patch
@@ -0,0 +1,11 @@
+--- babeltrace2-2.0.2/src/bindings/python/bt2/Makefile.am.orig 2020-03-10 22:46:52.000000000 +0100
++++ babeltrace2-2.0.2/src/bindings/python/bt2/Makefile.am 2020-04-13 20:56:49.729383809 +0200
+@@ -142,7 +142,7 @@
+ -include bt2/native_bt.d
+
+ install-exec-local: build-python-bindings.stamp
+- @opts="--prefix=$(prefix) --record $(INSTALLED_FILES) --verbose --no-compile $(DISTSETUPOPTS)"; \
++ @opts="--prefix=$(prefix) --record $(INSTALLED_FILES) --verbose --optimize=2 $(DISTSETUPOPTS)"; \
+ if [ "$(DESTDIR)" != "" ]; then \
+ opts="$$opts --root=$(DESTDIR)"; \
+ fi; \
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/babeltrace2.git/commitdiff/ab16c0237a237dd578482e389478c16df444baeb
More information about the pld-cvs-commit
mailing list