File automake-testsuite.spec of Package automake

#
# spec file for package automake-testsuite (Version 1.11.1)
#
# Copyright (c) 2010 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 http://bugs.opensuse.org/
#

# norootforbuild


Name:           automake-testsuite
BuildRequires:  bison help2man
License:        GPLv2+
Group:          Development/Tools/Building
AutoReqProv:    on
PreReq:         %{install_info_prereq}
Requires:       autoconf >= 2.62
Version:        1.11.1
Release:        6
Summary:        A Program for Automatically Generating GNU-Style Makefile.in Files
Url:            http://www.gnu.org/software/automake
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
Source:         automake-%{version}.tar.bz2
Source1:        automake-rpmlintrc
Patch1:         automake-SuSE.patch
Patch3:         automake-require_file.patch
BuildArch:      noarch

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



Authors:
--------
    David Mackenzie
    Tom Tromey  <tromey@cygnus.com>
    Alexandre Oliva
    Alexandre Duret-Lutz <adl@gnu.org>

%prep
%setup -q -n automake-%{version}
%patch1
%patch3

%build
%configure --docdir=%{_docdir}/%{name}
make %{?_smp_mflags};
%if "%{name}" == "automake-testsuite"

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

%install
%else

%install
%makeinstall
mkdir -p %{buildroot}/etc %{buildroot}/usr/share/aclocal
echo /usr/local/share/aclocal >%{buildroot}/etc/aclocal_dirlist
ln -s ../../../etc/aclocal_dirlist %{buildroot}/usr/share/aclocal/dirlist
mkdir -p %{buildroot}%{_mandir}/man1
perllibdir=lib help2man -S FSF ./aclocal > %{buildroot}%{_mandir}/man1/aclocal.1
perllibdir=lib help2man -S FSF ./automake > %{buildroot}%{_mandir}/man1/automake.1
install -m644 AUTHORS COPYING ChangeLog NEWS README THANKS %{buildroot}%{_docdir}/%{name}
#name == automake
%endif

%post
%install_info --info-dir=%{_infodir} %{_infodir}/automake.info.gz

%postun
%install_info_delete --info-dir=%{_infodir} %{_infodir}/automake.info.gz

%clean
rm -rf %{buildroot}
%if "%{name}" == "automake"

%files
%defattr(-,root,root)
%doc %{_docdir}/%{name}
%{_bindir}/*
%doc %{_infodir}/*.gz
%doc %{_mandir}/man1/*
%{_datadir}/aclocal*
%{_datadir}/automake-*
%config /etc/aclocal_dirlist
%endif

%changelog
openSUSE Build Service is sponsored by