From 99e9924709cb0e4ec762e79a7f1aa8a39b1c5953 Mon Sep 17 00:00:00 2001 From: JinWang An Date: Tue, 28 Dec 2021 15:03:46 +0900 Subject: [PATCH] Bump to m4 1.4.19 Change-Id: Idcc1b0a05604e12a848ef21277a922429956d301 Signed-off-by: JinWang An --- packaging/m4.manifest | 5 +++++ packaging/m4.spec | 45 +++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 50 insertions(+) create mode 100644 packaging/m4.manifest create mode 100644 packaging/m4.spec diff --git a/packaging/m4.manifest b/packaging/m4.manifest new file mode 100644 index 0000000..017d22d --- /dev/null +++ b/packaging/m4.manifest @@ -0,0 +1,5 @@ + + + + + diff --git a/packaging/m4.spec b/packaging/m4.spec new file mode 100644 index 0000000..c11b2cd --- /dev/null +++ b/packaging/m4.spec @@ -0,0 +1,45 @@ +Name: m4 +Version: 1.4.19 +Release: 0 +License: GPL-3.0+ +Summary: GNU m4 +Url: http://www.gnu.org/software/m4/ +Group: Development/Languages/Other +Source: http://ftp.gnu.org/pub/gnu/m4/%{name}-%{version}.tar.bz2 +Source1001: m4.manifest +Provides: base:/usr/bin/m4 +BuildRoot: %{_tmppath}/%{name}-%{version}-build + +%description +GNU m4 is an implementation of the traditional Unix macro processor. + +%prep +%setup -q +cp %{SOURCE1001} . + +%build +%configure \ + --without-included-regex \ + gl_cv_func_isnanl_works=yes \ + gl_cv_func_printf_directive_n=yes \ + ac_cv_sys_stack_overflow_works=yes \ + ac_cv_sys_xsi_stack_overflow_heuristic=yes \ + CFLAGS="-fPIE" CPPFLAGS="-fPIE" LDFLAGS="-pie" +export + +make %{?_smp_mflags} + +%check +make %{?_smp_mflags} check || true + +%install +%make_install + +%files +%manifest %{name}.manifest +%defattr(-,root,root) +%doc COPYING +%{_bindir}/* +%doc %{_infodir}/*.gz +%{_mandir}/*/* +%{_prefix}/share/locale/* -- 2.7.4