File autoconf.spec of Package autoconf-v271
%global __requires_exclude ^perl\\(Autom4te::
%global __provides_exclude ^perl\\(Autom4te::
Name: autoconf
Version: 2.71
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
BuildArch: noarch
BuildRequires: m4 perl help2man gcc-c++
BuildRequires: autoconf automake libtool python3
Requires: m4 perl
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
* Fri Dec 31 2021 wangjie <wangjie375@huawei.com> - 2.71-2
- Type:enhancement
- ID:NA
- SUG:NA
- DESC:Add perl to resolve compilation failure
Add gcc-c++ to solve test failure
* Thu Dec 2 2021 wangjie <wangjie375@huawei.com> - 2.71-1
- Type:enhancement
- ID:NA
- SUG:NA
- DESC:Update autoconf to 2.71
* 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