summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcvs2git <rtems-devel@rtems.org>2004-02-09 13:21:25 +0000
committercvs2git <rtems-devel@rtems.org>2004-02-09 13:21:25 +0000
commite4669c7a8579dab9795773ba985cae593764dc1c (patch)
tree59095746a91ef60d450c5943b81ef83c8c029439
parent9a1fa0ac79d4c49587caffa6e462d533fcbf4db5 (diff)
This commit was manufactured by cvs2svn to create branch 'rtems-4-6-branch'.
Cherrypick from master 2004-02-01 08:27:24 UTC Ralf Corsepius <ralf.corsepius@rtems.org> '2004-02-01 Ralf Corsepius <corsepiu@faw.uni-ulm.de>': aclocal/rpm.m4 Cherrypick from master 2004-02-09 13:21:24 UTC Ralf Corsepius <ralf.corsepius@rtems.org> '2004-02-09 Ralf Corsepius <corsepiu@faw.uni-ulm.de>': scripts/rtems/rtems-source.add
-rw-r--r--aclocal/rpm.m420
-rw-r--r--scripts/rtems/rtems-source.add37
2 files changed, 57 insertions, 0 deletions
diff --git a/aclocal/rpm.m4 b/aclocal/rpm.m4
new file mode 100644
index 0000000000..2f19a5a3a8
--- /dev/null
+++ b/aclocal/rpm.m4
@@ -0,0 +1,20 @@
+AC_DEFUN([RTEMS_ENABLE_RPMPREFIX],[
+AC_ARG_ENABLE([rpmprefix],
+[ --enable-rpmprefix=<rpmprefix> prefix rpms],
+[case $enable_rpmprefix in
+yes ) rpmprefix="rtems-"]RTEMS_API["-";;
+no ) rpmprefix="%{nil}";;
+* ) AS_IF([test -z "$enable_rpmprefix"],
+ [rpmprefix="%{nil}"],
+ [rpmprefix="$enable_rpmprefix"]);;
+esac],
+[rpmprefix="rtems-"]RTEMS_API["-"])
+
+AC_ARG_ENABLE([osversions],
+[ --enable-osversions whether to use version numbers in os-tripples],
+[case $enable_osversions in
+yes ) osversion=RTEMS_API;;
+* ) osversion=;;
+esac],
+[osversion=])
+])
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
+