From 8de3b569d92b846ed7a495f2e54add927dd5c361 Mon Sep 17 00:00:00 2001 From: Tianchen Ding Date: Thu, 22 Feb 2024 17:48:26 +0800 Subject: [PATCH] update to 0.17.1-2 Force the required gcc version. Signed-off-by: Tianchen Ding --- gcc-python-plugin.spec | 17 ++++++++++------- ...thon-plugin-0.17.1.tar.gz => v0.17.1.tar.gz | Bin 2 files changed, 10 insertions(+), 7 deletions(-) rename gcc-python-plugin-0.17.1.tar.gz => v0.17.1.tar.gz (100%) diff --git a/gcc-python-plugin.spec b/gcc-python-plugin.spec index 6ac848e..6e620a8 100644 --- a/gcc-python-plugin.spec +++ b/gcc-python-plugin.spec @@ -1,4 +1,5 @@ -%define anolis_release 1 +%define anolis_release 2 +%define require_gcc_version 8.5.0-20.0.3%{?dist} Name: gcc-python-plugin Version: 0.17.1 @@ -8,12 +9,11 @@ Summary: GCC plugin that embeds Python Group: Development/Languages License: GPLv3+ URL: https://gitee.com/anolis/gcc-python-plugin -Source0: %{name}-%{version}.tar.gz +Source0: https://gitee.com/anolis/gcc-python-plugin/archive/refs/tags/v%{version}.tar.gz -# gcc version should be more than 6.5.1 -BuildRequires: gcc >= 6.5.1 -BuildRequires: gcc-plugin-devel >= 6.5.1 -BuildRequires: gcc-c++ >= 6.5.1 +BuildRequires: gcc = %{require_gcc_version} +BuildRequires: gcc-plugin-devel = %{require_gcc_version} +BuildRequires: gcc-c++ = %{require_gcc_version} # Various python runtimes to build the plugin against: BuildRequires: python3 @@ -28,7 +28,7 @@ BuildRequires: python3-pygments # lxml is used when running the selftests: BuildRequires: python3-lxml -Requires: gcc-plugin-devel >= 6.5.1 +Requires: gcc-plugin-devel = %{require_gcc_version} Requires: python3-libs ExclusiveArch: x86_64 aarch64 @@ -58,5 +58,8 @@ install -m 755 gcc-c-api/libgcc-c-api.so \ %{gcc_plugins_dir}/libgcc-c-api.so %changelog +* Wed May 08 2024 Tianchen Ding - 0.17.1-2 +- Adapt to gcc 8.5.0-20.0.3 + * Mon Aug 07 2023 Tianchen Ding - 0.17.1-1 - first release for anolis version diff --git a/gcc-python-plugin-0.17.1.tar.gz b/v0.17.1.tar.gz similarity index 100% rename from gcc-python-plugin-0.17.1.tar.gz rename to v0.17.1.tar.gz -- Gitee