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