source: spec/trunk/SPECS/autoconf.spec@ 150

Last change on this file since 150 was 150, checked in by Yuri Dario, 15 years ago

spec: add target cpu field in cache file.

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