From cb61441864039fbb381d3e166b390763d34fd918 Mon Sep 17 00:00:00 2001 From: luofeng14 Date: Sun, 4 Feb 2024 07:19:14 +0000 Subject: [PATCH] Support specify CC Signed-off-by: luofeng14 --- 0002-Support-specify-CC.patch | 15 +++++++++++++++ pciutils.spec | 9 +++++---- 2 files changed, 20 insertions(+), 4 deletions(-) create mode 100644 0002-Support-specify-CC.patch diff --git a/0002-Support-specify-CC.patch b/0002-Support-specify-CC.patch new file mode 100644 index 0000000..8a0f1e4 --- /dev/null +++ b/0002-Support-specify-CC.patch @@ -0,0 +1,15 @@ +diff --git a/Makefile b/Makefile +index cf099ea..50945a9 100644 +--- a/Makefile ++++ b/Makefile +@@ -49,7 +49,7 @@ STRIP=-s + ifdef CROSS_COMPILE + CC=$(CROSS_COMPILE)gcc + else +-CC=cc ++CC?=cc + endif + AR=$(CROSS_COMPILE)ar + RANLIB=$(CROSS_COMPILE)ranlib +-- +2.40.0 diff --git a/pciutils.spec b/pciutils.spec index f736b18..4517cfe 100644 --- a/pciutils.spec +++ b/pciutils.spec @@ -1,6 +1,6 @@ Name: pciutils -Version: 3.9.0 -Release: 1 +Version: 3.8.0 +Release: 2 Summary: PCI bus related utilities License: GPLv2+ URL: http://atrey.karlin.mff.cuni.cz/~mj/pciutils.shtml @@ -10,6 +10,7 @@ Source0: https://mirrors.edge.kernel.org/pub/software/utils/pciutils/%{na Patch0: 0000-pciutils-2.2.1-idpath.patch # patch1 is from fedora, rhbz#195327 Patch1: 0001-pciutils-dir-d.patch +Patch2: 0002-Support-specify-CC.patch ExclusiveOS: Linux BuildRequires: gcc sed kmod-devel pkgconfig zlib-devel @@ -105,8 +106,8 @@ rm -rf $RPM_BUILD_ROOT/usr/share/hwdata/pci.ids* rm -rf $RPM_BUILD_ROOT %changelog -* Thu Feb 09 2023 suweifeng 3.9.0-1 -- upgrade to 3.9.0 +* Mon Nov 13 2023 renyi <977713017@qq.com> - 3.8.0-2 +- Support specify CC * Fri Oct 28 2022 liusirui - 3.8.0-1 - update to v3.8.0 -- Gitee