diff --git a/m4.changes b/m4.changes index 3fccfa8..8f3973d 100644 --- a/m4.changes +++ b/m4.changes @@ -1,3 +1,12 @@ +------------------------------------------------------------------- +Thu Oct 19 06:26:27 UTC 2017 - jayvdb@gmail.com + +- Explicitly remove %{_infodir}/dir before creating package to + allow builds on RHEL and derived Linux distributions +- Enable configure option --disable-dependency-tracking to + allow build on Mageia +- Add xz as BuildRequires to unpack source on SLE 11 + ------------------------------------------------------------------- Thu Feb 9 12:37:26 UTC 2017 - dimstar@opensuse.org diff --git a/m4.spec b/m4.spec index 07c3b21..de472ea 100644 --- a/m4.spec +++ b/m4.spec @@ -26,6 +26,7 @@ Url: https://www.gnu.org/software/m4/ Source0: https://ftp.gnu.org/pub/gnu/m4/%{name}-%{version}.tar.xz Source1: https://ftp.gnu.org/pub/gnu/m4/%{name}-%{version}.tar.xz.sig Source2: https://savannah.gnu.org/project/memberlist-gpgkeys.php?group=m4&download=1#/%{name}.keyring +BuildRequires: xz Requires(post): %{install_info_prereq} Requires(preun): %{install_info_prereq} Provides: base:%{_bindir}/m4 @@ -39,6 +40,9 @@ GNU m4 is an implementation of the traditional Unix macro processor. %build %configure \ --without-included-regex \ +%if 0%{?mageia} + --disable-dependency-tracking \ +%endif gl_cv_func_isnanl_works=yes \ gl_cv_func_printf_directive_n=yes \ gl_cv_func_printf_infinite_long_double=yes @@ -49,6 +53,8 @@ make %{?_smp_mflags} check %install %make_install +# info's dir file is not auto ignored on some systems +rm -rf %{buildroot}%{_infodir}/dir %post %install_info --info-dir=%{_infodir} %{_infodir}/%{name}.info%{ext_info}