summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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/*