2001-10-15 Ralf Corsepius <corsepiu@faw.uni-ulm.de>

* mkbinutilsspec.in: Guard sed-pattern against autoconf.
	* mkgccnewlibspec.in: Guard sed-pattern against autoconf, remove
	Target_alias.
	* mkgdbspec.in: Guard sed-pattern against autoconf.
	* mkbspspec.in: Guard sed-pattern against autoconf.
	* configure.ac: Rework check for RPM_SPECSdir.
	* autotools/automake-rtems.spec: Update to automake-1.5.
This commit is contained in:
Joel Sherrill
2001-10-15 17:49:35 +00:00
parent 76c6828d8a
commit 64cc4bb5af
7 changed files with 62 additions and 44 deletions

View File

@@ -1,3 +1,13 @@
2001-10-15 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
* mkbinutilsspec.in: Guard sed-pattern against autoconf.
* mkgccnewlibspec.in: Guard sed-pattern against autoconf, remove
Target_alias.
* mkgdbspec.in: Guard sed-pattern against autoconf.
* mkbspspec.in: Guard sed-pattern against autoconf.
* configure.ac: Rework check for RPM_SPECSdir.
* autotools/automake-rtems.spec: Update to automake-1.5.
2001-10-11 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
* .cvsignore: Add autom4te.cache for autoconf > 2.52.

View File

@@ -2,8 +2,8 @@
# spec file for automake
#
%define rpmvers 1.4_p5
%define srcvers 1.4-p5
%define rpmvers 1.5
%define srcvers 1.5
%define _defaultbuildroot /var/tmp/%{name}-%{srcvers}-root
%define _prefix /opt/rtems

View File

@@ -21,25 +21,33 @@ AC_MSG_RESULT([$EXEEXT])
test -f ./setup.cache || cp ${srcdir}/setup.def ./setup.cache
. ./setup.cache
# Some linux distributions use /usr/src/packages
# redhat uses /usr/src/redhat
# others might use /usr/src
AC_MSG_CHECKING(for rpm SPECS directory)
if test -d /usr/src/packages/SPECS;
# Allow users to override RPM_SPECSdir from the environment.
if test x"$RPM_SPECSdir" = x"$RPM_SPECSdir";
then
RPM_SPECSdir=/usr/src/packages/SPECS;
elif test -d /usr/src/redhat/SPECS;
then
RPM_SPECSdir=/usr/src/redhat/SPECS;
elif test -d /usr/src/SPECS;
then
RPM_SPECSdir=/usr/src/SPECS;
elif test -d /usr/local/src/redhat/SPECS;
then
RPM_SPECSdir=/usr/local/src/redhat/SPECS;
# SuSE uses /usr/src/packages
# redhat uses /usr/src/redhat
# MDK is reported to use /usr/src/RPM
# others might use /usr/src
rpmpath="/usr:/usr/local"
rpmdirs="src/packages:src/redhat:src/RPM:src"
save_IFS="$IFS"; IFS=":"
for d in $rpmdirs; do
for p in $rpmpath; do
list="$p/$d:$list"
done
done
for d in $list; do
if test -d $d/SPECS; then
RPM_SPECSdir="$d/SPECS";
break;
fi
done
IFS="$save_IFS"
fi
if test x"$RPM_SPECSdir" = x"" ; then
AC_MSG_ERROR(not found)
AC_MSG_ERROR([not found])
fi
AC_MSG_RESULT($RPM_SPECSdir)
AC_SUBST(RPM_SPECSdir)

View File

@@ -50,12 +50,12 @@ target_alias=$1
specfile=${dst}/$target_alias-binutils-${binutils_version}.spec
sed -e "s%@Release@%${binutils_rpm_release}%g" \
-e "s%@rpm_build_root@%${rpm_build_root}%g" \
-e "s%@target_alias@%${target_alias}%g" \
-e "s%@binutils_version@%${binutils_version}%g" \
-e "s%@binutils_patch_version@%${binutils_patch_version}%g" \
-e "s%@exe_ext@%${exe_ext}%g" \
sed -e "s%@Release\@%${binutils_rpm_release}%g" \
-e "s%@rpm_build_root\@%${rpm_build_root}%g" \
-e "s%@target_alias\@%${target_alias}%g" \
-e "s%@binutils_version\@%${binutils_version}%g" \
-e "s%@binutils_patch_version\@%${binutils_patch_version}%g" \
-e "s%@exe_ext\@%${exe_ext}%g" \
< ${RTEMS_DIR}/binutils/binutils.spec.in \
> ${specfile}

View File

@@ -50,12 +50,12 @@ bsp=$2
specfile=${dst}/$target_alias-$bsp-${rtems_version}.spec
sed -e "s%@Release@%${rtems_rpm_release}%g" \
-e "s%@bsp@%${bsp}%g" \
-e "s%@rtems_version@%${rtems_version}%g" \
-e "s%@rpm_build_root@%${rpm_build_root}%g" \
-e "s%@target_alias@%${target_alias}%g" \
-e "s%@exe_ext@%${exe_ext}%g" \
sed -e "s%@Release\@%${rtems_rpm_release}%g" \
-e "s%@bsp\@%${bsp}%g" \
-e "s%@rtems_version\@%${rtems_version}%g" \
-e "s%@rpm_build_root\@%${rpm_build_root}%g" \
-e "s%@target_alias\@%${target_alias}%g" \
-e "s%@exe_ext\@%${exe_ext}%g" \
< ${RTEMS_DIR}/rtems/rtems.spec.in \
> ${specfile}

View File

@@ -57,14 +57,14 @@ target_alias=$1
specfile=${dst}/${target_alias}-gcc-${gcc_version}-newlib-${newlib_version}.spec
sed -e "s%@Release@%${gccnewlib_rpm_release}%g" \
-e "s%@Target_alias@%${target_alias}%g" \
-e "s%@rpm_build_root@%${rpm_build_root}%g" \
-e "s%@gcc_version@%${gcc_version}%g" \
-e "s%@gcc_patch_version@%${gcc_patch_version}%g" \
-e "s%@newlib_version@%${newlib_version}%g" \
-e "s%@newlib_patch_version@%${newlib_patch_version}%g" \
-e "s%@exe_ext@%${exe_ext}%g" \
sed -e "s%@Release\@%${gccnewlib_rpm_release}%g" \
-e "s%@target_alias\@%${target_alias}%g" \
-e "s%@rpm_build_root\@%${rpm_build_root}%g" \
-e "s%@gcc_version\@%${gcc_version}%g" \
-e "s%@gcc_patch_version\@%${gcc_patch_version}%g" \
-e "s%@newlib_version\@%${newlib_version}%g" \
-e "s%@newlib_patch_version\@%${newlib_patch_version}%g" \
-e "s%@exe_ext\@%${exe_ext}%g" \
< ${specsrc} \
> ${specfile}

View File

@@ -65,13 +65,13 @@ case ${target_alias} in
;;
esac
sed -e "s%@Release@%${gdb_rpm_release}%g" \
-e "s%@rpm_build_root@%${rpm_build_root}%g" \
-e "s%@target_alias@%${target_alias}%g" \
-e "s%@gdb_version@%${gdb_version}%g" \
-e "s%@gdb_patch_version@%${gdb_patch_version}%g" \
-e "s%@extra_configure_arguments@%${extra_configure_arguments}%g" \
-e "s%@exe_ext@%${exe_ext}%g" \
sed -e "s%@Release\@%${gdb_rpm_release}%g" \
-e "s%@rpm_build_root\@%${rpm_build_root}%g" \
-e "s%@target_alias\@%${target_alias}%g" \
-e "s%@gdb_version\@%${gdb_version}%g" \
-e "s%@gdb_patch_version\@%${gdb_patch_version}%g" \
-e "s%@extra_configure_arguments\@%${extra_configure_arguments}%g" \
-e "s%@exe_ext\@%${exe_ext}%g" \
< ${RTEMS_DIR}/gdb/gdb.spec.in \
> ${specfile}