diff --git a/support-specify-cc.patch b/support-specify-cc.patch new file mode 100644 index 0000000..112c3e9 --- /dev/null +++ b/support-specify-cc.patch @@ -0,0 +1,12 @@ +diff -up ustr-1.0.4/Makefile.orig2 ustr-1.0.4/Makefile +--- ustr-1.0.4/Makefile.orig2 2023-04-17 17:41:55.289194228 +0800 ++++ ustr-1.0.4/Makefile 2023-04-17 17:41:58.941200484 +0800 +@@ -28,7 +28,7 @@ MBINDIR=$(libexecdir)/ustr-$(VERS_FULL) + ############################################################################### + HIDE=@ + +-CC = cc ++CC ?= cc + AR = ar + RANLIB = ranlib + LDCONFIG = /sbin/ldconfig diff --git a/ustr.spec b/ustr.spec index 74fc427..a7dfbef 100644 --- a/ustr.spec +++ b/ustr.spec @@ -1,12 +1,13 @@ Name: ustr Version: 1.0.4 -Release: 29 +Release: 30 Summary: Micro String API for C License: MIT or LGPLv2+ or BSD URL: http://www.and.org/ustr/ Source0: http://www.and.org/ustr/%{version}/%{name}-%{version}.tar.bz2 #Acknowledge Patch0 from Fedora Patch0: c99-inline.patch +Patch1: support-specify-cc.patch BuildRequires: make BuildRequires: gcc @@ -102,6 +103,9 @@ make $@ install-multilib-linux prefix=%{_prefix} \ %changelog +* Mon Apr 17 2023 jammyjellyfish - 1.0.4-30 +- Support specify CC + * Fri Jun 4 2021 zoulin - 1.0.4-29 - Add gcc and make to BuildRequires to use gcc command