source: rtems/contrib/crossrpms/autotools/autoconf.add @ 843ee5d

4.104.114.84.95
Last change on this file since 843ee5d was 843ee5d, checked in by Ralf Corsepius <ralf.corsepius@…>, on 02/14/07 at 16:46:18

Add req/prov filters

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