BR: make the test-related BR conditional

Do not build require testsuite BR when --without=check is passed.
Build requires automake also.

Version: 1.13.1-5
This commit is contained in:
Pavel Raiskup 2013-02-14 09:54:53 +01:00
parent ad2fdf8876
commit 4a8932e56f
1 changed files with 3 additions and 0 deletions

View File

@ -18,6 +18,7 @@ Patch2: %{name}-%{version}-non-existing-m4-dir.patch
URL: http://www.gnu.org/software/automake/
Requires: autoconf >= 2.65
BuildRequires: autoconf >= 2.65
BuildRequires: automake
Requires(post): /sbin/install-info
Requires(preun): /sbin/install-info
BuildArch: noarch
@ -27,11 +28,13 @@ Buildroot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
%bcond_without check
# for better tests coverage:
%if %{with check}
BuildRequires: libtool gettext-devel flex bison texinfo-tex texlive-dvips
BuildRequires: gcc-java java-devel-openjdk gcc-gfortran /usr/bin/g77
BuildRequires: dejagnu expect emacs imake python-docutils vala
BuildRequires: cscope python-virtualenv ncompress lzip sharutils help2man
BuildRequires: gcc-objc gcc-objc++
%endif
# the filtering macros are currently in /etc/rpm/macros.perl:
BuildRequires: perl-macros