Sophie

Sophie

distrib > Mandriva > 2006.0 > i586 > media > main-src > by-pkgid > e0a887acd4ebc26c31157ae47119be07 > files > 5

autoconf2.5-2.59-6mdk.src.rpm

%define name	autoconf2.5
%define version	2.59
%define release 6mdk

%define docheck 1
%{?_without_check: %global docheck 0}

# Factorize uses of autoconf libdir home and
# handle only one exception in rpmlint
%define scriptdir %{_datadir}/autotools

Name:		%{name}
Summary:	A GNU tool for automatically configuring source code.
Version:	%{version}
Release:	%{release}
Epoch:		1
License:	GPL
Group:		Development/Other
URL:		http://www.gnu.org/software/autoconf/
BuildRoot:	%{_tmppath}/%{name}-%{version}-%{release}-buildroot/
BuildArch:	noarch

Source:		ftp://ftp.gnu.org/gnu/autoconf/autoconf-%{version}.tar.bz2
Source1:	autoconf-site-start.el
Source2:	autoconf_special_readme2.5
Source3:	autoconf-ac-wrapper.pl
Patch0:		autoconf-2.59-fix-info.patch.bz2

Prereq:		/sbin/install-info
BuildRequires:	texinfo m4
Requires:	m4 mktemp
Requires:	autoconf2.1
Conflicts:	autoconf <= 1:2.13-19mdk
Provides:	autoconf = %{epoch}:%{version}-%{release}

# for tests
%if %docheck
BuildRequires:	flex
BuildRequires:	bison
%endif

%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. If you are installing Autoconf, you will also
need to install the GNU m4 package.

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.

%{expand:%(cat %{SOURCE2})}

%prep
%setup -q -n autoconf-%{version}
%patch0 -p1 -b .addinfo
install -m644 %{SOURCE2} IMPORTANT.README.MDK

%build
%configure2_5x
%make

%if %docheck
make check	# VERBOSE=1
%endif

%install
rm -rf $RPM_BUILD_ROOT
%makeinstall_std

# automatic autoconf wrapper
install -D -m 755 %{SOURCE3} $RPM_BUILD_ROOT%{scriptdir}/ac-wrapper.pl

# We don't want to include the standards.info stuff in the package,
# because it comes from binutils...
rm -f $RPM_BUILD_ROOT%{_infodir}/standards*

# links all scripts to wrapper
for i in $RPM_BUILD_ROOT%{_bindir}/*; do
	mv $i ${i}-2.5x
	ln -s %{scriptdir}/ac-wrapper.pl $i
done

mv $RPM_BUILD_ROOT%{_infodir}/autoconf.info $RPM_BUILD_ROOT%{_infodir}/autoconf-2.5x.info

# emacs stuff
install -D -m 644 %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/emacs/site-start.d/%{name}.el

# if emacs-bin was not here, *.el and *.elc files will be missing - install *.el files anyway
if [ ! -d $RPM_BUILD_ROOT/%{_datadir}/emacs/site-lisp ]; then
	mkdir -p $RPM_BUILD_ROOT/%{_datadir}/emacs/site-lisp
	install -m644 lib/emacs/*.el $RPM_BUILD_ROOT/%{_datadir}/emacs/site-lisp
fi

%clean
rm -rf $RPM_BUILD_ROOT

%post
%_install_info autoconf-2.5x.info

%preun
%_remove_install_info autoconf-2.5x.info

%files
%defattr(-,root,root)
%doc README IMPORTANT.README.MDK
%config(noreplace) %{_sysconfdir}/emacs/site-start.d/*.el
%{_bindir}/*
%{_datadir}/autoconf
%{_datadir}/emacs/site-lisp/*.el*
%{_infodir}/*
%{_mandir}/*/*
%{scriptdir}

%changelog
* Thu Jul 08 2004 Christiaan Welvaart <cjw@daneel.dyndns.org> 2.59-6mdk
- requires autoconf2.1 for wrapper
- call this package's autoconf when no configure.in or configure.ac 
  detected

* Sat May 29 2004 Abel Cheung <deaddog@deaddog.org> 2.59-5mdk
- wrapper fixes, output better error messages (gc et. al.)

* Fri May 14 2004 Abel Cheung <deaddog@deaddog.org> 2.59-4mdk
- THE BIG MOVE
- move wrapper script here, and place it in $datadir
- Add `--without check' option to disable `make check'

* Wed Jan 21 2004 Luca Berra <bluca@vodka.it> 2.59-3mdk
- rebuild to fix autom4te
- removed packager tag

* Thu Dec 18 2003 Guillaume Cottenceau <gc@mandrakesoft.com> 2.59-2mdk
- rebuild with rpm fixed regarding perl autoreq/prov

* Wed Dec 17 2003 Guillaume Cottenceau <gc@mandrakesoft.com> 2.59-1mdk
- new release

* Thu Dec 11 2003 Guillaume Cottenceau <gc@mandrakesoft.com> 2.58-1mdk
- new release

* Tue Jul 01 2003 Thierry Vignaud <tvignaud@mandrakesoft.com> 2.57-5mdk
- fix info files packaging

* Fri Apr 11 2003 Guillaume Cottenceau <gc@mandrakesoft.com> 2.57-4mdk
- per suggestion of fcrozat, include description info (about the two
  versions of autoconf coexisting) in a readme file

* Thu Dec 19 2002 Guillaume Cottenceau <gc@mandrakesoft.com> 2.57-3mdk
- fix info coexistance between autoconf and autoconf2.5

* Thu Dec 19 2002 Guillaume Cottenceau <gc@mandrakesoft.com> 2.57-2mdk
- don't buildrequires on emacs-bin (this is a core package, this is
  not good)
- when emacs-bin would not be here, *.el/elc will not be created, install
  *.el files anyway

* Fri Dec 13 2002 Guillaume Cottenceau <gc@mandrakesoft.com> 2.57-1mdk
- new version
- add info file

* Wed Oct  9 2002 Guillaume Cottenceau <gc@mandrakesoft.com> 2.54-1mdk
- new version

* Wed Jul 31 2002 Gwenole Beauchesne <gbeauchesne@mandrakesoft.com> 2.53-3mdk
- Forcibly Requires: ac-wrapper.pl in %{_prefix}/lib/autoconf/

* Thu May  9 2002 Stefan van der Eijk <stefan@eijk.nu> 2.53-2mdk
- BuildRequires: emacs-bin

* Tue Mar 12 2002 Guillaume Cottenceau <gc@mandrakesoft.com> 2.53-1mdk
- new version (now provides Emacs mode for configure.in, cool ;p)
- mawk patch integrated upstream

* Wed Oct 17 2001 Guillaume Cottenceau <gc@mandrakesoft.com> 2.52d-1mdk
- bump up to 2.52d with help from Abel Cheung <maddog@linux.org.hk>
- runs through ac-wrapper.pl for transparent co-existance with 2.13
- provide man pages

* Thu Aug 30 2001 Guillaume Cottenceau <gc@mandrakesoft.com> 2.13-9mdk
- rebuild to change distribution tag

* Tue May 01 2001 David BAUDENS <baudens@mandrakesoft.com> 2.13-8mdk
- Use %%_tmppath for BuildRoot

* Mon Oct 16 2000 Guillaume Cottenceau <gc@mandrakesoft.com> 2.13-7mdk
- fix for compiling c++ code with gcc-2.96 in some cases

* Thu Aug 24 2000 Guillaume Cottenceau <gc@mandrakesoft.com> 2.13-6mdk
- rebuild to fix %preun script (pixel sucks)

* Wed Aug 23 2000 Guillaume Cottenceau <gc@mandrakesoft.com> 2.13-5mdk
- automatically added packager tag

* Tue Jul 18 2000 Guillaume Cottenceau <gc@mandrakesoft.com> 2.13-4mdk
- macros for install-info

* Mon Jul 10 2000 Guillaume Cottenceau <gc@mandrakesoft.com> 2.13-3mdk
- cleanup and macros

* Fri Mar 31 2000 Guillaume Cottenceau <gc@mandrakesoft.com> 2.13-2mdk
- new groups

* Mon Mar  6 2000 Chmouel Boudjnah <chmouel@mandrakesoft.com> 2.13-1mdk
- Back to last 2.13 and stable version, add a serial.

* Wed Oct 27 1999 Chmouel Boudjnah <chmouel@mandrakesoft.com>
- Merge change of Jeff package.

* Thu May 13 1999 Bernhard Rosenkraenzer <bero@mandrakesoft.com>
- Mandrake adaptions
- 2.14.1

* Fri Mar 26 1999 Cristian Gafton <gafton@redhat.com>
- add patch to help autoconf clean after itself and not leave /tmp clobbered
  with acin.* and acout.* files (can you say annoying?)

* Sun Mar 21 1999 Cristian Gafton <gafton@redhat.com> 
- auto rebuild in the new build environment (release 4)
- use gawk, not mawk

* Thu Mar 18 1999 Preston Brown <pbrown@redhat.com>
- moved /usr/lib/autoconf to /usr/share/autoconf (with automake)

* Wed Feb 24 1999 Preston Brown <pbrown@redhat.com>
- Injected new description and group.

* Tue Jan 12 1999 Jeff Johnson <jbj@redhat.com>
- update to 2.13.

* Fri Dec 18 1998 Cristian Gafton <gafton@redhat.com>
- build against glibc 2.1

* Mon Oct 05 1998 Cristian Gafton <gafton@redhat.com>
- requires perl

* Thu Aug 27 1998 Cristian Gafton <gafton@redhat.com>
- patch for fixing /tmp race conditions

* Sun Oct 19 1997 Erik Troan <ewt@redhat.com>
- spec file cleanups
- made a noarch package
- uses autoconf
- uses install-info

* Thu Jul 17 1997 Erik Troan <ewt@redhat.com>
- built with glibc