Changeset 63946 in vbox for trunk/src/VBox/Installer/linux/rpm
- Timestamp:
- Sep 22, 2016 12:05:35 PM (8 years ago)
- svn:sync-xref-src-repo-rev:
- 110832
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Installer/linux/rpm/rules
r63631 r63946 32 32 # STAGEDISO=<path> don't build the VBoxAdditions, use the precompiled .iso 33 33 # PKGDIR=<path> where to store the final package(s) 34 # BLEEDING_EDGE=xyz35 34 # svn_revision=xxx do not depend on subversion being available, but use this 36 35 # hard-coded revision number instead … … 81 80 82 81 ifneq ($(MAKECMDGOALS),clean) 83 rpmrel := $(subst ol,el,$(subst rhel,el,$(s hell cat /etc/distname)))82 rpmrel := $(subst ol,el,$(subst rhel,el,$(subst centos,el,$(shell cat /etc/distname)))) 84 83 ifeq ($(rpmrel),) 85 84 # look for fedora … … 88 87 ifeq ($(rpmrel),) 89 88 # look for OL 90 rpmrel := $(shell cat /etc/enterprise-release 2> /dev/null | sed -ne 's/^Enterprise Linux[a-zA-Z ]*\([1-9][0-9]*\).*/ ol\1/p')89 rpmrel := $(shell cat /etc/enterprise-release 2> /dev/null | sed -ne 's/^Enterprise Linux[a-zA-Z ]*\([1-9][0-9]*\).*/el\1/p') 91 90 endif 92 91 ifeq ($(rpmrel),) 93 92 # look for CentOS 94 rpmrel := $(shell cat /etc/redhat-release 2> /dev/null | sed -ne 's/^CentOS[a-zA-Z ]*\([1-9][0-9]*\).*/ centos\1/p')93 rpmrel := $(shell cat /etc/redhat-release 2> /dev/null | sed -ne 's/^CentOS[a-zA-Z ]*\([1-9][0-9]*\).*/el\1/p') 95 94 endif 96 95 ifeq ($(rpmrel),) 97 96 # look for Red Hat 98 rpmrel := $(shell cat /etc/redhat-release 2> /dev/null | sed -ne 's/^Red Hat[a-zA-Z ]*\([1-9][0-9]*\).*/ centos\1/p')97 rpmrel := $(shell cat /etc/redhat-release 2> /dev/null | sed -ne 's/^Red Hat[a-zA-Z ]*\([1-9][0-9]*\).*/el\1/p') 99 98 endif 100 99 ifeq ($(rpmrel),) … … 107 106 endif 108 107 109 ifeq ($(filter-out el5 el6 ol5 ol6 el7 centos5 centos6fedora18 fedora19 fedora20 fedora21 fedora22 fedora24,$(rpmrel)),)108 ifeq ($(filter-out el5 el6 el7 fedora18 fedora19 fedora20 fedora21 fedora22 fedora24,$(rpmrel)),) 110 109 rpmspec := rpm_redhat 111 110 endif 112 ifeq ($(filter-out openSUSE110 openSUSE111 openSUSE112 openSUSE113 openSUSE114 openSUSE123 openSUSE131 openSUSE132 sles10.1 sles11.0,$(rpmrel)),)111 ifeq ($(filter-out openSUSE110 openSUSE111 openSUSE112 openSUSE113 openSUSE114 openSUSE123 openSUSE131 openSUSE132,$(rpmrel)),) 113 112 rpmspec := rpm_suse 114 endif115 ifeq ($(filter-out mdv2009.1 mdv2010.0 mdv2011.0,$(rpmrel)),)116 rpmspec := rpm_mdv117 113 endif 118 114 ifeq ($(rpmspec),) … … 128 124 129 125 ver := $(VBOX_VERSION_STRING) 130 rpmver :=$(ver)$(if $(NOSUBVER),,$(if $(svn_revision),_$(svn_revision),)$(VERSUFFIX)$(if $(HEADLESS),_headless,)$(if $(DEBUG),_dbg,)) $(if $(BLEEDING_EDGE),_$(BLEEDING_EDGE),)126 rpmver :=$(ver)$(if $(NOSUBVER),,$(if $(svn_revision),_$(svn_revision),)$(VERSUFFIX)$(if $(HEADLESS),_headless,)$(if $(DEBUG),_dbg,)) 131 127 archdir := $(current)/rpm/VirtualBox-$(ver) 132 128 rpmname := $(verpkg)-$(rpmver)_$(rpmrel) … … 150 146 cfg_flags := $(if $(NOQT),--disable-qt,) \ 151 147 $(if $(NOSDL),--disable-vboxsdl,) \ 152 $(if $(filter sles10.1,$(rpmrel)),--build-libxml2,) \153 $(if $(filter el5 ol5 centos5 el6 ol6 centos6 sles10.1 sles11.0 mdv2011.0,$(rpmrel)),--build-libvpx,) \154 $(if $(filter el5 ol5 centos5 sles10.1 sles11.0,$(rpmrel)),--build-libcurl,) \155 $(if $(filter el5 ol5 centos5 sles10.1,$(rpmrel)),--disable-sdl-ttf,) \156 $(if $(filter el5 ol5 centos5 sles10.1,$(rpmrel)),--disable-pulse,) \148 $(if $(filter el5 el6,$(rpmrel)),--build-libvpx,) \ 149 $(if $(filter el5,$(rpmrel)),--build-libcurl,) \ 150 $(if $(filter el5,$(rpmrel)),--disable-sdl-ttf,) \ 151 $(if $(filter el5,$(rpmrel)),--disable-pulse,) \ 152 $(if $(filter el5,$(rpmrel)),--disable-python,) \ 157 153 $(if $(ose),--ose,) $(if $(LINUX),--with-linux=$(LINUX),) \ 158 154 $(if $(HEADLESS),--build-headless,) \ … … 168 164 VBOX_WITHOUT_EXTPACK_PUEL_PACKING=1 \ 169 165 VBOX_WITHOUT_EXTPACK_VNC_PACKING=1 \ 170 $(if $(filter el5 ol5 centos5 el6 ol6 centos6 sles10.1 sles11.0,$(rpmrel)),,VBOX_WITH_VMSVGA3D=1) \166 $(if $(filter el5 el6,$(rpmrel)),,VBOX_WITH_VMSVGA3D=1) \ 171 167 VBOX_DO_STRIP= \ 172 $(if $(filter el5,$(rpmrel)),VBOX_BLD_PYTHON= /usr/bin/python,) \168 $(if $(filter el5,$(rpmrel)),VBOX_BLD_PYTHON=$(strip $(firstword $(wildcard /usr/local/bin/python2.7) $(wildcard /usr/bin/python))),) \ 173 169 VBOX_WITH_MULTIVERSION_PYTHON= \ 174 170 $(doc_dir) \ … … 179 175 $(if $(VERBOSE),--print-directory KBUILD_VERBOSE=2,--no-print-directory) \ 180 176 $(if $(STAGEDISO),VBOX_WITHOUT_ADDITIONS=1,) \ 181 $(if $(BLEEDING_EDGE),VBOX_BLEEDING_EDGE=$(BLEEDING_EDGE),) \ 182 $(if $(filter el5 ol5 centos5 sles10.1,$(rpmrel)),,VBOX_WITH_SYSFS_BY_DEFAULT=1) 177 $(if $(filter el5,$(rpmrel)),,VBOX_WITH_SYSFS_BY_DEFAULT=1) 183 178 184 179 rpm/configure-stamp:
Note:
See TracChangeset
for help on using the changeset viewer.