blob: 48fd5426a93404a83626c12422aac4996aa31a23 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
|
#
# Autoconf 2.xx Version 1.
#
# This configuration file configure's, make's and install's autoconf
#
%ifn %{defined _internal_autotools}
%define _internal_autotools no
%endif
Name: autoconf-%{autoconf_version}-%{_host}-%{release}
Summary: Autoconf v%{autoconf_version} for host %{_host}
Version: %{autoconf_version}
Release: %{release}
URL: http://www.gnu.org/software/autoconf/
BuildRoot: %{_tmppath}/%{name}-root-%(%{__id_u} -n)
#
# Source
#
Source0: ftp://ftp.gnu.org/gnu/autoconf/autoconf-%{autoconf_version}.tar.gz
VersionControl0: git clone git://git.sv.gnu.org/autoconf
#
# Prepare the source code.
#
%prep
%setup -q -c -n %{name}-%{version}
cd autoconf-%{autoconf_version}
%{?patch0:%patch0 -p1}
cd ..
%build
%if %{defined _internal_autotools_path}
export PATH="%{_internal_autotools_path}/bin:${PATH}"
%endif
cd autoconf-%{autoconf_version}
if test "%{_internal_autotools}" == "yes"; then
ac_prefix=%{_internal_autotools_path}
else
ac_prefix=%{_prefix}
fi
if test "%{_build}" != "%{_host}" ; then
CFLAGS_FOR_BUILD="-g -O2 -Wall"
fi
export CFLAGS CFLAGS_FOR_BUILD CC
CFLAGS="$SB_OPT_FLAGS" \
./configure \
--build=%{_build} --host=%{_host} \
--verbose --disable-nls \
--without-included-gettext \
--prefix=${ac_prefix}
%{__make} %{?_smp_mflags} all
unset CFLAGS_FOR_BUILD
cd ..
%install
export PATH="%{_bindir}:${PATH}"
%{__rmdir} $SB_BUILD_ROOT
cd autoconf-%{autoconf_version}
if test "%{_internal_autotools}" == "yes"; then
%{__make} install
else
%{__make} DESTDIR=$SB_BUILD_ROOT install
fi
cd ..
|