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 %patch1 -p1
18
19 %build
20 %configure \
21             --without-included-regex \
22             gl_cv_func_isnanl_works=yes \
23             gl_cv_func_printf_directive_n=yes
24 make %{?_smp_mflags}
25
26 %check
27 make %{?_smp_mflags} check || true
28
29 %install
30 %make_install
31
32 %files
33 %defattr(-,root,root)
34 %doc COPYING
35 %{_bindir}/*
36 %doc %{_infodir}/*.gz
37 %{_mandir}/*/*
38