1 | Summary: A GNU tool for automatically configuring source code
|
---|
2 | Name: autoconf
|
---|
3 | Version: 2.65
|
---|
4 | Release: 4%{?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 | export M4="/@unixroot/usr/bin/m4.exe"
|
---|
62 | %configure \
|
---|
63 | "--cache-file=%{_topdir}/cache/%{name}-%{_target_cpu}.cache"
|
---|
64 | # not parallel safe
|
---|
65 | make
|
---|
66 |
|
---|
67 | #%check
|
---|
68 | # The following test is failing.
|
---|
69 | # 188: autotest.at:1195 parallel autotest and signal handling
|
---|
70 | # In test/autotest.at, under comment "Test PIPE", the exit code written
|
---|
71 | # to file "status" is 0. Report mailed to bug-autoconf.
|
---|
72 | #make check TESTSUITEFLAGS='-187 189-'
|
---|
73 |
|
---|
74 | %install
|
---|
75 | rm -rf ${RPM_BUILD_ROOT}
|
---|
76 | make install DESTDIR=$RPM_BUILD_ROOT
|
---|
77 |
|
---|
78 | rm -f $RPM_BUILD_ROOT%{_infodir}/dir
|
---|
79 |
|
---|
80 | %clean
|
---|
81 | rm -rf ${RPM_BUILD_ROOT}
|
---|
82 |
|
---|
83 | #%post
|
---|
84 | #/sbin/install-info %{_infodir}/autoconf.info %{_infodir}/dir || :
|
---|
85 |
|
---|
86 | #%preun
|
---|
87 | #if [ "$1" = 0 ]; then
|
---|
88 | # /sbin/install-info --del %{_infodir}/autoconf.info %{_infodir}/dir || :
|
---|
89 | #fi
|
---|
90 |
|
---|
91 | %files
|
---|
92 | %defattr(-,root,root,-)
|
---|
93 | %{_bindir}/*
|
---|
94 | %{_infodir}/autoconf.info*
|
---|
95 | # don't include standards.info, because it comes from binutils...
|
---|
96 | %exclude %{_infodir}/standards*
|
---|
97 | %{_datadir}/autoconf/
|
---|
98 | #%dir %{_datadir}/emacs/
|
---|
99 | #%{_datadir}/emacs/site-lisp/
|
---|
100 | %{_mandir}/man1/*
|
---|
101 | %doc AUTHORS COPYING ChangeLog NEWS README THANKS TODO
|
---|
102 |
|
---|
103 | %changelog
|
---|
104 | * Wed Oct 26 2011 yd
|
---|
105 | - fixed m4 path
|
---|