From 7bc8b8d50a0eec6722bbebea8dbb85cab3b59c52 Mon Sep 17 00:00:00 2001 From: Pavel Zhukov Date: Feb 22 2018 12:17:46 +0000 Subject: Change shebang to python3 (#1453185) --- diff --git a/gnatcoll-2017-pyconfig.patch b/gnatcoll-2017-pyconfig.patch index 5d944eb..4baa128 100644 --- a/gnatcoll-2017-pyconfig.patch +++ b/gnatcoll-2017-pyconfig.patch @@ -55,3 +55,13 @@ python_version=`$PYTHON -c 'import sys; print(".".join([str(k) for k in sys.version_info]))' 2>/dev/null` if test "$python_major_version" -lt 2; then AC_MSG_RESULT(no, need at least version 2.0) +diff --git a/src/dborm.py b/src/dborm.py +index 15ef56e..0027841 100755 +--- a/src/dborm.py ++++ b/src/dborm.py +@@ -1,4 +1,4 @@ +-#!/usr/bin/env python ++#!/usr/bin/python3 + # This script should be compatible with both python 2 and python 3 + + import re diff --git a/gnatcoll.spec b/gnatcoll.spec index 9a95032..7d5fdf9 100644 --- a/gnatcoll.spec +++ b/gnatcoll.spec @@ -3,7 +3,7 @@ Name: gnatcoll Version: 2017 -Release: 12%{?dist} +Release: 13%{?dist} Summary: Suite of reusable software components and utilities Group: System Environment/Libraries License: GPLv2+ @@ -68,8 +68,7 @@ Requires: libgpr-devel --with-python-exec=python \ %endif --enable-pygtk -### Don't build with python because of aclocal configuration -### --with-python \ + export BUILDS_SHARED="yes" %if 0%{?fedora} >= 1 make -j1 GPRBLD_OPTS="%GPRbuild_optflags" @@ -125,8 +124,9 @@ mv %{buildroot}/%{_datadir}/examples %{buildroot}/%{_datadir}/%{name} %changelog -* Thu Feb 22 2018 Pavel Zhukov