From a792b78d7b0505e686bacb386a7b21305401eb89 Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Thu, 6 Sep 2001 18:38:31 +0000 Subject: 2001-07-19 Ralf Corsepius * autotools/Makefile.am, autotools/autoconf-rtems.spec, autotools/automake-rtems.spec: New. * configure.in, Makefile.am: Add autotools/. --- scripts/ChangeLog | 6 +++ scripts/Makefile.am | 2 +- scripts/autotools/Makefile.am | 10 ++++ scripts/autotools/autoconf-rtems.spec | 89 +++++++++++++++++++++++++++++++++++ scripts/autotools/automake-rtems.spec | 87 ++++++++++++++++++++++++++++++++++ scripts/configure.in | 3 +- 6 files changed, 195 insertions(+), 2 deletions(-) create mode 100644 scripts/autotools/Makefile.am create mode 100644 scripts/autotools/autoconf-rtems.spec create mode 100644 scripts/autotools/automake-rtems.spec (limited to 'scripts') diff --git a/scripts/ChangeLog b/scripts/ChangeLog index 24d5e22cf2..647baa88d2 100644 --- a/scripts/ChangeLog +++ b/scripts/ChangeLog @@ -1,3 +1,9 @@ +2001-07-19 Ralf Corsepius + + * autotools/Makefile.am, autotools/autoconf-rtems.spec, + autotools/automake-rtems.spec: New. + * configure.in, Makefile.am: Add autotools/. + 2001-08-30 Joel Sherrill * .cvsignore: Add buildalltar. diff --git a/scripts/Makefile.am b/scripts/Makefile.am index aa8a8931fb..18d3ed20f2 100644 --- a/scripts/Makefile.am +++ b/scripts/Makefile.am @@ -4,7 +4,7 @@ AUTOMAKE_OPTIONS = foreign 1.4 -SUBDIRS = . binutils gccnewlib gdb rtems +SUBDIRS = . binutils gccnewlib gdb rtems autotools noinst_SCRIPTS = setup buildall buildalltar mkbinutilspec mkbspspec \ mkgccnewlibspec mkgdbspec mkrpms mkspec diff --git a/scripts/autotools/Makefile.am b/scripts/autotools/Makefile.am new file mode 100644 index 0000000000..c3ace85bb3 --- /dev/null +++ b/scripts/autotools/Makefile.am @@ -0,0 +1,10 @@ +## +## $Id$ +## + +AUTOMAKE_OPTIONS = foreign 1.4 + +RPM_SPECS_DATA = \ + autoconf-rtems.spec automake-rtems.spec + +include $(top_srcdir)/../automake/local.am diff --git a/scripts/autotools/autoconf-rtems.spec b/scripts/autotools/autoconf-rtems.spec new file mode 100644 index 0000000000..6f8baacf49 --- /dev/null +++ b/scripts/autotools/autoconf-rtems.spec @@ -0,0 +1,89 @@ +# +# spec file for autoconf +# + +%define rpmvers 2.52 +%define srcvers 2.52 + +%define _defaultbuildroot /var/tmp/%{name}-%{srcvers}-root +%define _prefix /opt/rtems +%define _name autoconf + +%if "%{_prefix}" != "/usr" +%define name %{_name}-rtems +%define _infodir %{_prefix}/info +%define _mandir %{_prefix}/man +%else +%define name %{_name} +%endif + + +Vendor: http://www.rtems.com +Name: %{name} +Packager: Ralf Corsepius + +Copyright: GPL +URL: http://www.gnu.org/software/autoconf +Group: rtems +Provides: autoconf +Autoreqprov: on +Version: %{rpmvers} +Release: 0 +Summary: Tool for automatically generating GNU style Makefile.in's +BuildArch: noarch +BuildRoot: %{_defaultbuildroot} +BuildPreReq: autoconf perl m4 gawk +PreReq: /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} +make + +%install +%makeinstall +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%{_infodir}/standards.info* 2>/dev/null +gzip -9qf $RPM_BUILD_ROOT%{_mandir}/man?/* 2>/dev/null + +%clean +[ x"$RPM_BUILD_ROOT" = x"%{_defaultbuildroot}" ] ; \ + rm -rf "$RPM_BUILD_ROOT" + +%post +install-info --info-dir=%{_infodir} %{_infodir}/autoconf.info.gz +#install-info --info-dir=%{_infodir} %{_infodir}/standards.info.gz + +%preun +if [ $1 = 0 ]; then + install-info --delete --info-dir=%{_infodir} %{_infodir}/autoconf.info.gz +# install-info --delete --info-dir=%{_infodir} %{_infodir}/standards.info.gz +fi + +%files +%defattr(-,root,root) +%doc AUTHORS COPYING ChangeLog NEWS README THANKS +%{_bindir}/* +%doc %{_infodir}/autoconf.info*.gz +#%doc %{_infodir}/standards.info*.gz +%doc %{_mandir}/man?/*.gz +%{_datadir}/autoconf diff --git a/scripts/autotools/automake-rtems.spec b/scripts/autotools/automake-rtems.spec new file mode 100644 index 0000000000..cf79986cdd --- /dev/null +++ b/scripts/autotools/automake-rtems.spec @@ -0,0 +1,87 @@ +# +# spec file for automake +# + +%define rpmvers 1.4_p5 +%define srcvers 1.4-p5 + +%define _defaultbuildroot /var/tmp/%{name}-%{srcvers}-root +%define _prefix /opt/rtems +%define _name automake + +%if "%{_prefix}" != "/usr" +%define name %{_name}-rtems +%define requirements autoconf-rtems +%define _infodir %{_prefix}/info +%define _mandir %{_prefix}/man +%else +%define name %{_name} +%define requirements autoconf +%endif + +Vendor: http://www.rtems.com +Name: %{name} +Packager: Ralf Corsepius + +Copyright: GPL +Group: rtems +Provides: automake +Autoreqprov: on +Version: %{rpmvers} +Release: 0 +Summary: Tool for automatically generating GNU style Makefile.in's +BuildArch: noarch +BuildRoot: %{_defaultbuildroot} +BuildPreReq: autoconf perl help2man +Requires: %{requirements} +PreReq: /sbin/install-info + +Source: automake-%{srcvers}.tar.bz2 + +%description +Automake is a tool for automatically generating "Makefile.in"s from +files called "Makefile.am". "Makefile.am" is basically a series of +"make" macro definitions (with rules being thrown in occasionally). +The generated "Makefile.in"s are compatible to the GNU Makefile +standards. + +%prep +%setup -q -n %{_name}-%{srcvers} + +%build +./configure --prefix=%{_prefix} --infodir=%{_infodir} --mandir=%{_mandir} +make + +%install +%makeinstall + +install -m 755 -d $RPM_BUILD_ROOT/%{_mandir}/man1 +for i in $RPM_BUILD_ROOT%{_bindir}/*; do + perllibdir=$RPM_BUILD_ROOT/%{_datadir}/automake \ + help2man $i > `basename $i`.1 + install -m 644 `basename $i`.1 $RPM_BUILD_ROOT/%{_mandir}/man1 +done + +gzip -9qf $RPM_BUILD_ROOT%{_infodir}/*.info* 2>/dev/null +gzip -9qf $RPM_BUILD_ROOT%{_mandir}/man?/* 2>/dev/null + +%clean +[ x"$RPM_BUILD_ROOT" = x"%{_defaultbuildroot}" ] ; \ + rm -rf "$RPM_BUILD_ROOT" + +%post +install-info --info-dir=%{_infodir} %{_infodir}/automake.info.gz + +%preun +if [ $1 = 0 ]; then + install-info --delete --info-dir=%{_infodir} %{_infodir}/automake.info.gz +fi + +%files +%doc AUTHORS COPYING ChangeLog NEWS README THANKS +%{_bindir}/aclocal +%{_bindir}/automake +%doc %{_infodir}/automake.info*.gz +%doc %{_mandir}/man?/* +%{_datadir}/aclocal +%{_datadir}/automake diff --git a/scripts/configure.in b/scripts/configure.in index 3398e18743..e42ccc38cc 100644 --- a/scripts/configure.in +++ b/scripts/configure.in @@ -75,7 +75,8 @@ mkbspspec binutils/Makefile gccnewlib/Makefile gdb/Makefile -rtems/Makefile, +rtems/Makefile +autotools/Makefile, chmod 755 buildall chmod 755 buildalltar ) -- cgit v1.2.3