!4 添加编译类型
From: @zhangchao13 Reviewed-by: @duyiwei7w Signed-off-by: @duyiwei7w
This commit is contained in:
commit
1715e564e8
25
0001-add-compile-option.patch
Normal file
25
0001-add-compile-option.patch
Normal file
@ -0,0 +1,25 @@
|
|||||||
|
From b67c8c1b249046b92966b0ad7768c07cbad59445 Mon Sep 17 00:00:00 2001
|
||||||
|
From: zhangchao13 <chaozhangm@isoftstone.com>
|
||||||
|
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
|
||||||
|
|
||||||
@ -1,14 +1,16 @@
|
|||||||
Name: mandoc
|
Name: mandoc
|
||||||
Version: 1.14.6
|
Version: 1.14.6
|
||||||
Release: 1
|
Release: 2
|
||||||
Summary: A suite of tools for compiling mdoc and man
|
Summary: A suite of tools for compiling mdoc and man
|
||||||
|
|
||||||
License: ISC
|
License: ISC
|
||||||
URL: https://mandoc.bsd.lv/
|
URL: https://mandoc.bsd.lv/
|
||||||
Source0: https://mandoc.bsd.lv/snapshots/mandoc-%{version}.tar.gz
|
Source0: https://mandoc.bsd.lv/snapshots/mandoc-%{version}.tar.gz
|
||||||
|
Patch0: 0001-add-compile-option.patch
|
||||||
|
|
||||||
BuildRequires: gcc
|
BuildRequires: gcc
|
||||||
BuildRequires: make
|
BuildRequires: make
|
||||||
|
BuildRequires: clang
|
||||||
BuildRequires: zlib-devel
|
BuildRequires: zlib-devel
|
||||||
|
|
||||||
# requirements for %%check
|
# requirements for %%check
|
||||||
@ -69,6 +71,7 @@ echo 'INSTALL_DATA="${INSTALL} -m 0644"' >> configure.local
|
|||||||
echo 'INSTALL_LIBMANDOC=1' >> configure.local
|
echo 'INSTALL_LIBMANDOC=1' >> configure.local
|
||||||
|
|
||||||
echo 'CFLAGS="%{optflags} -fPIC"' >> configure.local
|
echo 'CFLAGS="%{optflags} -fPIC"' >> configure.local
|
||||||
|
export CC=clang
|
||||||
./configure
|
./configure
|
||||||
%make_build
|
%make_build
|
||||||
|
|
||||||
@ -217,6 +220,8 @@ fi
|
|||||||
%{_mandir}/man3/tbl.3*
|
%{_mandir}/man3/tbl.3*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Thu Apr 6 2023 changzhangm <chaozhangm@isoftstone.com> - 1.14.6-2
|
||||||
|
- Update to 1.14.6-2
|
||||||
* Fri Sep 23 2022 chendexi <chendexi@kylinos.cn> - 1.14.6-1
|
* Fri Sep 23 2022 chendexi <chendexi@kylinos.cn> - 1.14.6-1
|
||||||
- Initial package
|
- Initial package
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user