[Ocfs2-test-devel] [PATCH 01/11] ocfs2-test: Add vendor information to the RPM build process.

Marcos Matsunaga Marcos.Matsunaga at oracle.com
Fri Nov 7 14:49:31 PST 2008


This patch will add the Vendor scripts and spec files to build the ocfs2-test
RPM.

Signed-off-by: Marcos Matsunaga <Marcos.Matsunaga at oracle.com>
---
 Vendor.make                              |   10 +
 vendor.guess                             |   34 ++++
 vendor/Makefile                          |    7 +
 vendor/common/Makefile                   |   18 ++
 vendor/common/Vendor.make                |   32 ++++
 vendor/common/ocfs2-test.spec-generic.in |  295 ++++++++++++++++++++++++++++++
 vendor/fc7/Makefile                      |   10 +
 vendor/fc7/Vendor.make                   |   10 +
 vendor/fc7/rpmarch.guess                 |   68 +++++++
 vendor/fc7/vendor.guess                  |   13 ++
 vendor/fc8/Makefile                      |   10 +
 vendor/fc8/Vendor.make                   |   10 +
 vendor/fc8/rpmarch.guess                 |   68 +++++++
 vendor/fc8/vendor.guess                  |   13 ++
 vendor/fc9/Makefile                      |   10 +
 vendor/fc9/Vendor.make                   |   10 +
 vendor/fc9/rpmarch.guess                 |   68 +++++++
 vendor/fc9/vendor.guess                  |   13 ++
 vendor/rhel4/Makefile                    |   10 +
 vendor/rhel4/Vendor.make                 |   10 +
 vendor/rhel4/rpmarch.guess               |   68 +++++++
 vendor/rhel4/vendor.guess                |   14 ++
 vendor/rhel5/Makefile                    |   10 +
 vendor/rhel5/Vendor.make                 |   10 +
 vendor/rhel5/rpmarch.guess               |   68 +++++++
 vendor/rhel5/vendor.guess                |   14 ++
 vendor/sles10/Makefile                   |   10 +
 vendor/sles10/Vendor.make                |   10 +
 vendor/sles10/rpmarch.guess              |   70 +++++++
 vendor/sles10/vendor.guess               |   13 ++
 vendor/sles9/Makefile                    |   10 +
 vendor/sles9/Vendor.make                 |   10 +
 vendor/sles9/rpmarch.guess               |   70 +++++++
 vendor/sles9/vendor.guess                |   13 ++
 34 files changed, 1109 insertions(+), 0 deletions(-)
 create mode 100644 Vendor.make
 create mode 100755 vendor.guess
 create mode 100644 vendor/Makefile
 create mode 100644 vendor/common/Makefile
 create mode 100644 vendor/common/Vendor.make
 create mode 100644 vendor/common/ocfs2-test.spec-generic.in
 create mode 100644 vendor/fc7/Makefile
 create mode 100644 vendor/fc7/Vendor.make
 create mode 100755 vendor/fc7/rpmarch.guess
 create mode 100755 vendor/fc7/vendor.guess
 create mode 100644 vendor/fc8/Makefile
 create mode 100644 vendor/fc8/Vendor.make
 create mode 100755 vendor/fc8/rpmarch.guess
 create mode 100755 vendor/fc8/vendor.guess
 create mode 100644 vendor/fc9/Makefile
 create mode 100644 vendor/fc9/Vendor.make
 create mode 100755 vendor/fc9/rpmarch.guess
 create mode 100755 vendor/fc9/vendor.guess
 create mode 100644 vendor/rhel4/Makefile
 create mode 100644 vendor/rhel4/Vendor.make
 create mode 100755 vendor/rhel4/rpmarch.guess
 create mode 100755 vendor/rhel4/vendor.guess
 create mode 100644 vendor/rhel5/Makefile
 create mode 100644 vendor/rhel5/Vendor.make
 create mode 100755 vendor/rhel5/rpmarch.guess
 create mode 100755 vendor/rhel5/vendor.guess
 create mode 100644 vendor/sles10/Makefile
 create mode 100644 vendor/sles10/Vendor.make
 create mode 100755 vendor/sles10/rpmarch.guess
 create mode 100755 vendor/sles10/vendor.guess
 create mode 100644 vendor/sles9/Makefile
 create mode 100644 vendor/sles9/Vendor.make
 create mode 100755 vendor/sles9/rpmarch.guess
 create mode 100755 vendor/sles9/vendor.guess

diff --git a/Vendor.make b/Vendor.make
new file mode 100644
index 0000000..b7dd18f
--- /dev/null
+++ b/Vendor.make
@@ -0,0 +1,10 @@
+
+#
+# This Makefile snippet is to be included in Makebo Makefiles that
+# use the mbvendor infrastructure
+#
+
+PKG_VERSION = $(shell $(TOPDIR)/svnrev.guess $(PACKAGE))
+
+-include $(TOPDIR)/vendor/$(shell ./vendor.guess)/Vendor.make
+
diff --git a/vendor.guess b/vendor.guess
new file mode 100755
index 0000000..563f8c8
--- /dev/null
+++ b/vendor.guess
@@ -0,0 +1,34 @@
+#!/bin/sh
+
+list_vendors()
+{
+    ls -1 vendor | while read -r line
+    do
+        if [ "$line" = "common" ]
+        then
+            continue
+        fi
+        if [ ! -d "vendor/$line" ]
+        then
+            continue
+        fi
+        echo $line
+    done
+
+    # Make common last
+    if [ -d "vendor/common" ]
+    then
+        echo "common"
+    fi
+}
+
+list_vendors | while read -r v
+do
+    if [ -x "vendor/${v}/vendor.guess" ]
+    then
+        if "vendor/${v}/vendor.guess" >/dev/null 2>&1
+        then
+            echo "$v"
+        fi
+    fi
+done
diff --git a/vendor/Makefile b/vendor/Makefile
new file mode 100644
index 0000000..ba58625
--- /dev/null
+++ b/vendor/Makefile
@@ -0,0 +1,7 @@
+TOPDIR = ..
+
+include $(TOPDIR)/Preamble.make
+
+SUBDIRS = common rhel5 sles10 rhel4 sles9 fc7 fc8 fc9
+
+include $(TOPDIR)/Postamble.make
diff --git a/vendor/common/Makefile b/vendor/common/Makefile
new file mode 100644
index 0000000..18b4e7b
--- /dev/null
+++ b/vendor/common/Makefile
@@ -0,0 +1,18 @@
+TOPDIR = ../..
+
+include $(TOPDIR)/Preamble.make
+
+# Depend on the substitution values
+$(SCRIPTS): $(TOPDIR)/Config.make
+
+$(patsubst %.sh,%,$(SCRIPT_SH)) : % : %.sh
+	rm -f $@ $@+
+	sed -e 's/@@VERSION@@/$(VERSION)/g' $@.sh >$@+
+	chmod +x $@+
+	mv $@+ $@
+
+DIST_FILES =					\
+	ocfs2-test.spec-generic.in		\
+	Vendor.make
+
+include $(TOPDIR)/Postamble.make
diff --git a/vendor/common/Vendor.make b/vendor/common/Vendor.make
new file mode 100644
index 0000000..06b2a9b
--- /dev/null
+++ b/vendor/common/Vendor.make
@@ -0,0 +1,32 @@
+#
+# Support files
+#
+
+# This Vendor.make expects TOOLSARCH and VENDOR_EXTENSION to be set by an
+# including Makefile.
+
+
+RPMBUILD = $(shell /usr/bin/which rpmbuild 2>/dev/null || /usr/bin/which rpm 2>/dev/null || echo /bin/false)
+RPM_TOPDIR = `pwd`
+
+ifndef VENDOR_EXTENSION
+VENDOR_EXTENSION = common
+endif
+
+$(TOPDIR)/ocfs2-test-$(DIST_VERSION)-$(PKG_VERSION).$(VENDOR_EXTENSION).src.rpm: dist $(TOPDIR)/vendor/common/ocfs2-test.spec-generic
+	sed -e 's,@@PKG_VERSION@@,'$(PKG_VERSION)',g' \
+		-e 's,@@VENDOR_EXTENSION@@,'$(VENDOR_EXTENSION)',g' \
+		-e 's,@@PYGTK_NAME@@,'$(PYGTK_NAME)',g' \
+		-e 's,@@PYVERSION@@,'$(PYVERSION)',g' \
+		-e 's,@@COMPILE_PY@@,'$(COMPILE_PY)',g' \
+		-e 's,@@CHKCONFIG_DEP@@,'$(CHKCONFIG_DEP)',g' \
+		< "$(TOPDIR)/vendor/common/ocfs2-test.spec-generic" \
+		> "$(TOPDIR)/vendor/common/ocfs2-test.spec"
+	$(RPMBUILD) -bs --define "_sourcedir $(RPM_TOPDIR)" --define "_srcrpmdir $(RPM_TOPDIR)" "$(TOPDIR)/vendor/common/ocfs2-test.spec"
+	rm "$(TOPDIR)/vendor/common/ocfs2-test.spec"
+
+srpm: $(TOPDIR)/ocfs2-test-$(DIST_VERSION)-$(PKG_VERSION).$(VENDOR_EXTENSION).src.rpm
+
+rpm: srpm
+	$(RPMBUILD) --rebuild $(TOOLSARCH) "ocfs2-test-$(DIST_VERSION)-$(PKG_VERSION).$(VENDOR_EXTENSION).src.rpm"
+
diff --git a/vendor/common/ocfs2-test.spec-generic.in b/vendor/common/ocfs2-test.spec-generic.in
new file mode 100644
index 0000000..adc375c
--- /dev/null
+++ b/vendor/common/ocfs2-test.spec-generic.in
@@ -0,0 +1,295 @@
+#
+# Spec file for ocfs-test
+#
+
+# Macros
+# This one is hardcoded because, well, it belongs there
+%define _prefix /
+%define _installdir /usr/local/ocfs2-test
+# Because RPM is dumb
+%define _unpackaged_files_terminate_build 0
+# Because RH defines lib64 on ppc32 builds
+%ifarch ppc
+%define brokenrhlibdir /usr/lib
+%else
+%define brokenrhlibdir %{_libdir}
+%endif
+
+%define compile_py @@COMPILE_PY@@
+
+Summary: OCFS2-TEST is package to test ocfs2 and ocfs2-tools.
+Name: ocfs2-test
+Version: @DIST_VERSION@
+Release: @@PKG_VERSION@@.@@VENDOR_EXTENSION@@
+License: GPL
+Group: System Environment/Kernel
+Source: ocfs2-test- at DIST_VERSION@.tar.gz
+URL: http://oss.oracle.com/projects/ocfs2-test/
+Distribution: Oracle
+Vendor: Oracle
+Packager: Marcos Matsunaga <Marcos.Matsunaga at oracle.com>
+Exclusiveos: Linux
+Requires: bash, coreutils, net-tools, modutils, e2fsprogs, @@CHKCONFIG_DEP@@, glib2 >= 2.2.3, util-linux >= 2.12j, openmpi >= 1.2.5, openmpi-devel >= 1.2.5, openmpi-libs >= 1.2.5, python >= @@PYVERSION@@
+BuildRequires: e2fsprogs-devel, glib2-devel >= 2.2.3, python-devel >= @@PYVERSION@@, util-linux >= 2.12j, openmpi-devel >= 1.2.5, openmpi-libs >= 1.2.5
+
+BuildRoot: %{_tmppath}/ocfs2-test-%{PACKAGE_VERSION}-%{PACKAGE_RELEASE}-root
+
+%description
+OCFS2-TEST is package to test ocfs2 and ocfs2-tools.
+
+
+%prep
+%setup -n ocfs2-test-%{version}
+
+
+%build
+%configure --disable-debug --prefix=/usr --mandir=/usr/share/man --libdir=%{brokenrhlibdir}
+make
+
+
+%install
+
+
+make DESTDIR="$RPM_BUILD_ROOT%{_installdir}" install
+
+%if %{compile_py}
+%{__python} -c "import compileall; compileall.compile_dir('$RPM_BUILD_ROOT/%{brokenrhlibdir}/python@@PYVERSION@@/site-packages/ocfs2interface', ddir='%{brokenrhlibdir}/python@@PYVERSION@@/site-packages/ocfs2interface')"
+%endif
+
+
+%clean
+rm -rf "$RPM_BUILD_ROOT"
+
+%post
+/bin/chmod 777 %{_installdir}/log
+
+%files
+%defattr(-,root,root)
+%{_installdir}/bin/aio-stress
+%{_installdir}/bin/partial_aio_direct
+%{_installdir}/bin/test_atime_quantum.py
+%{_installdir}/bin/test_backup_super.sh
+%{_installdir}/bin/buildkernel.py
+%{_installdir}/bin/run_buildkernel.py
+%{_installdir}/bin/test_netfail.py
+%{_installdir}/bin/ocfs2_nicdown.py
+%{_installdir}/bin/check_file_size_limits
+%{_installdir}/bin/create_and_open
+%{_installdir}/bin/create_racer
+%{_installdir}/bin/run_create_racer.py
+%{_installdir}/bin/crdel_del_files.py
+%{_installdir}/bin/crdel_gen_files.py
+%{_installdir}/bin/cross_delete.py
+%{_installdir}/bin/dlmstress1.sh
+%{_installdir}/bin/extend_and_write
+%{_installdir}/bin/verify
+%{_installdir}/bin/run_extend_and_write.py
+%{_installdir}/bin/truncate_direct
+%{_installdir}/bin/extend_files.sh
+%{_installdir}/bin/extendo
+%{_installdir}/bin/fill_holes
+%{_installdir}/bin/punch_holes
+%{_installdir}/bin/verify_holes
+%{_installdir}/bin/burn-in.sh
+%{_installdir}/bin/old_burn-in.sh
+%{_installdir}/bin/flock_unit_test
+%{_installdir}/bin/run_flock_unit_test.py
+%{_installdir}/bin/fsck-test.sh
+%{_installdir}/bin/forkwriter
+%{_installdir}/bin/run_forkwriter.py
+%{_installdir}/bin/lock_grab
+%{_installdir}/bin/logwriter
+%{_installdir}/bin/enospc_test
+%{_installdir}/bin/enospc.sh
+%{_installdir}/bin/rename_write_race.sh
+%{_installdir}/bin/lvb_torture
+%{_installdir}/bin/run_lvb_torture.py
+%{_installdir}/bin/mkfs-test.sh
+%{_installdir}/bin/mmap_test
+%{_installdir}/bin/mmap_truncate
+%{_installdir}/bin/multi_mmap
+%{_installdir}/bin/run_multi_mmap.py
+%{_installdir}/bin/open_delete
+%{_installdir}/bin/open_delete.py
+%{_installdir}/bin/o2tf.py
+%{_installdir}/bin/single_run.sh
+%{_installdir}/bin/remote_mount.py
+%{_installdir}/bin/remote_umount.py
+%{_installdir}/bin/command.py
+%{_installdir}/bin/recovery_load.py
+%{_installdir}/bin/resize_test.sh
+%{_installdir}/bin/reserve_space
+%{_installdir}/bin/sendfiletest
+%{_installdir}/bin/splice_read
+%{_installdir}/bin/splice_write
+%{_installdir}/bin/truncate
+%{_installdir}/bin/ttest
+%{_installdir}/bin/remove_slot
+%{_installdir}/bin/remove_slot.sh
+%{_installdir}/bin/corrupt_remove_slot.sh
+%{_installdir}/bin/tunefs-test.sh
+%{_installdir}/bin/write_append_truncate
+%{_installdir}/bin/run_write_append_truncate.py
+%{_installdir}/bin/write_torture
+%{_installdir}/bin/write_torture.py
+%{_installdir}/bin/run_write_torture.py
+%{_installdir}/bin/xattr-test
+%{_installdir}/bin/xattr-multi-test
+%{_installdir}/bin/xattr-single-run.sh
+%{_installdir}/bin/xattr-multi-run.sh
+%{_installdir}/bin/mpi-run-parts
+%{_installdir}/bin/buildkernel.pyc
+%{_installdir}/bin/command.pyc
+%{_installdir}/bin/crdel_del_files.pyc
+%{_installdir}/bin/crdel_gen_files.pyc
+%{_installdir}/bin/cross_delete.pyc
+%{_installdir}/bin/o2tf.pyc
+%{_installdir}/bin/ocfs2_nicdown.pyc
+%{_installdir}/bin/open_delete.pyc
+%{_installdir}/bin/recovery_load.pyc
+%{_installdir}/bin/remote_mount.pyc
+%{_installdir}/bin/remote_umount.pyc
+%{_installdir}/bin/run_buildkernel.pyc
+%{_installdir}/bin/run_create_racer.pyc
+%{_installdir}/bin/run_extend_and_write.pyc
+%{_installdir}/bin/run_flock_unit_test.pyc
+%{_installdir}/bin/run_forkwriter.pyc
+%{_installdir}/bin/run_lvb_torture.pyc
+%{_installdir}/bin/run_multi_mmap.pyc
+%{_installdir}/bin/run_write_append_truncate.pyc
+%{_installdir}/bin/run_write_torture.pyc
+%{_installdir}/bin/test_atime_quantum.pyc
+%{_installdir}/bin/test_netfail.pyc
+%{_installdir}/bin/write_torture.pyc
+%{_installdir}/bin/buildkernel.pyo
+%{_installdir}/bin/command.pyo
+%{_installdir}/bin/crdel_del_files.pyo
+%{_installdir}/bin/crdel_gen_files.pyo
+%{_installdir}/bin/cross_delete.pyo
+%{_installdir}/bin/o2tf.pyo
+%{_installdir}/bin/ocfs2_nicdown.pyo
+%{_installdir}/bin/open_delete.pyo
+%{_installdir}/bin/recovery_load.pyo
+%{_installdir}/bin/remote_mount.pyo
+%{_installdir}/bin/remote_umount.pyo
+%{_installdir}/bin/run_buildkernel.pyo
+%{_installdir}/bin/run_create_racer.pyo
+%{_installdir}/bin/run_extend_and_write.pyo
+%{_installdir}/bin/run_flock_unit_test.pyo
+%{_installdir}/bin/run_forkwriter.pyo
+%{_installdir}/bin/run_lvb_torture.pyo
+%{_installdir}/bin/run_multi_mmap.pyo
+%{_installdir}/bin/run_write_append_truncate.pyo
+%{_installdir}/bin/run_write_torture.pyo
+%{_installdir}/bin/test_atime_quantum.pyo
+%{_installdir}/bin/test_netfail.pyo
+%{_installdir}/bin/write_torture.pyo
+%{_installdir}/bin/config.py
+%{_installdir}/bin/config.sh
+%{_installdir}/bin/fsx
+%{_installdir}/bin/inline-data
+%{_installdir}/bin/inline-dirs
+%{_installdir}/bin/multi-inline-data
+%{_installdir}/bin/multi-inline-dirs
+%{_installdir}/bin/multi-inline-run.sh
+%{_installdir}/bin/ocfs2_truncate.sh
+%{_installdir}/bin/single-inline-run.sh
+%{_installdir}/bin/splice_test.py
+%{_installdir}/bin/test.sh
+%{_installdir}/bin/test_truncate
+%{_installdir}/log
+%{_installdir}/workfiles/fsck-test/medium-disk/fsck.ocfs2.00.stdout
+%{_installdir}/workfiles/fsck-test/medium-disk/fsck.ocfs2.01.stdout
+%{_installdir}/workfiles/fsck-test/medium-disk/fsck.ocfs2.02.stdout
+%{_installdir}/workfiles/fsck-test/medium-disk/fsck.ocfs2.03.stdout
+%{_installdir}/workfiles/fsck-test/medium-disk/fsck.ocfs2.04.stdout
+%{_installdir}/workfiles/fsck-test/medium-disk/fsck.ocfs2.05.stdout
+%{_installdir}/workfiles/fsck-test/medium-disk/fsck.ocfs2.06.stdout
+%{_installdir}/workfiles/fsck-test/medium-disk/fsck.ocfs2.07.stdout
+%{_installdir}/workfiles/fsck-test/medium-disk/fsck.ocfs2.08.stdout
+%{_installdir}/workfiles/fsck-test/medium-disk/fsck.ocfs2.09.stdout
+%{_installdir}/workfiles/fsck-test/medium-disk/fsck.ocfs2.10.stdout
+%{_installdir}/workfiles/fsck-test/medium-disk/fsck.ocfs2.11.stdout
+%{_installdir}/workfiles/fsck-test/medium-disk/fsck.ocfs2.12.stdout
+%{_installdir}/workfiles/fsck-test/medium-disk/fsck.ocfs2.13.stdout
+%{_installdir}/workfiles/fsck-test/medium-disk/fsck.ocfs2.14.stdout
+%{_installdir}/workfiles/fsck-test/medium-disk/fsck.ocfs2.15.stdout
+%{_installdir}/workfiles/fsck-test/medium-disk/fsck.ocfs2.16.stdout
+%{_installdir}/workfiles/fsck-test/medium-disk/fsck.ocfs2.17.stdout
+%{_installdir}/workfiles/fsck-test/medium-disk/fsck.ocfs2.18.stdout
+%{_installdir}/workfiles/fsck-test/medium-disk/fsck.ocfs2.19.stdout
+%{_installdir}/workfiles/fsck-test/medium-disk/fsck.ocfs2.20.stdout
+%{_installdir}/workfiles/fsck-test/medium-disk/fsck.ocfs2.21.stdout
+%{_installdir}/workfiles/fsck-test/medium-disk/fsck.ocfs2.22.stdout
+%{_installdir}/workfiles/fsck-test/medium-disk/fsck.ocfs2.23.stdout
+%{_installdir}/workfiles/fsck-test/medium-disk/fsck.ocfs2.24.stdout
+%{_installdir}/workfiles/fsck-test/medium-disk/fsck.ocfs2.25.stdout
+%{_installdir}/workfiles/fsck-test/medium-disk/fsck.ocfs2.26.stdout
+%{_installdir}/workfiles/fsck-test/medium-disk/fsck.ocfs2.27.stdout
+%{_installdir}/workfiles/fsck-test/medium-disk/fsck.ocfs2.28.stdout
+%{_installdir}/workfiles/fsck-test/medium-disk/fsck.ocfs2.29.stdout
+%{_installdir}/workfiles/fsck-test/medium-disk/fsck.ocfs2.30.stdout
+%{_installdir}/workfiles/fsck-test/medium-disk/fsck.ocfs2.31.stdout
+%{_installdir}/workfiles/fsck-test/medium-disk/fsck.ocfs2.32.stdout
+%{_installdir}/workfiles/fsck-test/medium-disk/fsck.ocfs2.33.stdout
+%{_installdir}/workfiles/fsck-test/medium-disk/fsck.ocfs2.34.stdout
+%{_installdir}/workfiles/fsck-test/medium-disk/fsck.ocfs2.35.stdout
+%{_installdir}/workfiles/fsck-test/medium-disk/fsck.ocfs2.36.stdout
+%{_installdir}/workfiles/fsck-test/medium-disk/fsck.ocfs2.37.stdout
+%{_installdir}/workfiles/fsck-test/medium-disk/fsck.ocfs2.38.stdout
+%{_installdir}/workfiles/fsck-test/medium-disk/fsck.ocfs2.39.stdout
+%{_installdir}/workfiles/fsck-test/medium-disk/fsck.ocfs2.40.stdout
+%{_installdir}/workfiles/fsck-test/medium-disk/fsck.ocfs2.41.stdout
+%{_installdir}/workfiles/fsck-test/medium-disk/fsck.ocfs2.42.stdout
+%{_installdir}/workfiles/fsck-test/medium-disk/fsck.ocfs2.43.stdout
+%{_installdir}/workfiles/fsck-test/medium-disk/fsck.ocfs2.clean.stdout
+%{_installdir}/workfiles/fsck-test/small-disk/fsck.ocfs2.00.stdout
+%{_installdir}/workfiles/fsck-test/small-disk/fsck.ocfs2.01.stdout
+%{_installdir}/workfiles/fsck-test/small-disk/fsck.ocfs2.02.stdout
+%{_installdir}/workfiles/fsck-test/small-disk/fsck.ocfs2.03.stdout
+%{_installdir}/workfiles/fsck-test/small-disk/fsck.ocfs2.04.stdout
+%{_installdir}/workfiles/fsck-test/small-disk/fsck.ocfs2.05.stdout
+%{_installdir}/workfiles/fsck-test/small-disk/fsck.ocfs2.06.stdout
+%{_installdir}/workfiles/fsck-test/small-disk/fsck.ocfs2.07.stdout
+%{_installdir}/workfiles/fsck-test/small-disk/fsck.ocfs2.08.stdout
+%{_installdir}/workfiles/fsck-test/small-disk/fsck.ocfs2.09.stdout
+%{_installdir}/workfiles/fsck-test/small-disk/fsck.ocfs2.10.stdout
+%{_installdir}/workfiles/fsck-test/small-disk/fsck.ocfs2.11.stdout
+%{_installdir}/workfiles/fsck-test/small-disk/fsck.ocfs2.12.stdout
+%{_installdir}/workfiles/fsck-test/small-disk/fsck.ocfs2.13.stdout
+%{_installdir}/workfiles/fsck-test/small-disk/fsck.ocfs2.14.stdout
+%{_installdir}/workfiles/fsck-test/small-disk/fsck.ocfs2.15.stdout
+%{_installdir}/workfiles/fsck-test/small-disk/fsck.ocfs2.16.stdout
+%{_installdir}/workfiles/fsck-test/small-disk/fsck.ocfs2.17.stdout
+%{_installdir}/workfiles/fsck-test/small-disk/fsck.ocfs2.18.stdout
+%{_installdir}/workfiles/fsck-test/small-disk/fsck.ocfs2.19.stdout
+%{_installdir}/workfiles/fsck-test/small-disk/fsck.ocfs2.20.stdout
+%{_installdir}/workfiles/fsck-test/small-disk/fsck.ocfs2.21.stdout
+%{_installdir}/workfiles/fsck-test/small-disk/fsck.ocfs2.22.stdout
+%{_installdir}/workfiles/fsck-test/small-disk/fsck.ocfs2.23.stdout
+%{_installdir}/workfiles/fsck-test/small-disk/fsck.ocfs2.24.stdout
+%{_installdir}/workfiles/fsck-test/small-disk/fsck.ocfs2.25.stdout
+%{_installdir}/workfiles/fsck-test/small-disk/fsck.ocfs2.26.stdout
+%{_installdir}/workfiles/fsck-test/small-disk/fsck.ocfs2.27.stdout
+%{_installdir}/workfiles/fsck-test/small-disk/fsck.ocfs2.28.stdout
+%{_installdir}/workfiles/fsck-test/small-disk/fsck.ocfs2.29.stdout
+%{_installdir}/workfiles/fsck-test/small-disk/fsck.ocfs2.30.stdout
+%{_installdir}/workfiles/fsck-test/small-disk/fsck.ocfs2.31.stdout
+%{_installdir}/workfiles/fsck-test/small-disk/fsck.ocfs2.32.stdout
+%{_installdir}/workfiles/fsck-test/small-disk/fsck.ocfs2.33.stdout
+%{_installdir}/workfiles/fsck-test/small-disk/fsck.ocfs2.34.stdout
+%{_installdir}/workfiles/fsck-test/small-disk/fsck.ocfs2.35.stdout
+%{_installdir}/workfiles/fsck-test/small-disk/fsck.ocfs2.36.stdout
+%{_installdir}/workfiles/fsck-test/small-disk/fsck.ocfs2.37.stdout
+%{_installdir}/workfiles/fsck-test/small-disk/fsck.ocfs2.38.stdout
+%{_installdir}/workfiles/fsck-test/small-disk/fsck.ocfs2.39.stdout
+%{_installdir}/workfiles/fsck-test/small-disk/fsck.ocfs2.40.stdout
+%{_installdir}/workfiles/fsck-test/small-disk/fsck.ocfs2.41.stdout
+%{_installdir}/workfiles/fsck-test/small-disk/fsck.ocfs2.42.stdout
+%{_installdir}/workfiles/fsck-test/small-disk/fsck.ocfs2.43.stdout
+%{_installdir}/workfiles/fsck-test/small-disk/fsck.ocfs2.clean.stdout
+
+
+%changelog
+* Wed Oct 22 2008 Marcos Matsunaga <Marcos.Matsunaga at oracle.com>
+- Initial rpm spec
diff --git a/vendor/fc7/Makefile b/vendor/fc7/Makefile
new file mode 100644
index 0000000..7afe47c
--- /dev/null
+++ b/vendor/fc7/Makefile
@@ -0,0 +1,10 @@
+TOPDIR = ../..
+
+include $(TOPDIR)/Preamble.make
+
+DIST_FILES = 				\
+	rpmarch.guess			\
+	Vendor.make			\
+	vendor.guess
+
+include $(TOPDIR)/Postamble.make
diff --git a/vendor/fc7/Vendor.make b/vendor/fc7/Vendor.make
new file mode 100644
index 0000000..025de08
--- /dev/null
+++ b/vendor/fc7/Vendor.make
@@ -0,0 +1,10 @@
+#
+# Fedora 7
+#
+
+TOOLSARCH = $(shell $(TOPDIR)/vendor/fc7/rpmarch.guess tools $(TOPDIR))
+VENDOR_EXTENSION = fc7
+
+include $(TOPDIR)/vendor/common/Vendor.make
+
+packages: rpm
diff --git a/vendor/fc7/rpmarch.guess b/vendor/fc7/rpmarch.guess
new file mode 100755
index 0000000..77a1142
--- /dev/null
+++ b/vendor/fc7/rpmarch.guess
@@ -0,0 +1,68 @@
+#! /bin/sh
+
+mode="$1"
+srcdir="$2"
+
+host_cpu=
+
+
+QUERYFILE=/etc/fedora-release
+
+if test -n "$QUERYFILE"; then
+  host_cpu="`rpm -qf $QUERYFILE --queryformat \"%{ARCH}\"`"
+fi
+
+if test -z "$host_cpu" -o "$host_cpu" = "noarch" ; then
+  host_alias=`$srcdir/config.guess`
+  host=`$srcdir/config.sub $host_alias`
+  host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
+fi
+
+case "$host_cpu" in
+  x86_64|ia64|s390x)
+    TOOLSARCH="$host_cpu"
+    ;;
+  i386|i486|i586|i686|i786|k6|k7)
+    TOOLSARCH="i386"
+    ;;
+  ppc|ppc64|ppciseries|ppcpseries|ppc64iseries|ppc64pseries|powerpc|powerpc64)
+    TOOLSARCH="ppc"
+    ;;
+  *)
+    echo "rpmarch.guess: Warning: unknown RPM CPU architecture: $host_cpu" >&2
+    TOOLSARCH=""
+    ;;
+esac
+
+# Only a few of these need to be overwritten from RPM's default
+case "$host_cpu" in
+  i386|i586)
+    MODULEARCH="i686"
+    ;;
+  ppc|ppc64|ppciseries|ppcpseries|ppc64iseries|ppc64pseries|powerpc|powerpc64)
+    MODULEARCH="ppc64"
+    ;;
+  *)
+    MODULEARCH=""
+    ;;
+esac
+
+case "$mode" in
+  module)
+    if [ -n "$MODULEARCH" ] ; then
+      echo "--target $MODULEARCH"
+    fi
+    ;;
+  tools)
+    if [ -n "$TOOLSARCH" ] ; then
+      echo "--target $TOOLSARCH"
+    fi
+    ;;
+  *)
+    echo "rpmarch.guess: Invalid mode: $mode" >&2
+    echo "error"
+    exit 1
+    ;;
+esac
+
+exit 0
diff --git a/vendor/fc7/vendor.guess b/vendor/fc7/vendor.guess
new file mode 100755
index 0000000..776fae4
--- /dev/null
+++ b/vendor/fc7/vendor.guess
@@ -0,0 +1,13 @@
+#!/bin/sh
+
+if [ ! -f /etc/redhat-release ]
+then
+    exit 1
+fi
+
+case "`rpm -qf /etc/fedora-release --qf '%{VERSION}' 2>/dev/null`" in
+    7*) ;;
+    *) exit 1;;
+esac
+
+exit 0
diff --git a/vendor/fc8/Makefile b/vendor/fc8/Makefile
new file mode 100644
index 0000000..7afe47c
--- /dev/null
+++ b/vendor/fc8/Makefile
@@ -0,0 +1,10 @@
+TOPDIR = ../..
+
+include $(TOPDIR)/Preamble.make
+
+DIST_FILES = 				\
+	rpmarch.guess			\
+	Vendor.make			\
+	vendor.guess
+
+include $(TOPDIR)/Postamble.make
diff --git a/vendor/fc8/Vendor.make b/vendor/fc8/Vendor.make
new file mode 100644
index 0000000..6a78602
--- /dev/null
+++ b/vendor/fc8/Vendor.make
@@ -0,0 +1,10 @@
+#
+# Fedora 8
+#
+
+TOOLSARCH = $(shell $(TOPDIR)/vendor/fc8/rpmarch.guess tools $(TOPDIR))
+VENDOR_EXTENSION = fc8
+
+include $(TOPDIR)/vendor/common/Vendor.make
+
+packages: rpm
diff --git a/vendor/fc8/rpmarch.guess b/vendor/fc8/rpmarch.guess
new file mode 100755
index 0000000..77a1142
--- /dev/null
+++ b/vendor/fc8/rpmarch.guess
@@ -0,0 +1,68 @@
+#! /bin/sh
+
+mode="$1"
+srcdir="$2"
+
+host_cpu=
+
+
+QUERYFILE=/etc/fedora-release
+
+if test -n "$QUERYFILE"; then
+  host_cpu="`rpm -qf $QUERYFILE --queryformat \"%{ARCH}\"`"
+fi
+
+if test -z "$host_cpu" -o "$host_cpu" = "noarch" ; then
+  host_alias=`$srcdir/config.guess`
+  host=`$srcdir/config.sub $host_alias`
+  host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
+fi
+
+case "$host_cpu" in
+  x86_64|ia64|s390x)
+    TOOLSARCH="$host_cpu"
+    ;;
+  i386|i486|i586|i686|i786|k6|k7)
+    TOOLSARCH="i386"
+    ;;
+  ppc|ppc64|ppciseries|ppcpseries|ppc64iseries|ppc64pseries|powerpc|powerpc64)
+    TOOLSARCH="ppc"
+    ;;
+  *)
+    echo "rpmarch.guess: Warning: unknown RPM CPU architecture: $host_cpu" >&2
+    TOOLSARCH=""
+    ;;
+esac
+
+# Only a few of these need to be overwritten from RPM's default
+case "$host_cpu" in
+  i386|i586)
+    MODULEARCH="i686"
+    ;;
+  ppc|ppc64|ppciseries|ppcpseries|ppc64iseries|ppc64pseries|powerpc|powerpc64)
+    MODULEARCH="ppc64"
+    ;;
+  *)
+    MODULEARCH=""
+    ;;
+esac
+
+case "$mode" in
+  module)
+    if [ -n "$MODULEARCH" ] ; then
+      echo "--target $MODULEARCH"
+    fi
+    ;;
+  tools)
+    if [ -n "$TOOLSARCH" ] ; then
+      echo "--target $TOOLSARCH"
+    fi
+    ;;
+  *)
+    echo "rpmarch.guess: Invalid mode: $mode" >&2
+    echo "error"
+    exit 1
+    ;;
+esac
+
+exit 0
diff --git a/vendor/fc8/vendor.guess b/vendor/fc8/vendor.guess
new file mode 100755
index 0000000..3a0ec39
--- /dev/null
+++ b/vendor/fc8/vendor.guess
@@ -0,0 +1,13 @@
+#!/bin/sh
+
+if [ ! -f /etc/redhat-release ]
+then
+    exit 1
+fi
+
+case "`rpm -qf /etc/fedora-release --qf '%{VERSION}' 2>/dev/null`" in
+    8*) ;;
+    *) exit 1;;
+esac
+
+exit 0
diff --git a/vendor/fc9/Makefile b/vendor/fc9/Makefile
new file mode 100644
index 0000000..7afe47c
--- /dev/null
+++ b/vendor/fc9/Makefile
@@ -0,0 +1,10 @@
+TOPDIR = ../..
+
+include $(TOPDIR)/Preamble.make
+
+DIST_FILES = 				\
+	rpmarch.guess			\
+	Vendor.make			\
+	vendor.guess
+
+include $(TOPDIR)/Postamble.make
diff --git a/vendor/fc9/Vendor.make b/vendor/fc9/Vendor.make
new file mode 100644
index 0000000..db9fde1
--- /dev/null
+++ b/vendor/fc9/Vendor.make
@@ -0,0 +1,10 @@
+#
+# Fedora 9
+#
+
+TOOLSARCH = $(shell $(TOPDIR)/vendor/fc9/rpmarch.guess tools $(TOPDIR))
+VENDOR_EXTENSION = fc9
+
+include $(TOPDIR)/vendor/common/Vendor.make
+
+packages: rpm
diff --git a/vendor/fc9/rpmarch.guess b/vendor/fc9/rpmarch.guess
new file mode 100755
index 0000000..77a1142
--- /dev/null
+++ b/vendor/fc9/rpmarch.guess
@@ -0,0 +1,68 @@
+#! /bin/sh
+
+mode="$1"
+srcdir="$2"
+
+host_cpu=
+
+
+QUERYFILE=/etc/fedora-release
+
+if test -n "$QUERYFILE"; then
+  host_cpu="`rpm -qf $QUERYFILE --queryformat \"%{ARCH}\"`"
+fi
+
+if test -z "$host_cpu" -o "$host_cpu" = "noarch" ; then
+  host_alias=`$srcdir/config.guess`
+  host=`$srcdir/config.sub $host_alias`
+  host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
+fi
+
+case "$host_cpu" in
+  x86_64|ia64|s390x)
+    TOOLSARCH="$host_cpu"
+    ;;
+  i386|i486|i586|i686|i786|k6|k7)
+    TOOLSARCH="i386"
+    ;;
+  ppc|ppc64|ppciseries|ppcpseries|ppc64iseries|ppc64pseries|powerpc|powerpc64)
+    TOOLSARCH="ppc"
+    ;;
+  *)
+    echo "rpmarch.guess: Warning: unknown RPM CPU architecture: $host_cpu" >&2
+    TOOLSARCH=""
+    ;;
+esac
+
+# Only a few of these need to be overwritten from RPM's default
+case "$host_cpu" in
+  i386|i586)
+    MODULEARCH="i686"
+    ;;
+  ppc|ppc64|ppciseries|ppcpseries|ppc64iseries|ppc64pseries|powerpc|powerpc64)
+    MODULEARCH="ppc64"
+    ;;
+  *)
+    MODULEARCH=""
+    ;;
+esac
+
+case "$mode" in
+  module)
+    if [ -n "$MODULEARCH" ] ; then
+      echo "--target $MODULEARCH"
+    fi
+    ;;
+  tools)
+    if [ -n "$TOOLSARCH" ] ; then
+      echo "--target $TOOLSARCH"
+    fi
+    ;;
+  *)
+    echo "rpmarch.guess: Invalid mode: $mode" >&2
+    echo "error"
+    exit 1
+    ;;
+esac
+
+exit 0
diff --git a/vendor/fc9/vendor.guess b/vendor/fc9/vendor.guess
new file mode 100755
index 0000000..13d58e0
--- /dev/null
+++ b/vendor/fc9/vendor.guess
@@ -0,0 +1,13 @@
+#!/bin/sh
+
+if [ ! -f /etc/redhat-release ]
+then
+    exit 1
+fi
+
+case "`rpm -qf /etc/fedora-release --qf '%{VERSION}' 2>/dev/null`" in
+    9*) ;;
+    *) exit 1;;
+esac
+
+exit 0
diff --git a/vendor/rhel4/Makefile b/vendor/rhel4/Makefile
new file mode 100644
index 0000000..7afe47c
--- /dev/null
+++ b/vendor/rhel4/Makefile
@@ -0,0 +1,10 @@
+TOPDIR = ../..
+
+include $(TOPDIR)/Preamble.make
+
+DIST_FILES = 				\
+	rpmarch.guess			\
+	Vendor.make			\
+	vendor.guess
+
+include $(TOPDIR)/Postamble.make
diff --git a/vendor/rhel4/Vendor.make b/vendor/rhel4/Vendor.make
new file mode 100644
index 0000000..2245f44
--- /dev/null
+++ b/vendor/rhel4/Vendor.make
@@ -0,0 +1,10 @@
+#
+# RHEL 4
+#
+
+TOOLSARCH = $(shell $(TOPDIR)/vendor/rhel4/rpmarch.guess tools $(TOPDIR))
+VENDOR_EXTENSION = el4
+
+include $(TOPDIR)/vendor/common/Vendor.make
+
+packages: rpm
diff --git a/vendor/rhel4/rpmarch.guess b/vendor/rhel4/rpmarch.guess
new file mode 100755
index 0000000..8519589
--- /dev/null
+++ b/vendor/rhel4/rpmarch.guess
@@ -0,0 +1,68 @@
+#! /bin/sh
+
+mode="$1"
+srcdir="$2"
+
+host_cpu=
+
+
+QUERYFILE=/etc/redhat-release
+
+if test -n "$QUERYFILE"; then
+  host_cpu="`rpm -qf $QUERYFILE --queryformat \"%{ARCH}\"`"
+fi
+
+if test -z "$host_cpu" -o "$host_cpu" = "noarch" ; then
+  host_alias=`$srcdir/config.guess`
+  host=`$srcdir/config.sub $host_alias`
+  host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
+fi
+
+case "$host_cpu" in
+  x86_64|ia64|s390x)
+    TOOLSARCH="$host_cpu"
+    ;;
+  i386|i486|i586|i686|i786|k6|k7)
+    TOOLSARCH="i386"
+    ;;
+  ppc|ppc64|ppciseries|ppcpseries|ppc64iseries|ppc64pseries|powerpc|powerpc64)
+    TOOLSARCH="ppc"
+    ;;
+  *)
+    echo "rpmarch.guess: Warning: unknown RPM CPU architecture: $host_cpu" >&2
+    TOOLSARCH=""
+    ;;
+esac
+
+# Only a few of these need to be overwritten from RPM's default
+case "$host_cpu" in
+  i386|i586)
+    MODULEARCH="i686"
+    ;;
+  ppc|ppc64|ppciseries|ppcpseries|ppc64iseries|ppc64pseries|powerpc|powerpc64)
+    MODULEARCH="ppc64"
+    ;;
+  *)
+    MODULEARCH=""
+    ;;
+esac
+
+case "$mode" in
+  module)
+    if [ -n "$MODULEARCH" ] ; then
+      echo "--target $MODULEARCH"
+    fi
+    ;;
+  tools)
+    if [ -n "$TOOLSARCH" ] ; then
+      echo "--target $TOOLSARCH"
+    fi
+    ;;
+  *)
+    echo "rpmarch.guess: Invalid mode: $mode" >&2
+    echo "error"
+    exit 1
+    ;;
+esac
+
+exit 0
diff --git a/vendor/rhel4/vendor.guess b/vendor/rhel4/vendor.guess
new file mode 100755
index 0000000..7ad5871
--- /dev/null
+++ b/vendor/rhel4/vendor.guess
@@ -0,0 +1,14 @@
+#!/bin/sh
+
+if [ ! -f /etc/redhat-release ]
+then
+    exit 1
+fi
+
+case "`rpm -qf /etc/redhat-release --qf '%{VERSION}' 2>/dev/null`" in
+    4[AEW]S) ;;
+    4) ;;
+    *) exit 1 ;;
+esac
+
+exit 0
diff --git a/vendor/rhel5/Makefile b/vendor/rhel5/Makefile
new file mode 100644
index 0000000..7afe47c
--- /dev/null
+++ b/vendor/rhel5/Makefile
@@ -0,0 +1,10 @@
+TOPDIR = ../..
+
+include $(TOPDIR)/Preamble.make
+
+DIST_FILES = 				\
+	rpmarch.guess			\
+	Vendor.make			\
+	vendor.guess
+
+include $(TOPDIR)/Postamble.make
diff --git a/vendor/rhel5/Vendor.make b/vendor/rhel5/Vendor.make
new file mode 100644
index 0000000..fb5b591
--- /dev/null
+++ b/vendor/rhel5/Vendor.make
@@ -0,0 +1,10 @@
+#
+# RHEL 5
+#
+
+TOOLSARCH = $(shell $(TOPDIR)/vendor/rhel5/rpmarch.guess tools $(TOPDIR))
+VENDOR_EXTENSION = el5
+
+include $(TOPDIR)/vendor/common/Vendor.make
+
+packages: rpm
diff --git a/vendor/rhel5/rpmarch.guess b/vendor/rhel5/rpmarch.guess
new file mode 100755
index 0000000..8519589
--- /dev/null
+++ b/vendor/rhel5/rpmarch.guess
@@ -0,0 +1,68 @@
+#! /bin/sh
+
+mode="$1"
+srcdir="$2"
+
+host_cpu=
+
+
+QUERYFILE=/etc/redhat-release
+
+if test -n "$QUERYFILE"; then
+  host_cpu="`rpm -qf $QUERYFILE --queryformat \"%{ARCH}\"`"
+fi
+
+if test -z "$host_cpu" -o "$host_cpu" = "noarch" ; then
+  host_alias=`$srcdir/config.guess`
+  host=`$srcdir/config.sub $host_alias`
+  host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
+fi
+
+case "$host_cpu" in
+  x86_64|ia64|s390x)
+    TOOLSARCH="$host_cpu"
+    ;;
+  i386|i486|i586|i686|i786|k6|k7)
+    TOOLSARCH="i386"
+    ;;
+  ppc|ppc64|ppciseries|ppcpseries|ppc64iseries|ppc64pseries|powerpc|powerpc64)
+    TOOLSARCH="ppc"
+    ;;
+  *)
+    echo "rpmarch.guess: Warning: unknown RPM CPU architecture: $host_cpu" >&2
+    TOOLSARCH=""
+    ;;
+esac
+
+# Only a few of these need to be overwritten from RPM's default
+case "$host_cpu" in
+  i386|i586)
+    MODULEARCH="i686"
+    ;;
+  ppc|ppc64|ppciseries|ppcpseries|ppc64iseries|ppc64pseries|powerpc|powerpc64)
+    MODULEARCH="ppc64"
+    ;;
+  *)
+    MODULEARCH=""
+    ;;
+esac
+
+case "$mode" in
+  module)
+    if [ -n "$MODULEARCH" ] ; then
+      echo "--target $MODULEARCH"
+    fi
+    ;;
+  tools)
+    if [ -n "$TOOLSARCH" ] ; then
+      echo "--target $TOOLSARCH"
+    fi
+    ;;
+  *)
+    echo "rpmarch.guess: Invalid mode: $mode" >&2
+    echo "error"
+    exit 1
+    ;;
+esac
+
+exit 0
diff --git a/vendor/rhel5/vendor.guess b/vendor/rhel5/vendor.guess
new file mode 100755
index 0000000..a3d90cc
--- /dev/null
+++ b/vendor/rhel5/vendor.guess
@@ -0,0 +1,14 @@
+#!/bin/sh
+
+if [ ! -f /etc/redhat-release ]
+then
+    exit 1
+fi
+
+case "`rpm -qf /etc/redhat-release --qf '%{VERSION}' 2>/dev/null`" in
+    4.9*) ;;
+    5*) ;;
+    *) exit 1;;
+esac
+
+exit 0
diff --git a/vendor/sles10/Makefile b/vendor/sles10/Makefile
new file mode 100644
index 0000000..89c16a7
--- /dev/null
+++ b/vendor/sles10/Makefile
@@ -0,0 +1,10 @@
+TOPDIR = ../..
+
+include $(TOPDIR)/Preamble.make
+
+DIST_FILES =				\
+	rpmarch.guess			\
+	Vendor.make			\
+	vendor.guess
+
+include $(TOPDIR)/Postamble.make
diff --git a/vendor/sles10/Vendor.make b/vendor/sles10/Vendor.make
new file mode 100644
index 0000000..85969ea
--- /dev/null
+++ b/vendor/sles10/Vendor.make
@@ -0,0 +1,10 @@
+#
+# SLES 10
+#
+
+TOOLSARCH = $(shell $(TOPDIR)/vendor/sles10/rpmarch.guess tools $(TOPDIR))
+VENDOR_EXTENSION = SLE10
+
+include $(TOPDIR)/vendor/common/Vendor.make
+
+packages: rpm
diff --git a/vendor/sles10/rpmarch.guess b/vendor/sles10/rpmarch.guess
new file mode 100755
index 0000000..3514627
--- /dev/null
+++ b/vendor/sles10/rpmarch.guess
@@ -0,0 +1,70 @@
+#! /bin/sh
+
+mode="$1"
+srcdir="$2"
+
+host_cpu=
+
+QUERYFILE=/etc/SuSE-release
+
+if test -n "$QUERYFILE"; then
+  host_cpu="`rpm -qf $QUERYFILE --queryformat \"%{ARCH}\"`"
+fi
+
+if test -z "$host_cpu" -o "$host_cpu" = "noarch" ; then
+  host_alias=`$srcdir/config.guess`
+  host=`$srcdir/config.sub $host_alias`
+  host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
+fi
+
+case "$host_cpu" in
+  x86_64|ia64|s390x)
+    TOOLSARCH="$host_cpu"
+    ;;
+  i386|i486|i586|i686|i786|k6|k7)
+    TOOLSARCH="i386"
+    ;;
+  ppc|ppc64|ppciseries|ppcpseries|ppc64iseries|ppc64pseries|powerpc|powerpc64)
+    TOOLSARCH="ppc"
+    ;;
+  *)
+    echo "rpmarch.guess: Warning: unknown RPM CPU architecture: $host_cpu" >&2
+    TOOLSARCH=""
+    ;;
+esac
+
+# Only a few of these need to be overwritten from RPM's default
+case "$host_cpu" in
+  i586)
+    MODULEARCH="$host_cpu"
+    ;;
+  i386|i686)
+    MODULEARCH="i586"
+    ;;
+  ppc|ppc64|ppciseries|ppcpseries|ppc64iseries|ppc64pseries|powerpc|powerpc64)
+    MODULEARCH="ppc64"
+    ;;
+  *)
+    MODULEARCH=""
+    ;;
+esac
+
+case "$mode" in
+  module)
+    if [ -n "$MODULEARCH" ] ; then
+      echo "--target $MODULEARCH"
+    fi
+    ;;
+  tools)
+    if [ -n "$TOOLSARCH" ] ; then
+      echo "--target $TOOLSARCH"
+    fi
+    ;;
+  *)
+    echo "rpmarch.guess: Invalid mode: $mode" >&2
+    echo "error"
+    exit 1
+    ;;
+esac
+
+exit 0
diff --git a/vendor/sles10/vendor.guess b/vendor/sles10/vendor.guess
new file mode 100755
index 0000000..a11ea3b
--- /dev/null
+++ b/vendor/sles10/vendor.guess
@@ -0,0 +1,13 @@
+#!/bin/sh
+
+if [ ! -f /etc/SuSE-release ]
+then
+    exit 1
+fi
+
+if [ "`rpm -qf /etc/SuSE-release --qf '%{VERSION}' 2>/dev/null`" != "10" ]
+then
+    exit 1
+fi
+
+exit 0
diff --git a/vendor/sles9/Makefile b/vendor/sles9/Makefile
new file mode 100644
index 0000000..89c16a7
--- /dev/null
+++ b/vendor/sles9/Makefile
@@ -0,0 +1,10 @@
+TOPDIR = ../..
+
+include $(TOPDIR)/Preamble.make
+
+DIST_FILES =				\
+	rpmarch.guess			\
+	Vendor.make			\
+	vendor.guess
+
+include $(TOPDIR)/Postamble.make
diff --git a/vendor/sles9/Vendor.make b/vendor/sles9/Vendor.make
new file mode 100644
index 0000000..8cb0482
--- /dev/null
+++ b/vendor/sles9/Vendor.make
@@ -0,0 +1,10 @@
+#
+# SLES 9
+#
+
+TOOLSARCH = $(shell $(TOPDIR)/vendor/sles9/rpmarch.guess tools $(TOPDIR))
+VENDOR_EXTENSION = SLE9
+
+include $(TOPDIR)/vendor/common/Vendor.make
+
+packages: rpm
diff --git a/vendor/sles9/rpmarch.guess b/vendor/sles9/rpmarch.guess
new file mode 100755
index 0000000..3514627
--- /dev/null
+++ b/vendor/sles9/rpmarch.guess
@@ -0,0 +1,70 @@
+#! /bin/sh
+
+mode="$1"
+srcdir="$2"
+
+host_cpu=
+
+QUERYFILE=/etc/SuSE-release
+
+if test -n "$QUERYFILE"; then
+  host_cpu="`rpm -qf $QUERYFILE --queryformat \"%{ARCH}\"`"
+fi
+
+if test -z "$host_cpu" -o "$host_cpu" = "noarch" ; then
+  host_alias=`$srcdir/config.guess`
+  host=`$srcdir/config.sub $host_alias`
+  host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
+fi
+
+case "$host_cpu" in
+  x86_64|ia64|s390x)
+    TOOLSARCH="$host_cpu"
+    ;;
+  i386|i486|i586|i686|i786|k6|k7)
+    TOOLSARCH="i386"
+    ;;
+  ppc|ppc64|ppciseries|ppcpseries|ppc64iseries|ppc64pseries|powerpc|powerpc64)
+    TOOLSARCH="ppc"
+    ;;
+  *)
+    echo "rpmarch.guess: Warning: unknown RPM CPU architecture: $host_cpu" >&2
+    TOOLSARCH=""
+    ;;
+esac
+
+# Only a few of these need to be overwritten from RPM's default
+case "$host_cpu" in
+  i586)
+    MODULEARCH="$host_cpu"
+    ;;
+  i386|i686)
+    MODULEARCH="i586"
+    ;;
+  ppc|ppc64|ppciseries|ppcpseries|ppc64iseries|ppc64pseries|powerpc|powerpc64)
+    MODULEARCH="ppc64"
+    ;;
+  *)
+    MODULEARCH=""
+    ;;
+esac
+
+case "$mode" in
+  module)
+    if [ -n "$MODULEARCH" ] ; then
+      echo "--target $MODULEARCH"
+    fi
+    ;;
+  tools)
+    if [ -n "$TOOLSARCH" ] ; then
+      echo "--target $TOOLSARCH"
+    fi
+    ;;
+  *)
+    echo "rpmarch.guess: Invalid mode: $mode" >&2
+    echo "error"
+    exit 1
+    ;;
+esac
+
+exit 0
diff --git a/vendor/sles9/vendor.guess b/vendor/sles9/vendor.guess
new file mode 100755
index 0000000..7a5d7ad
--- /dev/null
+++ b/vendor/sles9/vendor.guess
@@ -0,0 +1,13 @@
+#!/bin/sh
+
+if [ ! -f /etc/SuSE-release ]
+then
+    exit 1
+fi
+
+if [ "`rpm -qf /etc/SuSE-release --qf '%{VERSION}' 2>/dev/null`" != "9" ]
+then
+    exit 1
+fi
+
+exit 0
-- 
1.5.6.3




More information about the Ocfs2-test-devel mailing list