File autoconf.spec of Package autoconf-v269

%global __requires_exclude ^perl\\(Autom4te::
%global __provides_exclude ^perl\\(Autom4te::

Name:           autoconf
Version:        2.69
Release:        1
Summary:        An extensible package to automatically configure software source code packages
License:        GPLv2+ and GPLv3+ and GFDL
URL:            https://www.gnu.org/software/%{name}/
Source0:        %{name}-%{version}.tar.gz

# four patches backport from upstream to solve test suite failure
#fix the failure of test 38 autotools and whitespace in file names


BuildArch:      noarch

BuildRequires:  m4 perl help2man
BuildRequires:  autoconf automake libtool python3
Requires:       m4
Requires(post): info
Requires(preun):info

%package help
Summary: Help documents for autoconf
BuildArch: noarch

%description help
Help documents for autoconf.

%description
Autoconf is an extensible package of M4 macros that produce shell scripts to automatically
configure software source code packages. These scripts can adapt the packages to many kinds
of UNIX-like systems without manual user intervention. Autoconf creates a configuration script
for a package from a template file that lists the operating system features that the package
can use, in the form of M4 macro calls.

%prep
%autosetup -n %{name}-%{version}

%build
export CFLAGS="%{optflags} -Wno-error -std=gnu11"
export CXXFLAGS="%{optflags} -Wno-error"

chmod +x ./configure
%configure
%make_build

%check
make %{?_smp_mflags} check || :

%install
%make_install

%post help
install_info_bin="$(command -v install-info || true)"
if [ -n "$install_info_bin" ] && [ -f %{_infodir}/autoconf.info ]; then
    "$install_info_bin" %{_infodir}/autoconf.info %{_infodir}/dir || :
fi

%preun help
install_info_bin="$(command -v install-info || true)"
if [ "$1" = 0 ] && [ -n "$install_info_bin" ]; then
    "$install_info_bin" --delete %{_infodir}/autoconf.info %{_infodir}/dir || :
fi

%files
%doc  ChangeLog README THANKS
%license COPYING* AUTHORS doc/autoconf.info
%{_bindir}/*
%{_datadir}/autoconf/
# emacs site-lisp files excluded (emacs not available)
%exclude %{_infodir}/standards*

%files help
%doc NEWS TODO
%{_infodir}/autoconf.info*
%{_mandir}/man1/*
%exclude %{_infodir}/dir


%changelog
* Sat Jan 4 2020 openEuler Buildteam <buildteam@openeuler.org> - 2.69-30
- Strengthen sources and patches

* Fri Oct 11 2019 openEuler Buildteam <buildteam@openeuler.org> - 2.69-29
- Package Init
openSUSE Build Service is sponsored by