summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJinWang An <jinwang.an@samsung.com>2021-12-28 15:03:46 +0900
committerJinWang An <jinwang.an@samsung.com>2021-12-28 15:04:43 +0900
commit99e9924709cb0e4ec762e79a7f1aa8a39b1c5953 (patch)
treea3ca0a0fe812817239fba31ab5d11ee55241a143
parentbbcce2d630bc94f06c99ff627cec033a3a6dcd93 (diff)
downloadm4-tizen_7.0_base_hotfix.tar.gz
m4-tizen_7.0_base_hotfix.tar.bz2
m4-tizen_7.0_base_hotfix.zip
Change-Id: Idcc1b0a05604e12a848ef21277a922429956d301 Signed-off-by: JinWang An <jinwang.an@samsung.com>
-rw-r--r--packaging/m4.manifest5
-rw-r--r--packaging/m4.spec45
2 files changed, 50 insertions, 0 deletions
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 @@
+<manifest>
+ <request>
+ <domain name="_"/>
+ </request>
+</manifest>
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/*