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 Patch1:         m4-stdio.in.patch
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 %patch1 -p1
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 make %{?_smp_mflags}
26
27 %check
28 make %{?_smp_mflags} check || true
29
30 %install
31 %make_install
32
33 %files
34 %defattr(-,root,root)
35 %doc README COPYING
36 %{_bindir}/*
37 %doc %{_infodir}/*.gz
38 %{_mandir}/*/*
39