This commit is contained in:
Ralf Corsepius
2006-07-24 08:51:15 +00:00
parent 262bea903b
commit a26364de87
6 changed files with 235 additions and 0 deletions

View File

@@ -0,0 +1,4 @@
Makefile
Makefile.in
*.spec
*.spec.in

View File

@@ -0,0 +1,13 @@
##
## $Id$
##
include $(top_srcdir)/mkspec.am
AUTOCONF_VERS = 2.60
AUTOCONF_RPMREL = @VERSION@
include ./autoconf.am
AUTOMAKE_VERS = 1.9.6
AUTOMAKE_RPMREL = @VERSION@
include ./automake.am

View File

@@ -0,0 +1,91 @@
%define rpmvers 2.60
%define srcvers 2.60
%if "%{_prefix}" != "/usr"
%define name @rpmprefix@autoconf-rtems
%else
%define name %{autoconf}
%endif
Name: %{name}
License: GPL
URL: http://www.gnu.org/software/autoconf
Group: @rpmgroup@
Version: %{rpmvers}
Release: @AUTOCONF_RPMREL@%{?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
Source0: ftp://ftp.gnu.org/gnu/autoconf/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 autoconf-%{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
/sbin/install-info --info-dir=%{_infodir} %{_infodir}/autoconf.info.gz
%preun
if [ $1 -eq 0 ]; then
/sbin/install-info --delete --info-dir=%{_infodir} %{_infodir}/autoconf.info.gz
fi
%files
%defattr(-,root,root)
# %doc AUTHORS COPYING ChangeLog NEWS README THANKS
%sysdir %{_bindir}
%{_bindir}/*
%sysdir %{_infodir}
%ghost %{_infodir}/dir
%{_infodir}/autoconf.info*
%sysdir %{_mandir}
%sysdir %{_mandir}/man1
%{_mandir}/man1/*
%sysdir %{_datadir}
%{_datadir}/autoconf
%exclude %{_datadir}/emacs/site-lisp

View File

@@ -0,0 +1,15 @@
AUTOCONF_SUBPACKAGES = $(top_builddir)/common/common.add
AUTOCONF_SUBPACKAGES += $(top_srcdir)/autotools/autoconf.add
autoconf-rtems.spec.in: $(AUTOCONF_SUBPACKAGES) Makefile.in
cat $(AUTOCONF_SUBPACKAGES) | sed \
-e "s/[@]AUTOCONF_RPMREL[@]/$(AUTOCONF_RPMREL)/" > $@
CLEANFILES += autoconf-rtems.spec.in
@rpmprefix@autoconf-rtems.spec: autoconf-rtems.spec.in
$(MKSPEC) autoconf-rtems.spec.in | $(SPECSTRIP) > $@
CLEANFILES += @rpmprefix@autoconf-rtems.spec
noinst_DATA += @rpmprefix@autoconf-rtems.spec
EXTRA_DIST += $(AUTOCONF_SUBPACKAGES)

View File

@@ -0,0 +1,97 @@
#
# spec file for automake
#
%define rpmvers 1.9.6
%define srcvers 1.9.6
%define amvers 1.9
%if "%{_prefix}" != "/usr"
%define name @rpmprefix@automake-rtems
%define requirements @rpmprefix@autoconf-rtems >= 2.59
%else
%define name automake
%define requirements autoconf >= 2.60
%endif
Name: %{name}
URL: http://sources.redhat.com/automake
License: GPL
Group: @rpmgroup@
Version: %{rpmvers}
Release: @AUTOMAKE_RPMREL@%{?dist}
Summary: Tool for automatically generating GNU style Makefile.in's
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildArch: noarch
BuildRequires: %{requirements} perl help2man
Requires: %{requirements}
Requires(post): /sbin/install-info
Requires(preun): /sbin/install-info
Source0: ftp://ftp.gnu.org/gnu/automake/automake-%{srcvers}.tar.bz2
Patch0: automake-1.8.1-rtems-20040112-1.diff
%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 automake-%{srcvers}
%patch0 -p0
%build
PATH=%{_prefix}/bin:$PATH
./configure --prefix=%{_prefix} --infodir=%{_infodir} --mandir=%{_mandir} \
--bindir=%{_bindir} --datadir=%{_datadir}
make
%install
rm -rf "$RPM_BUILD_ROOT"
make DESTDIR=${RPM_BUILD_ROOT} install
install -m 755 -d $RPM_BUILD_ROOT/%{_mandir}/man1
for i in $RPM_BUILD_ROOT%{_bindir}/aclocal \
$RPM_BUILD_ROOT%{_bindir}/automake ;
do
perllibdir=$RPM_BUILD_ROOT/%{_datadir}/automake-%{amvers} \
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
rm -f $RPM_BUILD_ROOT%{_infodir}/dir
touch $RPM_BUILD_ROOT%{_infodir}/dir
%clean
rm -rf "$RPM_BUILD_ROOT"
%post
/sbin/install-info --info-dir=%{_infodir} %{_infodir}/automake.info.gz
%preun
if [ $1 -eq 0 ]; then
/sbin/install-info --delete --info-dir=%{_infodir} %{_infodir}/automake.info.gz
fi
%files
%defattr(-,root,root)
%doc AUTHORS COPYING ChangeLog NEWS README THANKS
%sysdir %{_bindir}
%{_bindir}/aclocal*
%{_bindir}/automake*
%sysdir %{_infodir}
%ghost %{_infodir}/dir
%{_infodir}/automake.info*.gz
%sysdir %{_mandir}
%sysdir %{_mandir}/man1
%{_mandir}/man1/*
%sysdir %{_datadir}
%{_datadir}/aclocal-%{amvers}
%{_datadir}/automake-%{amvers}

View File

@@ -0,0 +1,15 @@
AUTOMAKE_SUBPACKAGES = $(top_builddir)/common/common.add
AUTOMAKE_SUBPACKAGES += $(top_srcdir)/autotools/automake.add
automake-rtems.spec.in: $(AUTOMAKE_SUBPACKAGES) Makefile.in
cat $(AUTOMAKE_SUBPACKAGES) | sed \
-e "s/[@]AUTOMAKE_RPMREL[@]/$(AUTOMAKE_RPMREL)/" > $@
CLEANFILES += automake-rtems.spec.in
@rpmprefix@automake-rtems.spec: automake-rtems.spec.in
$(MKSPEC) automake-rtems.spec.in | $(SPECSTRIP) > $@
CLEANFILES += @rpmprefix@automake-rtems.spec
noinst_DATA += @rpmprefix@automake-rtems.spec
EXTRA_DIST += $(AUTOMAKE_SUBPACKAGES)