[bd8f4d8] | 1 | %define rpmvers 2.61 |
---|
| 2 | %define srcvers 2.61 |
---|
[a26364de] | 3 | |
---|
| 4 | %if "%{_prefix}" != "/usr" |
---|
[727e8469] | 5 | %define name @rpmprefix@autoconf |
---|
[a26364de] | 6 | %else |
---|
[f391f6a] | 7 | %define name autoconf |
---|
[a26364de] | 8 | %endif |
---|
| 9 | |
---|
| 10 | |
---|
[f391f6a] | 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 |
---|
[a26364de] | 18 | |
---|
[727e8469] | 19 | %if "%{_prefix}" != "/usr" |
---|
| 20 | Obsoletes: @rpmprefix@autoconf-rtems < %{version}-%{release} |
---|
| 21 | Provides: @rpmprefix@autoconf-rtems = %{version}-%{release} |
---|
| 22 | %endif |
---|
| 23 | |
---|
[a26364de] | 24 | BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) |
---|
[f391f6a] | 25 | BuildArch: noarch |
---|
| 26 | BuildRequires: perl m4 gawk emacs |
---|
| 27 | Requires: m4 gawk |
---|
[a26364de] | 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 | |
---|
[843ee5d] | 49 | # Work around rpm inserting bogus perl-module deps |
---|
| 50 | cat << \EOF > %{name}-prov |
---|
| 51 | #!/bin/sh |
---|
| 52 | %{__perl_provides} $* |\ |
---|
| 53 | sed -e '/^perl(Autom4te/d' |
---|
| 54 | EOF |
---|
| 55 | %define __perl_provides %{_builddir}/autoconf-%{srcvers}/%{name}-prov |
---|
| 56 | chmod +x %{__perl_provides} |
---|
| 57 | |
---|
| 58 | cat << \EOF > %{name}-requ |
---|
| 59 | #!/bin/sh |
---|
| 60 | %{__perl_requires} $* |\ |
---|
| 61 | sed -e '/^perl(Autom4te/d' |
---|
| 62 | EOF |
---|
| 63 | %define __perl_requires %{_builddir}/autoconf-%{srcvers}/%{name}-requ |
---|
| 64 | chmod +x %{__perl_requires} |
---|
| 65 | |
---|
[a26364de] | 66 | %build |
---|
| 67 | ./configure --prefix=%{_prefix} --infodir=%{_infodir} --mandir=%{_mandir} \ |
---|
| 68 | --bindir=%{_bindir} --datadir=%{_datadir} |
---|
| 69 | make |
---|
| 70 | |
---|
| 71 | %install |
---|
| 72 | rm -rf "${RPM_BUILD_ROOT}" |
---|
| 73 | make DESTDIR=${RPM_BUILD_ROOT} install |
---|
| 74 | |
---|
| 75 | # Create this directory to prevent the corresponding line |
---|
| 76 | # in %%files below to fail |
---|
| 77 | mkdir -p ${RPM_BUILD_ROOT}%{_datadir}/emacs/site-lisp |
---|
| 78 | |
---|
| 79 | # RTEMS's standards.info comes from binutils |
---|
| 80 | rm -f $RPM_BUILD_ROOT%{_infodir}/standards.info* |
---|
| 81 | |
---|
[6c873da] | 82 | rm -f $RPM_BUILD_ROOT%{_infodir}/dir |
---|
| 83 | touch $RPM_BUILD_ROOT%{_infodir}/dir |
---|
[a26364de] | 84 | |
---|