Add %_configure_disable_silent_rules

Adds %_configure_disable_silent_rules, defaulting to 0, to optionally
enable the passing of --disable-silent-rules to configure scripts.
This commit is contained in:
Jason Tibbitts 2016-10-03 12:55:00 -05:00
parent 4824deaead
commit a0145ecd2f
3 changed files with 8 additions and 1 deletions

2
macros
View File

@ -26,6 +26,7 @@
#
%_configure_gnuconfig_hack 1
%_configure_libtool_hardening_hack 1
%_configure_disable_silent_rules 0
%configure \
CFLAGS="${CFLAGS:-%optflags}" ; export CFLAGS ; \
CXXFLAGS="${CXXFLAGS:-%optflags}" ; export CXXFLAGS ; \
@ -42,6 +43,7 @@
%{_configure} --build=%{_build} --host=%{_host} \\\
--program-prefix=%{?_program_prefix} \\\
--disable-dependency-tracking \\\
%{?_configure_disable_silent_rules:--disable-silent-rules} \\\
--prefix=%{_prefix} \\\
--exec-prefix=%{_exec_prefix} \\\
--bindir=%{_bindir} \\\

View File

@ -6,7 +6,7 @@
Summary: Red Hat specific rpm configuration files
Name: redhat-rpm-config
Version: 45
Version: 46
Release: 1%{?dist}
# No version specified.
License: GPL+
@ -144,6 +144,10 @@ install -p -m 755 -t %{buildroot}%{_rpmconfigdir} kmod.prov
%{_rpmconfigdir}/macros.d/macros.kmp
%changelog
* Mon Oct 03 2016 Jason L Tibbitts III <tibbs@math.uh.edu> - 46-1
- Allow %%configure to optionally pass --disable-silent-rules. Define
%%_configure_disable_silent_rules (defaulting to 0) to control this.
* Wed Sep 14 2016 Jason L Tibbitts III <tibbs@math.uh.edu> - 45-1
- Add dependency on qt5-srpm-macros.

1
rpmlint.cf Normal file
View File

@ -0,0 +1 @@
addFilter("no-%build-section")