source: rtems/contrib/crossrpms/autotools/autoconf.add @ 0973a00

4.8
Last change on this file since 0973a00 was 0973a00, checked in by Ralf Corsepius <ralf.corsepius@…>, on 07/26/09 at 06:09:18

Sync with rtems-4.9.

  • Property mode set to 100644
File size: 2.4 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
34@SOURCES@
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%{?PATCH0:%patch0 -p1}
52
53# Work around rpm inserting bogus perl-module deps
54cat << \EOF > %{name}-prov
55#!/bin/sh
56%{__perl_provides} $* |\
57    sed -e '/^perl(Autom4te/d'
58EOF
59%define __perl_provides %{_builddir}/autoconf-%{srcvers}/%{name}-prov
60chmod +x %{__perl_provides}
61
62cat << \EOF > %{name}-requ
63#!/bin/sh
64%{__perl_requires} $* |\
65    sed -e '/^perl(Autom4te/d'
66EOF
67%define __perl_requires %{_builddir}/autoconf-%{srcvers}/%{name}-requ
68chmod +x %{__perl_requires}
69
70%build
71./configure --prefix=%{_prefix} --infodir=%{_infodir} --mandir=%{_mandir} \
72  --bindir=%{_bindir} --datadir=%{_datadir}
73make
74
75%install
76rm -rf "${RPM_BUILD_ROOT}"
77make DESTDIR=${RPM_BUILD_ROOT} install
78
79# Create this directory to prevent the corresponding line
80# in %%files below to fail
81mkdir -p ${RPM_BUILD_ROOT}%{_datadir}/emacs/site-lisp
82
83# RTEMS's standards.info comes from binutils
84rm -f $RPM_BUILD_ROOT%{_infodir}/standards.info*
85
86rm -f $RPM_BUILD_ROOT%{_infodir}/dir
87touch $RPM_BUILD_ROOT%{_infodir}/dir
88
Note: See TracBrowser for help on using the repository browser.