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