diff --git a/0001-Support-specify-CC.patch b/0001-Support-specify-CC.patch new file mode 100644 index 0000000000000000000000000000000000000000..a197d898d0a2aaeb9eda741136f5588bebbb48eb --- /dev/null +++ b/0001-Support-specify-CC.patch @@ -0,0 +1,28 @@ +From c90782c682df0488d51e245d6413be336b7f6782 Mon Sep 17 00:00:00 2001 +From: jammyjellyfish +Date: Wed, 19 Apr 2023 14:46:09 +0800 +Subject: [PATCH] Support specify CC + +Makefile set CC compiler as gcc, and not reading CC from +environment variable. This patch lets Makefile read $CC +environment variable and use it as compiler, if exists +--- + Makefile | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/Makefile b/Makefile +index 752e550..0297cf7 100644 +--- a/Makefile ++++ b/Makefile +@@ -18,7 +18,7 @@ + + PREFIX=/usr/local + +-CC=gcc ++CC?=gcc + INSTALL=install + + VERSION=2.1.0 +-- +2.40.0 + diff --git a/tree.spec b/tree.spec index abbeab78783ae9d3a03924a0cb2b80f180f14591..df665b9b6c20e4c86318fba5b42e81f87a739bfb 100644 --- a/tree.spec +++ b/tree.spec @@ -1,12 +1,13 @@ Name: tree Version: 2.1.0 -Release: 1 +Release: 2 Summary: Tree file viewer tool License: GPLv2+ URL: http://mama.indstate.edu/users/ice/tree/ Source0: http://mama.indstate.edu/users/ice/tree/src/%{name}-%{version}.tgz Source1: ftp://mama.indstate.edu/linux/tree/%{name}-%{version}.tgz +Patch0: 0001-Support-specify-CC.patch BuildRequires: gcc @@ -45,6 +46,9 @@ install -D -m 644 doc/tree.1 $RPM_BUILD_ROOT%{_mandir}/man1/tree.1 %{_mandir}/man1/* %changelog +* Wed Apr 19 2023 jammyjellyfish - 2.1.0-2 +- Support specify CC + * Thu Feb 09 2023 Kunlin Yang - 2.1.0-1 - upgrade package from 2.0.4 to 2.1.0