| 1 | Summary: A GNU tool for automatically configuring source code
|
|---|
| 2 | Name: autoconf
|
|---|
| 3 | Version: 2.65
|
|---|
| 4 | Release: 3%{?dist}
|
|---|
| 5 | License: GPLv2+ and GFDL
|
|---|
| 6 | Group: Development/Tools
|
|---|
| 7 | Source: http://ftp.gnu.org/gnu/autoconf/autoconf-%{version}.tar.xz
|
|---|
| 8 | #Source1: filter-provides-automake.sh
|
|---|
| 9 | #Source2: filter-requires-automake.sh
|
|---|
| 10 | URL: http://www.gnu.org/software/autoconf/
|
|---|
| 11 | BuildArch: noarch
|
|---|
| 12 | BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|---|
| 13 |
|
|---|
| 14 | # m4 >= 1.4.6 is required, >= 1.4.13 is recommended:
|
|---|
| 15 | BuildRequires: m4 >= 1.4.13
|
|---|
| 16 | Requires: m4 >= 1.4.13
|
|---|
| 17 | #BuildRequires: emacs
|
|---|
| 18 | #Requires(post): /sbin/install-info
|
|---|
| 19 | #Requires(preun): /sbin/install-info
|
|---|
| 20 |
|
|---|
| 21 | # for check only:
|
|---|
| 22 | #BuildRequires: automake libtool gcc-gfortran
|
|---|
| 23 | #%if 0%{?fedora}
|
|---|
| 24 | #BuildRequires: erlang
|
|---|
| 25 | #%endif
|
|---|
| 26 |
|
|---|
| 27 | Patch0: autoconf-os2.diff
|
|---|
| 28 |
|
|---|
| 29 | # Make AC_FUNC_MMAP work with C++ again.
|
|---|
| 30 | # Committed to Autoconf git soon after 2.65.
|
|---|
| 31 | #Patch1: autoconf_ac_func_mmap.patch
|
|---|
| 32 |
|
|---|
| 33 | # filter out bogus perl(Autom4te*) dependencies
|
|---|
| 34 | #define _use_internal_dependency_generator 0
|
|---|
| 35 | #define __find_provides %{SOURCE1}
|
|---|
| 36 | #define __find_requires %{SOURCE2}
|
|---|
| 37 |
|
|---|
| 38 | %description
|
|---|
| 39 | GNU's Autoconf is a tool for configuring source code and Makefiles.
|
|---|
| 40 | Using Autoconf, programmers can create portable and configurable
|
|---|
| 41 | packages, since the person building the package is allowed to
|
|---|
| 42 | specify various configuration options.
|
|---|
| 43 |
|
|---|
| 44 | You should install Autoconf if you are developing software and
|
|---|
| 45 | would like to create shell scripts that configure your source code
|
|---|
| 46 | packages. If you are installing Autoconf, you will also need to
|
|---|
| 47 | install the GNU m4 package.
|
|---|
| 48 |
|
|---|
| 49 | Note that the Autoconf package is not required for the end-user who
|
|---|
| 50 | may be configuring software with an Autoconf-generated script;
|
|---|
| 51 | Autoconf is only required for the generation of the scripts, not
|
|---|
| 52 | their use.
|
|---|
| 53 |
|
|---|
| 54 | %prep
|
|---|
| 55 | %setup -q
|
|---|
| 56 | %patch0 -p1 -b .os2~
|
|---|
| 57 |
|
|---|
| 58 | %build
|
|---|
| 59 | export CONFIG_SHELL="/bin/sh"
|
|---|
| 60 | export PERL="/@unixroot/usr/bin/perl.exe"
|
|---|
| 61 | %configure \
|
|---|
| 62 | "--cache-file=%{_topdir}/cache/%{name}-%{_target_cpu}.cache"
|
|---|
| 63 | # not parallel safe
|
|---|
| 64 | make
|
|---|
| 65 |
|
|---|
| 66 | #%check
|
|---|
| 67 | # The following test is failing.
|
|---|
| 68 | # 188: autotest.at:1195 parallel autotest and signal handling
|
|---|
| 69 | # In test/autotest.at, under comment "Test PIPE", the exit code written
|
|---|
| 70 | # to file "status" is 0. Report mailed to bug-autoconf.
|
|---|
| 71 | #make check TESTSUITEFLAGS='-187 189-'
|
|---|
| 72 |
|
|---|
| 73 | %install
|
|---|
| 74 | rm -rf ${RPM_BUILD_ROOT}
|
|---|
| 75 | make install DESTDIR=$RPM_BUILD_ROOT
|
|---|
| 76 |
|
|---|
| 77 | rm -f $RPM_BUILD_ROOT%{_infodir}/dir
|
|---|
| 78 |
|
|---|
| 79 | %clean
|
|---|
| 80 | rm -rf ${RPM_BUILD_ROOT}
|
|---|
| 81 |
|
|---|
| 82 | #%post
|
|---|
| 83 | #/sbin/install-info %{_infodir}/autoconf.info %{_infodir}/dir || :
|
|---|
| 84 |
|
|---|
| 85 | #%preun
|
|---|
| 86 | #if [ "$1" = 0 ]; then
|
|---|
| 87 | # /sbin/install-info --del %{_infodir}/autoconf.info %{_infodir}/dir || :
|
|---|
| 88 | #fi
|
|---|
| 89 |
|
|---|
| 90 | %files
|
|---|
| 91 | %defattr(-,root,root,-)
|
|---|
| 92 | %{_bindir}/*
|
|---|
| 93 | %{_infodir}/autoconf.info*
|
|---|
| 94 | # don't include standards.info, because it comes from binutils...
|
|---|
| 95 | %exclude %{_infodir}/standards*
|
|---|
| 96 | %{_datadir}/autoconf/
|
|---|
| 97 | #%dir %{_datadir}/emacs/
|
|---|
| 98 | #%{_datadir}/emacs/site-lisp/
|
|---|
| 99 | %{_mandir}/man1/*
|
|---|
| 100 | %doc AUTHORS COPYING ChangeLog NEWS README THANKS TODO
|
|---|
| 101 |
|
|---|
| 102 | %changelog
|
|---|