forked from Imagelibrary/rtems
2004-02-09 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
* 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.
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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}
|
||||
|
||||
@@ -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)
|
||||
|
||||
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