From 5d850287011955ee00514cbf2e376c1d98de4ecd Mon Sep 17 00:00:00 2001 From: Ralf Corsepius Date: Mon, 9 Feb 2004 13:21:24 +0000 Subject: 2004-02-09 Ralf Corsepius * rtems/rtems-source.add: New. * Makefile.am: Add rtems/rtems-source.spec handling. * configure.ac: AC_SUBST(RTEMS_VERSION,[_RTEMS_VERSION]). * common/common.add.in: Use www.rtems.com as Vendor. --- scripts/Makefile.am | 5 +++++ scripts/common/common.add.in | 2 +- scripts/configure.ac | 2 +- scripts/rtems/rtems-source.add | 37 +++++++++++++++++++++++++++++++++++++ 4 files changed, 44 insertions(+), 2 deletions(-) create mode 100644 scripts/rtems/rtems-source.add diff --git a/scripts/Makefile.am b/scripts/Makefile.am index df7332d533..b04ad1bc03 100644 --- a/scripts/Makefile.am +++ b/scripts/Makefile.am @@ -20,5 +20,10 @@ setup.cache: setup.def DISTCLEANFILES = setup.cache +noinst_DATA += rtems/rtems-source.spec +rtems/rtems-source.spec: $(top_builddir)/common/common.add rtems/rtems-source.add \ + $(top_builddir)/common/clean.add + cat $^ | sed 's,[@]rtems_version[@],$(RTEMS_VERSION),g' > $@ + include $(top_srcdir)/../automake/subdirs.am include $(top_srcdir)/../automake/local.am diff --git a/scripts/common/common.add.in b/scripts/common/common.add.in index 9365c88138..5995d6a9d2 100644 --- a/scripts/common/common.add.in +++ b/scripts/common/common.add.in @@ -23,7 +23,7 @@ # Work around to a bug in rpm-4.2 %define __os_install_post %{nil} -Vendor: OARCorp +Vendor: www.rtems.com Distribution: Linux BuildRoot: %{_defaultbuildroot} diff --git a/scripts/configure.ac b/scripts/configure.ac index bf39d1f086..56ae888cf6 100644 --- a/scripts/configure.ac +++ b/scripts/configure.ac @@ -65,7 +65,7 @@ AC_SUBST(BINUTILSVERS) GDBVERS="gdb-${gdb_version}" AC_SUBST(GDBVERS) BSPVERS="${rtems_version}" -AC_SUBST(RTEMS_VERSION,${rtems_version}) +AC_SUBST(RTEMS_VERSION,[_RTEMS_VERSION]) AC_SUBST(BSPVERS) AC_SUBST(RPM_CPU) AC_SUBST(rpmprefix,$rpmprefix) diff --git a/scripts/rtems/rtems-source.add b/scripts/rtems/rtems-source.add new file mode 100644 index 0000000000..4197361081 --- /dev/null +++ b/scripts/rtems/rtems-source.add @@ -0,0 +1,37 @@ +Name: %{rpmprefix}rtems-source +Version: @rtems_version@ +Release: 1 +Epoch: 0 +Summary: RTEMS source code + +Group: %{rpmgroup} +License: GPL with special exception for linking with application program +URL: http://www.rtems.com +Source0: ftp://ftp.rtems.com/pub/rtems/SOURCES/rtems-%{version}.tar.bz2 +Prefix: %{_prefix}/src +BuildArch: noarch +#--------------------------------------------------------------------- + +Requires: %{rpmprefix}automake-rtems < 1.8 +Requires: %{rpmprefix}automake-rtems >= 1.7.2 +Requires: %{rpmprefix}autoconf-rtems <= 2.59 +Requires: %{rpmprefix}autoconf-rtems >= 2.57 + +%description +RTEMS is an open source operating system for embedded systems. + +%prep +%setup -q -c -T -n %{name}-%{version} -a0 + +%build + +%install +rm -rf $RPM_BUILD_ROOT +install -d -m 0755 ${RPM_BUILD_ROOT}%{_prefix}/src +cp -a rtems-%{version} ${RPM_BUILD_ROOT}%{_prefix}/src + +%files +%defattr(-,root,root,-) +%doc */LICENSE* */COPYING */README */README.configure +%{_prefix}/src + -- cgit v1.2.3