]> git.pld-linux.org Git - packages/babeltrace.git/commitdiff
- updated to 1.5.6 auto/th/babeltrace-1.5.6-1
authorJakub Bogusz <qboosh@pld-linux.org>
Sat, 28 Jul 2018 20:21:11 +0000 (22:21 +0200)
committerJakub Bogusz <qboosh@pld-linux.org>
Sat, 28 Jul 2018 20:21:11 +0000 (22:21 +0200)
- removed obsolete link patch
- added python patch (compile python3 module)
- python binding switched to python3 (upstream change)

babeltrace-link.patch [deleted file]
babeltrace-python.patch [new file with mode: 0644]
babeltrace.spec

diff --git a/babeltrace-link.patch b/babeltrace-link.patch
deleted file mode 100644 (file)
index 0acef53..0000000
+++ /dev/null
@@ -1,19 +0,0 @@
---- babeltrace-1.2.0/formats/lttng-live/Makefile.am.orig       2014-02-28 19:11:47.000000000 +0100
-+++ babeltrace-1.2.0/formats/lttng-live/Makefile.am    2014-03-03 07:30:40.911484235 +0100
-@@ -14,4 +14,5 @@
-       -Wl,--no-as-needed -version-info $(BABELTRACE_LIBRARY_VERSION)
- libbabeltrace_lttng_live_la_LIBADD = \
-+      $(top_builddir)/formats/ctf/libbabeltrace-ctf.la \
-       $(top_builddir)/lib/libbabeltrace.la
---- babeltrace-1.2.0/bindings/python/Makefile.am.orig  2014-02-28 19:11:47.000000000 +0100
-+++ babeltrace-1.2.0/bindings/python/Makefile.am       2014-03-03 07:54:53.981423256 +0100
-@@ -13,7 +13,7 @@
- nodist__babeltrace_la_SOURCES = babeltrace_wrap.c
- _babeltrace_la_SOURCES = python-complements.h python-complements.c
--_babeltrace_la_LDFLAGS = -module
-+_babeltrace_la_LDFLAGS = -module -avoid-version
- _babeltrace_la_CFLAGS = $(GLIB_CFLAGS) $(AM_CFLAGS)
diff --git a/babeltrace-python.patch b/babeltrace-python.patch
new file mode 100644 (file)
index 0000000..7678819
--- /dev/null
@@ -0,0 +1,11 @@
+--- babeltrace-1.5.6/bindings/python/Makefile.am.orig  2018-07-03 21:41:31.000000000 +0200
++++ babeltrace-1.5.6/bindings/python/Makefile.am       2018-07-28 21:00:25.526818768 +0200
+@@ -32,7 +32,7 @@
+       touch $@
+ 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; \
index 14e1c1f40fa2cb34f6dc725b9984ba1be7088fd4..3c0d06c08c558f452fffaf1ab6dcd4c199509e8a 100644 (file)
@@ -5,14 +5,14 @@
 Summary:       Trace Format Babel Tower
 Summary(pl.UTF-8):     Wieża Babel formatów narzędzi śledzących
 Name:          babeltrace
-Version:       1.2.4
-Release:       4
+Version:       1.5.6
+Release:       1
 License:       MIT
 Group:         Applications/System
-Source0:       http://lttng.org/files/babeltrace/%{name}-%{version}.tar.bz2
-# Source0-md5: 20a806fa7570e69a91707855a98f3ca6
-Patch0:                %{name}-link.patch
-URL:           http://lttng.org/babeltrace
+Source0:       https://www.efficios.com/files/babeltrace/%{name}-%{version}.tar.bz2
+# Source0-md5: 8ce610461e73f48b9c6beec9ba95dcc3
+Patch0:                %{name}-python.patch
+URL:           http://diamon.org/babeltrace/
 BuildRequires: autoconf >= 2.50
 BuildRequires: automake
 BuildRequires: glib2-devel >= 1:2.22.0
@@ -20,7 +20,7 @@ BuildRequires:        libtool >= 2:2
 BuildRequires: libuuid-devel
 BuildRequires: pkgconfig
 BuildRequires: popt-devel
-%{?with_python:BuildRequires:  python-devel >= 2}
+%{?with_python:BuildRequires:  python3-devel >= 1:3.2}
 BuildRequires: rpm-pythonprov
 BuildRequires: rpmbuild(macros) >= 1.219
 Requires:      glib2 >= 1:2.22.0
@@ -63,17 +63,18 @@ Static Babeltrace libraries.
 %description static -l pl.UTF-8
 Statyczne biblioteki Babeltrace.
 
-%package -n python-babeltrace
-Summary:       Python binding to Babeltrace library
-Summary(pl.UTF-8):     Wiązanie Pythona do biblioteki Babeltrace
+%package -n python3-babeltrace
+Summary:       Python binding to Babeltrace library
+Summary(pl.UTF-8):     Wiązanie Pythona do biblioteki Babeltrace
 Group:         Libraries/Python
 Requires:      %{name} = %{version}-%{release}
+Obsoletes:     python-babeltrace < 1.5.3
 
-%description -n python-babeltrace
-Python binding to Babeltrace library.
+%description -n python3-babeltrace
+Python binding to Babeltrace library.
 
-%description -n python-babeltrace -l pl.UTF-8
-Wiązanie Pythona do biblioteki Babeltrace.
+%description -n python3-babeltrace -l pl.UTF-8
+Wiązanie Pythona do biblioteki Babeltrace.
 
 %prep
 %setup -q
@@ -102,7 +103,6 @@ rm -rf $RPM_BUILD_ROOT
 %{__rm} -r $RPM_BUILD_ROOT%{_docdir}/babeltrace
 
 %if %{with python}
-%{__rm} $RPM_BUILD_ROOT%{py_sitedir}/_babeltrace.{la,a}
 %py_postclean
 %endif
 
@@ -161,8 +161,11 @@ rm -rf $RPM_BUILD_ROOT
 %{_libdir}/libbabeltrace-lttng-live.a
 
 %if %{with python}
-%files -n python-babeltrace
+%files -n python3-babeltrace
 %defattr(644,root,root,755)
-%attr(755,root,root) %{py_sitedir}/_babeltrace.so
-%{py_sitescriptdir}/babeltrace.py[co]
+%dir %{py3_sitedir}/babeltrace
+%attr(755,root,root) %{py3_sitedir}/babeltrace/_babeltrace.cpython-*.so
+%{py3_sitedir}/babeltrace/*.py
+%{py3_sitedir}/babeltrace/__pycache__
+%{py3_sitedir}/babeltrace-%{version}-py*.egg-info
 %endif
This page took 0.161055 seconds and 4 git commands to generate.