add packaging
[platform/upstream/m4.git] / packaging / m4.spec
1 Name:           m4
2 Version:        1.4.16
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 Provides:       base:/usr/bin/m4
10 BuildRoot:      %{_tmppath}/%{name}-%{version}-build
11
12 %description
13 GNU m4 is an implementation of the traditional Unix macro processor.
14
15 %prep
16 %setup -q
17
18 %build
19 %configure \
20             --without-included-regex \
21             gl_cv_func_isnanl_works=yes \
22             gl_cv_func_printf_directive_n=yes
23 make %{?_smp_mflags}
24
25 %check
26 make %{?_smp_mflags} check || true
27
28 %install
29 %make_install
30
31 %files
32 %defattr(-,root,root)
33 %doc COPYING
34 %{_bindir}/*
35 %doc %{_infodir}/*.gz
36 %{_mandir}/*/*
37