mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2025-12-05 15:15:44 +00:00
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:
20
aclocal/rpm.m4
Normal file
20
aclocal/rpm.m4
Normal 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=])
|
||||||
|
])
|
||||||
37
scripts/rtems/rtems-source.add
Normal file
37
scripts/rtems/rtems-source.add
Normal 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
|
||||||
|
|
||||||
Reference in New Issue
Block a user