Summary: OSF Mach 3.0 Kernel map and default pager Name: osfmk Version: 12.24.99 Release: 1 Copyright: distributable Group: System Environment/Base Source: osfmk.tar.gz Source1: sandboxrc Source2: build_world Buildroot: /var/tmp/osfmk-root Obsoletes: default_pager %description The default_pager and Mach Kernel map file for the OSF's Mach Kernel. %package src Summary: Sources for the OSF Mach 3.0 Kernel Group: Development/System Conflicts: osfmk-export %description src This package provides the source files for the Open Software Foundation's implementation of the Mach Microkernel. Install this package if you wish to build the Mach Kernel directly from sources. %package tools Summary: Architecture specific tools used to build the mach kernel. Group: Development/System %description tools The osfmk source tools are a set of prebuilt binary tools used for building the Mach Kernel. The source code for these tools is included in the osfmk-source package. %package export Summary: Libraries exported by Mach for use by servers. Group: Development/System Conflicts: osfmk-src %description export Exported libraries and include files from the OSF Mach 3.0 kernel. These packages are used by the vmlinux server to communicate with mach. %prep %setup -q -n osfmk # Set up a sandboxrc file for the build rm -f redhat.sandboxrc echo " # sandbox rc file created by mksb # default sandbox default osfmk # base directories to sandboxes base * /usr/src/redhat/BUILD # list of sandboxes sb osfmk " > redhat.sandboxrc cp %{SOURCE2} src %build workon -sb osfmk -rc redhat.sandboxrc << EOF export PATH="/opt/ode/bin:$PATH:$RPM_BUILD_DIR/osfmk/tools/ppc/ppc_linux/hostbin" ./build_world EOF %install rm -rf $RPM_BUILD_ROOT ##### # We want to build a source package to go in /usr/src ##### install -d -o root -g root -m 755 $RPM_BUILD_ROOT/usr/src cd $RPM_BUILD_ROOT/usr/src tar zxf %{SOURCE0} cd osfmk cp %{SOURCE2} src ##### # Install documentation ##### install -d -o root -g root -m 755 $RPM_BUILD_ROOT/usr/doc/osfmk-3.0 cp %{SOURCE1} $RPM_BUILD_ROOT/usr/doc/osfmk-3.0 cp OSFMK_BUILD.README $RPM_BUILD_ROOT/usr/doc/osfmk-3.0 ##### # We will temporarily store the Mach_Kernel in the mach_servers directory ##### install -d -o root -g root -m 755 $RPM_BUILD_ROOT/mach_servers cd $RPM_BUILD_DIR/osfmk/obj/powermac/mach_kernel/PRODUCTION cp Mach_Kernel $RPM_BUILD_ROOT/mach_servers cp Mach_Kernel.map $RPM_BUILD_ROOT/mach_servers cd $RPM_BUILD_DIR/osfmk/obj/powermac/default_pager cp default_pager $RPM_BUILD_ROOT/mach_servers ##### # We need to build the export package ##### cd $RPM_BUILD_DIR tar czvf $RPM_SOURCE_DIR/osfmk-export.tar.gz osfmk/export cd $RPM_BUILD_ROOT/usr/src/ tar xzvf $RPM_SOURCE_DIR/osfmk-export.tar.gz %clean rm -rf $RPM_BUILD_ROOT %files src %defattr(-,root,root) /usr/src/osfmk/CVS /usr/src/osfmk/src /usr/src/osfmk/rc_files /usr/doc/osfmk-3.0/sandboxrc %files tools %defattr(-,root,root) /usr/src/osfmk/link/tools /usr/src/osfmk/obj/powermac /usr/src/osfmk/tools %files export %defattr(-,root,root) /usr/src/osfmk/export %files %attr(755,root,root) /mach_servers/Mach_Kernel %attr(644,root,root) /mach_servers/Mach_Kernel.map %attr(755,root,root) /mach_servers/default_pager %changelog * Fri Dec 24 1999 Fred Bacon - First attempt at producing a real spec file for the mach kernel. * Wed Nov 17 1999 Fred Bacon - Initial package. There is so much more to do. It would be nice to rebuild the system from sources, but for now we will simply install the source files for the system.