From 4cbc6760d287caa7d96fde7d7bcb67bed8fc45bc Mon Sep 17 00:00:00 2001 From: h Date: Thu, 27 Apr 2023 15:13:39 +0800 Subject: [PATCH] Add support for specifying cc --- epstool.spec | 8 ++++++-- fix-cc.patch | 24 ++++++++++++++++++++++++ 2 files changed, 30 insertions(+), 2 deletions(-) create mode 100644 fix-cc.patch diff --git a/epstool.spec b/epstool.spec index 04ae0b0..2ab6891 100644 --- a/epstool.spec +++ b/epstool.spec @@ -1,10 +1,11 @@ Name: epstool Version: 3.09 -Release: 1 +Release: 2 Summary: A utility to create or extract preview images in EPS files License: GPLv2+ URL: http://pages.cs.wisc.edu/~ghost/gsview/epstool.htm Source0: http://www.ghostgum.com.au/download/%{name}-%{version}.tar.gz +Patch0: fix-cc.patch BuildRequires: gcc @@ -23,7 +24,7 @@ Features: Motorola) machines. %prep -%setup -q +%autosetup -n %{name}-%{version} -p1 %build # SMP build doesn't work. @@ -40,6 +41,9 @@ install -D -p -m 644 doc/epstool.1 %{buildroot}%{_mandir}/man1/epstool.1 %{_mandir}/man1/epstool.1.* %changelog +* Thu Apr 27 2023 yoo - 3.09-2 +- Add support for specifying cc + * Wed Dec 15 2021 jiangxinyu - 3.09-1 - upgrade to 3.09 diff --git a/fix-cc.patch b/fix-cc.patch new file mode 100644 index 0000000..5fed021 --- /dev/null +++ b/fix-cc.patch @@ -0,0 +1,24 @@ +diff -u -r epstool-3.09/src/os2.mak epstool-3.09/src/os2.mak +--- epstool-3.09/src/os2.mak 2015-03-15 18:25:28.000000000 +0800 ++++ epstool-3.09/src/os2.mak 2023-04-26 21:39:14.000000000 +0800 +@@ -39,7 +39,7 @@ + GSCDEBUG= -g + GSCFLAGS= $(CDEFS) $(EMXOMF) -Wall -Wstrict-prototypes -Wmissing-declarations -Wmissing-prototypes -fno-builtin -fno-common -Wcast-qual -Wwrite-strings $(CDEBUG) $(GSCDEBUG) $(RPM_OPT_FLAGS) $(XINCLUDE) $(PFLAGS) $(LIBPNGCFLAGS) $(GTKCFLAGS) + CCAUX=gcc +-CC=gcc ++CC?=gcc + LFLAGS=$(PLINK) $(LIBPNGLIBS) $(GTKLIBS) + CLINK=gcc $(LDFLAGS) $(EMXOMF) + LINK=gcc $(LDFLAGS) $(EMXOMF) +diff -u -r epstool-3.09/src/unixcom.mak epstool-3.09/src/unixcom.mak +--- epstool-3.09/src/unixcom.mak 2015-03-15 18:25:28.000000000 +0800 ++++ epstool-3.09/src/unixcom.mak 2023-04-26 21:39:04.000000000 +0800 +@@ -20,7 +20,7 @@ + GSCDEBUG= -g + GSCFLAGS= $(CDEFS) -Wall -Wstrict-prototypes -Wmissing-declarations -Wmissing-prototypes -fno-builtin -fno-common -Wcast-qual -Wwrite-strings $(CDEBUG) $(GSCDEBUG) $(RPM_OPT_FLAGS) $(XINCLUDE) $(PFLAGS) $(LIBPNGCFLAGS) $(GTKCFLAGS) + CCAUX=gcc +-CC=gcc ++CC?=gcc + LFLAGS=$(PLINK) $(LIBPNGLIBS) $(GTKLIBS) + CLINK=gcc $(LDFLAGS) + LINK=gcc $(LDFLAGS) -- Gitee