File automake-testsuite.spec of Package automake

# spec file for package automake-testsuite
# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via

# PLEASE run in this directory before submitting
# this package. Otherwise the .spec and .changes for automake-testsuite
# aren't updated.

Name:           automake-testsuite
BuildRequires:  autoconf >= 2.69
BuildRequires:  bison
BuildRequires:  gcc-c++
BuildRequires:  gcc-fortran
BuildRequires:  xz
%if "%{name}" == "automake-testsuite"
BuildRequires:  libtool
Requires:       libtool
BuildRequires:  flex
Requires:       flex
BuildRequires:  expect
Requires:       expect
Requires:       autoconf >= 2.69
Requires:       info
Version:        1.13.4
Release:        0
Summary:        A Program for Automatically Generating GNU-Style Files
License:        GPL-2.0+
Group:          Development/Tools/Building
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
Source1:        automake-rpmlintrc
Patch2:         automake-require_file.patch
Patch3:         automake-1.13.4-fix-primary-prefix-invalid-couples-test.patch
Patch100:       automake-SuSE.patch
BuildArch:      noarch

Automake is a tool for automatically generating "" files
from "" files.  "" is a series of "make" macro
definitions (with rules occasionally thrown in).  The generated
"" files are compatible with the GNU Makefile standards.

%setup -q -n automake-%{version}
%patch3 -p1

%configure --docdir=%{_docdir}/%{name}
make %{?_smp_mflags}

%if "%{name}" == "automake-testsuite"

# Some architectures can't keep up the pace.
%ifnarch alpha %arm
make check VERBOSE=1


make install DESTDIR=%{buildroot}
mkdir %{buildroot}/etc
echo /usr/local/share/aclocal >%{buildroot}/etc/aclocal_dirlist
ln -s /etc/aclocal_dirlist %{buildroot}/usr/share/aclocal/dirlist
install -m644 AUTHORS COPYING ChangeLog NEWS README THANKS %{buildroot}%{_docdir}/%{name}
# info's dir file is not auto ignored on some systems
rm -rf %{buildroot}%{_infodir}/dir
#name == automake

%install_info --info-dir=%{_infodir} %{_infodir}/

%install_info_delete --info-dir=%{_infodir} %{_infodir}/

%if "%{name}" == "automake"

%doc %{_docdir}/%{name}
%doc %{_infodir}/*.gz
%doc %{_mandir}/man1/*
%config /etc/aclocal_dirlist

openSUSE Build Service is sponsored by