diff --git a/0001-add-compile-option.patch b/0001-add-compile-option.patch new file mode 100644 index 0000000..9c8d3fd --- /dev/null +++ b/0001-add-compile-option.patch @@ -0,0 +1,25 @@ +From b67c8c1b249046b92966b0ad7768c07cbad59445 Mon Sep 17 00:00:00 2001 +From: zhangchao13 +Date: Thu, 6 Apr 2023 14:48:07 +0800 +Subject: [PATCH] fix + +--- + configure | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/configure b/configure +index 5cf4e08..b8566dd 100644 +--- a/configure ++++ b/configure +@@ -42,7 +42,7 @@ OSNAME= + UTF8_LOCALE= + + AR=ar +-CC=cc ++CC=$CC + CFLAGS= + FATAL=0 + LDADD= +-- +2.39.2.windows.1 + diff --git a/mandoc.spec b/mandoc.spec index a63bca7..7f29857 100644 --- a/mandoc.spec +++ b/mandoc.spec @@ -1,14 +1,16 @@ Name: mandoc Version: 1.14.6 -Release: 1 +Release: 2 Summary: A suite of tools for compiling mdoc and man License: ISC URL: https://mandoc.bsd.lv/ Source0: https://mandoc.bsd.lv/snapshots/mandoc-%{version}.tar.gz +Patch0: 0001-add-compile-option.patch BuildRequires: gcc BuildRequires: make +BuildRequires: clang BuildRequires: zlib-devel # requirements for %%check @@ -69,6 +71,7 @@ echo 'INSTALL_DATA="${INSTALL} -m 0644"' >> configure.local echo 'INSTALL_LIBMANDOC=1' >> configure.local echo 'CFLAGS="%{optflags} -fPIC"' >> configure.local +export CC=clang ./configure %make_build @@ -217,6 +220,8 @@ fi %{_mandir}/man3/tbl.3* %changelog +* Thu Apr 6 2023 changzhangm - 1.14.6-2 +- Update to 1.14.6-2 * Fri Sep 23 2022 chendexi - 1.14.6-1 - Initial package