File autoconf213.spec of Package autoconf213

# norootforbuild

Name:           autoconf213
# patches and other bits and pieces taken from fedora
Version:        2.13
Release:        0
Summary:        Autoconf 2.13, useful for developing Mozilla apps
Group:          Development/Tools/Building
License:        GNU General Public License (GPL)
Source0:        autoconf-2.13.tar.gz
Patch0:         autoconf213-destdir.patch
Patch1:         autoconf213-versioning.patch
Patch2:         autoconf213-info.patch
Buildrequires:  texinfo
BuildRequires:  m4 >= 1.1
BuildRequires:  perl
BuildRequires:  gawk
Requires:       /bin/sh 
Requires:       perl 
Requires:       gawk
Requires:       m4 >= 1.1
Requires:       mktemp
Requires(post): /sbin/install-info
Requires(preun): /sbin/install-info
BuildRoot:      %{_tmppath}/%{_name}-%{version}-build


%description
GNU Autoconf is a tool for configuring source code and makefiles. Using
autoconf, programmers can create portable and configurable packages,
because the person building the package is allowed to specify various
configuration options.

You should install autoconf if you are developing software and would
like to create shell scripts to 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 -n autoconf-2.13
%patch0 -p1
%patch1 -p1
%patch2 -p1
mv autoconf.texi autoconf213.texi
rm -f autoconf.info

%build
%configure \
    --program-suffix=-2.13
make

%install
# %makeinstall
make install DESTDIR=$RPM_BUILD_ROOT
# the coding standards info file is provided by other packages
rm -f $RPM_BUILD_ROOT/%{_infodir}/standards*

%post
/sbin/install-info %{_infodir}/%{name}.info %{_infodir}/dir || :

%preun
if [ "$1" = 0 ]; then
    /sbin/install-info --delete %{_infodir}/%{name}.info %{_infodir}/dir || :
fi

%files
%defattr(-, root, root)
%doc AUTHORS COPYING NEWS README TODO
%{_bindir}/*
%{_datadir}/autoconf-2.13
%{_infodir}/*

%changelog
openSUSE Build Service is sponsored by