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
This commit is contained in:
cvs2git
2004-02-09 13:21:25 +00:00
parent 9a1fa0ac79
commit e4669c7a85
2 changed files with 57 additions and 0 deletions

20
aclocal/rpm.m4 Normal file
View File

@@ -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=])
])

View File

@@ -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