rules revision 09ed5ee011f3a6cd9d4742216ad3bb7dbf855641
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync# Copyright (C) 2006-2011 Oracle Corporation
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync# This file is part of VirtualBox Open Source Edition (OSE), as
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync# available from http://www.virtualbox.org. This file is free software;
54259e443abcd8197f7c3158bb7f69457ca1d1davboxsync# you can redistribute it and/or modify it under the terms of the GNU
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync# General Public License as published by the Free Software Foundation,
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync# in version 2 as it comes in the "COPYING" file of the VirtualBox OSE
2581ea3f1f32d09a6e2d443661ed4b01e40bfefavboxsync# distribution. VirtualBox OSE is distributed in the hope that it will
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync# be useful, but WITHOUT ANY WARRANTY of any kind.
79dc091db288c096b6e03888a095477ded84f503vboxsync$(error call rpm/rules from src/VBox/Installer/linux)
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsyncifneq ($(wildcard /usr/lib/rpm/find-requires.ksyms),)
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync# don't allow to check for kernel syms, otherwise we depend on specific kernel versions!
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync$(error /usr/lib/rpm/find-requires.ksyms must not be installed)
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsyncifneq ($(wildcard /usr/lib/rpm/find-supplements.ksyms),)
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync# same for openSUSE
1e6ce952c4f734483ec50ecd9a2e6e30d0349e96vboxsync$(error /usr/lib/rpm/find-supplements.ksyms must not be installed)
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsyncifeq ($(shell if grep -q '^/usr/lib/virtualbox' /etc/permissions* 2>/dev/null; then echo yes; fi),yes)
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync# make sure openSUSE permissions fixes don't interfere with us
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsyncpkgdir := $(if $(PKGDIR),$(PKGDIR),$(shell cd ../../../../..; pwd))
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsyncrpmlib := $(shell if [ `uname -m` = "x86_64" ]; then echo "lib64"; else echo "lib"; fi)
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsyncarch := $(shell if [ `uname -m` = "x86_64" ]; then echo "amd64"; else echo "i386"; fi)
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync # look for fedora
5f9dfb422a6ed57822f9c0cb94fa7df8d24acc9bvboxsync rpmrel := $(shell cat /etc/fedora-release | sed -e 's/^Fedora *release *\([1-9][0-9]*\) .*/fedora\1/')
ifeq ($(filter-out rhel4 rhel5 rhel6 ol4 ol5 ol6 centos4 centos5 centos6 fedora9 fedora11 fedora12 fedora13 fedora14 fedora15 turbolinux11,$(rpmrel)),)
ifeq ($(filter-out openSUSE110 openSUSE111 openSUSE112 openSUSE113 openSUSE114 sles10.1 sles11.0,$(rpmrel)),)
rpmver :=$(ver)$(if $(NOSUBVER),,$(if $(svn_revision),_$(svn_revision),)$(VERSUFFIX)$(if $(DEBUG),_dbg,))$(if $(BLEEDING_EDGE),_$(BLEEDING_EDGE),)
instmod := $(if $(filter rhel4 rhel5 rhel6 ol4 ol5 ol6 centos4 centos5 centos6 sles10.1 sles11.0 fedora13 fedora14 fedora15,$(rpmrel)),,install_rpm)
$(if $(filter rhel4 rhel5 ol4 ol5 centos4 centos5 sles10.1 turbolinux11,$(rpmrel)),--with-qt4-dir=/home/vbox/Qt-4.4.3-stdc++6-$(arch)) \
$(doc_dir) \
$(if $(filter rhel4 rhel5 ol4 ol5 centos4 centos5 fedora9 fedora10 sles10.1 turbolinux11,$(rpmrel)),,VBOX_WITH_SYSFS_BY_DEFAULT=1)
sed \
-e 's|%MACROSPYTHON%|$(if $(wildcard /usr/lib/rpm/macros.python),%include /usr/lib/rpm/macros.python,)|g' \
-e 's|%LIBASOUND%|$(if $(filter lib64,$(rpmlib)),libasound.so.2()(64bit),libasound.so.2)|g' \
-e '/#include installer-utils.sh/ {' \
sed \
sed \
sed \