From 3bef3d7f29f026c5bdc701112d790251cad2f700 Mon Sep 17 00:00:00 2001 From: jinzhimin369 Date: Thu, 29 Oct 2020 18:51:29 +0800 Subject: [PATCH] fix build failed in python3 --- telepathy-logger.spec | 21 +++++++++------------ 1 file changed, 9 insertions(+), 12 deletions(-) diff --git a/telepathy-logger.spec b/telepathy-logger.spec index 253a781..74cf018 100644 --- a/telepathy-logger.spec +++ b/telepathy-logger.spec @@ -1,22 +1,17 @@ -# switch it on when /usr/bin/python link to python3 -%bcond_with link_python3 - Name: telepathy-logger Version: 0.8.2 -Release: 12 +Release: 13 Summary: Centralized Logging for the Telepathy Framework License: LGPLv2+ URL: https://telepathy.freedesktop.org/components/telepathy-logger/ Source0: https://telepathy.freedesktop.org/releases/telepathy-logger/%{name}-%{version}.tar.bz2 -%if %{with link_python3} Patch0: 0001-tools-Fix-the-build-with-Python-3.patch -%endif BuildRequires: dbus-devel dbus-glib-devel glib2-devel gnome-doc-utils BuildRequires: gobject-introspection-devel intltool libxml2-devel -BuildRequires: sqlite-devel telepathy-glib-devel git python +BuildRequires: sqlite-devel telepathy-glib-devel git python3 Requires: telepathy-filesystem %description @@ -41,11 +36,7 @@ sed -i.rpath -e 's|"/lib /usr/lib|"/%{_lib} %{_libdir}|' configure %endif %build -%configure --enable-introspection=yes \ -%if ! %{with link_python3} - PYTHON=%{__python2} \ -%endif -; +%configure --enable-introspection=yes sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool %make_build @@ -91,6 +82,12 @@ glib-compile-schemas --allow-any-name %{_datadir}/glib-2.0/schemas &>/dev/null | %{_datadir}/gtk-doc/html/telepathy-logger/* %changelog +* Thu Oct 29 2020 jinzhimin - 0.8.2-13 +- Type:bugfix +- ID:NA +- SUG:NA +- DESC:fix build failed in python3 + * Fri Feb 28 2020 hexiujun - 0.8.2-12 - Type:enhancement - ID:NA