Accepting request 535132 from home:jayvdb:autotools

- 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

OBS-URL: https://build.opensuse.org/request/show/535132
OBS-URL: https://build.opensuse.org/package/show/Base:System/m4?expand=0&rev=37
This commit is contained in:
Marcus Meissner 2017-10-19 09:03:31 +00:00 committed by Git OBS Bridge
parent 87ad255f8d
commit 8c18ef0c11
2 changed files with 15 additions and 0 deletions

View File

@ -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

View File

@ -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}