1 | %define rpmvers 2.61 |
---|
2 | %define srcvers 2.61 |
---|
3 | |
---|
4 | %if "%{_prefix}" != "/usr" |
---|
5 | %define name @rpmprefix@autoconf |
---|
6 | %else |
---|
7 | %define name autoconf |
---|
8 | %endif |
---|
9 | |
---|
10 | |
---|
11 | Name: %{name} |
---|
12 | License: GPL |
---|
13 | URL: http://www.gnu.org/software/autoconf |
---|
14 | Group: Development/Tools |
---|
15 | Version: %{rpmvers} |
---|
16 | Release: @AUTOCONF_RPMREL@%{?dist} |
---|
17 | Summary: Tool for automatically generating GNU style Makefile.in's |
---|
18 | |
---|
19 | %if "%{_prefix}" != "/usr" |
---|
20 | Obsoletes: @rpmprefix@autoconf-rtems < %{version}-%{release} |
---|
21 | Provides: @rpmprefix@autoconf-rtems = %{version}-%{release} |
---|
22 | %endif |
---|
23 | |
---|
24 | BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) |
---|
25 | BuildArch: noarch |
---|
26 | BuildRequires: perl m4 gawk emacs |
---|
27 | Requires: m4 gawk |
---|
28 | Requires(post): /sbin/install-info |
---|
29 | Requires(preun): /sbin/install-info |
---|
30 | |
---|
31 | Source0: ftp://ftp.gnu.org/gnu/autoconf/autoconf-%{srcvers}.tar.bz2 |
---|
32 | |
---|
33 | %description |
---|
34 | GNU's Autoconf is a tool for configuring source code and Makefiles. |
---|
35 | Using Autoconf, programmers can create portable and configurable |
---|
36 | packages, since the person building the package is allowed to |
---|
37 | specify various configuration options. |
---|
38 | You should install Autoconf if you are developing software and you'd |
---|
39 | like to use it to create shell scripts which will configure your |
---|
40 | source code packages. |
---|
41 | Note that the Autoconf package is not required for the end user who |
---|
42 | may be configuring software with an Autoconf-generated script; |
---|
43 | Autoconf is only required for the generation of the scripts, not |
---|
44 | their use. |
---|
45 | |
---|
46 | %prep |
---|
47 | %setup -q -n autoconf-%{srcvers} |
---|
48 | |
---|
49 | %build |
---|
50 | ./configure --prefix=%{_prefix} --infodir=%{_infodir} --mandir=%{_mandir} \ |
---|
51 | --bindir=%{_bindir} --datadir=%{_datadir} |
---|
52 | make |
---|
53 | |
---|
54 | %install |
---|
55 | rm -rf "${RPM_BUILD_ROOT}" |
---|
56 | make DESTDIR=${RPM_BUILD_ROOT} install |
---|
57 | |
---|
58 | # Create this directory to prevent the corresponding line |
---|
59 | # in %%files below to fail |
---|
60 | mkdir -p ${RPM_BUILD_ROOT}%{_datadir}/emacs/site-lisp |
---|
61 | |
---|
62 | # RTEMS's standards.info comes from binutils |
---|
63 | rm -f $RPM_BUILD_ROOT%{_infodir}/standards.info* |
---|
64 | |
---|
65 | rm -f $RPM_BUILD_ROOT%{_infodir}/dir |
---|
66 | touch $RPM_BUILD_ROOT%{_infodir}/dir |
---|
67 | |
---|