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

Last change on this file since 360 was 230, checked in by Yuri Dario, 14 years ago

spec: autoconf fixed m4 path.

File size: 3.0 KB
Line 
1Summary: A GNU tool for automatically configuring source code
2Name: autoconf
3Version: 2.65
4Release: 4%{?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"
60export PERL="/@unixroot/usr/bin/perl.exe"
61export M4="/@unixroot/usr/bin/m4.exe"
62%configure \
63 "--cache-file=%{_topdir}/cache/%{name}-%{_target_cpu}.cache"
64# not parallel safe
65make
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
75rm -rf ${RPM_BUILD_ROOT}
76make install DESTDIR=$RPM_BUILD_ROOT
77
78rm -f $RPM_BUILD_ROOT%{_infodir}/dir
79
80%clean
81rm -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
Note: See TracBrowser for help on using the repository browser.