Bump to m4 1.4.19
[platform/upstream/m4.git] / packaging / m4.spec
1 Name:           m4
2 Version:        1.4.19
3 Release:        0
4 License:        GPL-3.0+
5 Summary:        GNU m4
6 Url:            http://www.gnu.org/software/m4/
7 Group:          Development/Languages/Other
8 Source:         http://ftp.gnu.org/pub/gnu/m4/%{name}-%{version}.tar.bz2
9 Source1001:     m4.manifest
10 Provides:       base:/usr/bin/m4
11 BuildRoot:      %{_tmppath}/%{name}-%{version}-build
12
13 %description
14 GNU m4 is an implementation of the traditional Unix macro processor.
15
16 %prep
17 %setup -q
18 cp %{SOURCE1001} .
19
20 %build
21 %configure \
22             --without-included-regex \
23             gl_cv_func_isnanl_works=yes \
24             gl_cv_func_printf_directive_n=yes \
25             ac_cv_sys_stack_overflow_works=yes \
26             ac_cv_sys_xsi_stack_overflow_heuristic=yes \
27         CFLAGS="-fPIE" CPPFLAGS="-fPIE" LDFLAGS="-pie"
28 export 
29
30 make %{?_smp_mflags}
31
32 %check
33 make %{?_smp_mflags} check || true
34
35 %install
36 %make_install
37
38 %files
39 %manifest %{name}.manifest
40 %defattr(-,root,root)
41 %doc COPYING
42 %{_bindir}/*
43 %doc %{_infodir}/*.gz
44 %{_mandir}/*/*
45 %{_prefix}/share/locale/*