forked from Imagelibrary/rtems
90 lines
2.4 KiB
Plaintext
90 lines
2.4 KiB
Plaintext
%define rpmvers 2.60
|
|
%define srcvers 2.60
|
|
|
|
%define _name autoconf
|
|
|
|
%if "%{_prefix}" != "/usr"
|
|
%define name @rpmprefix@%{_name}-rtems
|
|
%else
|
|
%define name %{_name}
|
|
%endif
|
|
|
|
|
|
Name: %{name}
|
|
License: GPL
|
|
URL: http://www.gnu.org/software/autoconf
|
|
Group: @rpmgroup@
|
|
Version: %{rpmvers}
|
|
Release: 0%{?dist}
|
|
Summary: Tool for automatically generating GNU style Makefile.in's
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
BuildArch: noarch
|
|
BuildRequires: perl m4 gawk emacs
|
|
Requires: m4 gawk
|
|
Requires(post): /sbin/install-info
|
|
Requires(preun): /sbin/install-info
|
|
|
|
Source: autoconf-%{srcvers}.tar.bz2
|
|
|
|
%description
|
|
GNU's Autoconf is a tool for configuring source code and Makefiles.
|
|
Using Autoconf, programmers can create portable and configurable
|
|
packages, since the person building the package is allowed to
|
|
specify various configuration options.
|
|
You should install Autoconf if you are developing software and you'd
|
|
like to use it to create shell scripts which will configure your
|
|
source code packages.
|
|
Note that the Autoconf package is not required for the end user who
|
|
may be configuring software with an Autoconf-generated script;
|
|
Autoconf is only required for the generation of the scripts, not
|
|
their use.
|
|
|
|
%prep
|
|
%setup -q -n %{_name}-%{srcvers}
|
|
|
|
%build
|
|
./configure --prefix=%{_prefix} --infodir=%{_infodir} --mandir=%{_mandir} \
|
|
--bindir=%{_bindir} --datadir=%{_datadir}
|
|
make
|
|
|
|
%install
|
|
rm -rf "${RPM_BUILD_ROOT}"
|
|
make DESTDIR=${RPM_BUILD_ROOT} install
|
|
|
|
# Create this directory to prevent the corresponding line
|
|
# in %%files below to fail
|
|
mkdir -p ${RPM_BUILD_ROOT}%{_datadir}/emacs/site-lisp
|
|
|
|
rm -f $RPM_BUILD_ROOT%{_infodir}/dir
|
|
touch $RPM_BUILD_ROOT%{_infodir}/dir
|
|
|
|
gzip -9qf $RPM_BUILD_ROOT%{_infodir}/autoconf.info* 2>/dev/null
|
|
# RTEMS's standards.info comes from binutils
|
|
rm -f $RPM_BUILD_ROOT%{_infodir}/standards.info*
|
|
|
|
gzip -9qf $RPM_BUILD_ROOT%{_mandir}/man?/* 2>/dev/null
|
|
|
|
%clean
|
|
rm -rf "$RPM_BUILD_ROOT"
|
|
|
|
%post
|
|
install-info --info-dir=%{_infodir} %{_infodir}/autoconf.info.gz
|
|
|
|
%preun
|
|
if [ $1 -eq 0 ]; then
|
|
install-info --delete --info-dir=%{_infodir} %{_infodir}/autoconf.info.gz
|
|
fi
|
|
|
|
%files
|
|
%defattr(-,root,root)
|
|
# %doc AUTHORS COPYING ChangeLog NEWS README THANKS
|
|
%{_bindir}/*
|
|
%dir %{_infodir}
|
|
%ghost %{_infodir}/dir
|
|
|
|
%{_infodir}/autoconf.info*
|
|
%{_mandir}/man?/*
|
|
%{_datadir}/autoconf
|
|
%exclude %{_datadir}/emacs/site-lisp
|