| 1 | Summary: A GNU tool for automatically configuring source code
|
|---|
| 2 | Name: autoconf
|
|---|
| 3 | Version: 2.69
|
|---|
| 4 | Release: 2%{?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 | %define svn_url http://svn.netlabs.org/repos/ports/autoconf/trunk
|
|---|
| 15 | %define svn_rev 845
|
|---|
| 16 |
|
|---|
| 17 | Source: %{name}-%{version}-r%{svn_rev}.zip
|
|---|
| 18 |
|
|---|
| 19 | BuildRequires: gcc make subversion zip
|
|---|
| 20 |
|
|---|
| 21 | # m4 >= 1.4.6 is required, >= 1.4.13 is recommended:
|
|---|
| 22 | BuildRequires: m4 >= 1.4.13
|
|---|
| 23 | Requires: m4 >= 1.4.13
|
|---|
| 24 | #BuildRequires: emacs
|
|---|
| 25 | #Requires(post): /sbin/install-info
|
|---|
| 26 | #Requires(preun): /sbin/install-info
|
|---|
| 27 |
|
|---|
| 28 | # for autoreconf
|
|---|
| 29 | Requires: autoconf
|
|---|
| 30 |
|
|---|
| 31 | # for check only:
|
|---|
| 32 | #BuildRequires: automake libtool gcc-gfortran
|
|---|
| 33 | #%if 0%{?fedora}
|
|---|
| 34 | #BuildRequires: erlang
|
|---|
| 35 | #%endif
|
|---|
| 36 |
|
|---|
| 37 | # Make AC_FUNC_MMAP work with C++ again.
|
|---|
| 38 | # Committed to Autoconf git soon after 2.65.
|
|---|
| 39 | #Patch1: autoconf_ac_func_mmap.patch
|
|---|
| 40 |
|
|---|
| 41 | # filter out bogus perl(Autom4te*) dependencies
|
|---|
| 42 | #define _use_internal_dependency_generator 0
|
|---|
| 43 | #define __find_provides %{SOURCE1}
|
|---|
| 44 | #define __find_requires %{SOURCE2}
|
|---|
| 45 |
|
|---|
| 46 | %description
|
|---|
| 47 | GNU's Autoconf is a tool for configuring source code and Makefiles.
|
|---|
| 48 | Using Autoconf, programmers can create portable and configurable
|
|---|
| 49 | packages, since the person building the package is allowed to
|
|---|
| 50 | specify various configuration options.
|
|---|
| 51 |
|
|---|
| 52 | You should install Autoconf if you are developing software and
|
|---|
| 53 | would like to create shell scripts that configure your source code
|
|---|
| 54 | packages. If you are installing Autoconf, you will also need to
|
|---|
| 55 | install the GNU m4 package.
|
|---|
| 56 |
|
|---|
| 57 | Note that the Autoconf package is not required for the end-user who
|
|---|
| 58 | may be configuring software with an Autoconf-generated script;
|
|---|
| 59 | Autoconf is only required for the generation of the scripts, not
|
|---|
| 60 | their use.
|
|---|
| 61 |
|
|---|
| 62 | %prep
|
|---|
| 63 | %if %(sh -c 'if test -f "%{_sourcedir}/%{name}-%{version}-r%{svn_rev}.zip" ; then echo 1 ; else echo 0 ; fi')
|
|---|
| 64 | %setup -q
|
|---|
| 65 | %else
|
|---|
| 66 | %setup -n "%{name}-%{version}" -Tc
|
|---|
| 67 | svn export -r %{svn_rev} %{svn_url} . --force
|
|---|
| 68 | rm -f "%{_sourcedir}/%{name}-%{version}-r%{svn_rev}.zip"
|
|---|
| 69 | (cd .. && zip -SrX9 "%{_sourcedir}/%{name}-%{version}-r%{svn_rev}.zip" "%{name}-%{version}")
|
|---|
| 70 | %endif
|
|---|
| 71 |
|
|---|
| 72 | %build
|
|---|
| 73 |
|
|---|
| 74 | # make sure configure is updated to properly support OS/2
|
|---|
| 75 | autoreconf --verbose --install
|
|---|
| 76 |
|
|---|
| 77 | # we don't have makeinfo/help2man yet; fake them (this will wipe docs out)
|
|---|
| 78 | export MAKEINFO=:
|
|---|
| 79 | export HELP2MAN=:
|
|---|
| 80 |
|
|---|
| 81 | %configure
|
|---|
| 82 |
|
|---|
| 83 | # not parallel safe
|
|---|
| 84 | make
|
|---|
| 85 |
|
|---|
| 86 | #%check
|
|---|
| 87 | # The following test is failing.
|
|---|
| 88 | # 188: autotest.at:1195 parallel autotest and signal handling
|
|---|
| 89 | # In test/autotest.at, under comment "Test PIPE", the exit code written
|
|---|
| 90 | # to file "status" is 0. Report mailed to bug-autoconf.
|
|---|
| 91 | #make check TESTSUITEFLAGS='-187 189-'
|
|---|
| 92 |
|
|---|
| 93 | %install
|
|---|
| 94 | rm -rf ${RPM_BUILD_ROOT}
|
|---|
| 95 | make install DESTDIR=$RPM_BUILD_ROOT
|
|---|
| 96 |
|
|---|
| 97 | rm -f $RPM_BUILD_ROOT%{_infodir}/dir
|
|---|
| 98 |
|
|---|
| 99 | %clean
|
|---|
| 100 | rm -rf ${RPM_BUILD_ROOT}
|
|---|
| 101 |
|
|---|
| 102 | #%post
|
|---|
| 103 | #/sbin/install-info %{_infodir}/autoconf.info %{_infodir}/dir || :
|
|---|
| 104 |
|
|---|
| 105 | #%preun
|
|---|
| 106 | #if [ "$1" = 0 ]; then
|
|---|
| 107 | # /sbin/install-info --del %{_infodir}/autoconf.info %{_infodir}/dir || :
|
|---|
| 108 | #fi
|
|---|
| 109 |
|
|---|
| 110 | %files
|
|---|
| 111 | %defattr(-,root,root,-)
|
|---|
| 112 | %{_bindir}/*
|
|---|
| 113 | #%{_infodir}/autoconf.info*
|
|---|
| 114 | # don't include standards.info, because it comes from binutils...
|
|---|
| 115 | %exclude %{_infodir}/standards*
|
|---|
| 116 | %{_datadir}/autoconf/
|
|---|
| 117 | #%dir %{_datadir}/emacs/
|
|---|
| 118 | #%{_datadir}/emacs/site-lisp/
|
|---|
| 119 | %{_mandir}/man1/*
|
|---|
| 120 | %doc AUTHORS COPYING ChangeLog NEWS README THANKS TODO
|
|---|
| 121 |
|
|---|
| 122 | %changelog
|
|---|
| 123 | * Wed Sep 3 2014 Dmitriy Kuminov <coding@dmik.org> 2.69-2
|
|---|
| 124 | - Use /@unixroot in generated files instead of absolute paths to programs.
|
|---|
| 125 |
|
|---|
| 126 | * Fri Aug 29 2014 Dmitriy Kuminov <coding@dmik.org> 2.69-1
|
|---|
| 127 | - Update to version 2.69.
|
|---|
| 128 | - Fix PATH_SEPARATOR misdetection.
|
|---|
| 129 | - Remove annoying $ac_executable_extensions warning.
|
|---|
| 130 | - Apply various fixes to improve OS/2 and kLIBC support.
|
|---|
| 131 |
|
|---|
| 132 | * Wed Oct 26 2011 yd
|
|---|
| 133 | - fixed m4 path
|
|---|