source: rtems/contrib/crossrpms/autotools/autoconf.add @ 0b1ceac8

4.8
Last change on this file since 0b1ceac8 was 0b1ceac8, checked in by Ralf Corsepius <ralf.corsepius@…>, on 11/12/08 at 15:40:26

Merger from CVS-HEAD.

  • Property mode set to 100644
File size: 2.5 KB
Line 
1%define srcvers @AUTOCONF_VERS@
2%define rpmvers %{expand:%(echo "@AUTOCONF_VERS@" | tr - _ )}
3
4%if "%{_prefix}" != "/usr"
5%define name                    @rpmprefix@autoconf
6%else
7%define name                    autoconf
8%endif
9
10
11Name:           %{name}
12License:        GPL
13URL:            http://www.gnu.org/software/autoconf
14Group:          Development/Tools
15Version:        %{rpmvers}
16Release:        @AUTOCONF_RPMREL@
17Summary:        Tool for automatically generating GNU style Makefile.in's
18
19%if "%{_prefix}" != "/usr"
20Obsoletes:      @rpmprefix@autoconf-rtems < %{version}-%{release}
21Provides:       @rpmprefix@autoconf-rtems = %{version}-%{release}
22%endif
23
24BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
25BuildArch:      noarch
26BuildRequires:  perl m4 gawk emacs
27%if "%{version}" >= "2.62"
28BuildRequires:  m4 >= 1.4.5
29%endif
30Requires:       m4 gawk
31Requires(post):         /sbin/install-info
32Requires(preun):        /sbin/install-info
33
34Source0:        ftp://ftp.gnu.org/gnu/autoconf/autoconf-%{srcvers}.tar.bz2
35
36%description
37GNU's Autoconf is a tool for configuring source code and Makefiles.
38Using Autoconf, programmers can create portable and configurable
39packages, since the person building the package is allowed to
40specify various configuration options.
41You should install Autoconf if you are developing software and you'd
42like to use it to create shell scripts which will configure your
43source code packages.
44Note that the Autoconf package is not required for the end user who
45may be configuring software with an Autoconf-generated script;
46Autoconf is only required for the generation of the scripts, not
47their use.
48
49%prep
50%setup -q -n autoconf-%{srcvers}
51
52# Work around rpm inserting bogus perl-module deps
53cat << \EOF > %{name}-prov
54#!/bin/sh
55%{__perl_provides} $* |\
56    sed -e '/^perl(Autom4te/d'
57EOF
58%define __perl_provides %{_builddir}/autoconf-%{srcvers}/%{name}-prov
59chmod +x %{__perl_provides}
60
61cat << \EOF > %{name}-requ
62#!/bin/sh
63%{__perl_requires} $* |\
64    sed -e '/^perl(Autom4te/d'
65EOF
66%define __perl_requires %{_builddir}/autoconf-%{srcvers}/%{name}-requ
67chmod +x %{__perl_requires}
68
69%build
70./configure --prefix=%{_prefix} --infodir=%{_infodir} --mandir=%{_mandir} \
71  --bindir=%{_bindir} --datadir=%{_datadir}
72make
73
74%install
75rm -rf "${RPM_BUILD_ROOT}"
76make DESTDIR=${RPM_BUILD_ROOT} install
77
78# Create this directory to prevent the corresponding line
79# in %%files below to fail
80mkdir -p ${RPM_BUILD_ROOT}%{_datadir}/emacs/site-lisp
81
82# RTEMS's standards.info comes from binutils
83rm -f $RPM_BUILD_ROOT%{_infodir}/standards.info*
84
85rm -f $RPM_BUILD_ROOT%{_infodir}/dir
86touch $RPM_BUILD_ROOT%{_infodir}/dir
87
Note: See TracBrowser for help on using the repository browser.