# (*) package-DEPENDDEVELS
# a set of *packages* that the build will rpm-install the -devel variant before building <package>
# (*) package-DEPENDDEVELRPMS
-# a set of *rpm* that the build will rpm-install before building <package>
+# a set of *rpms* that the build will rpm-install before building <package>
# (*) package-DEPENDFILES
# a set of files that the package depends on - and that make needs to know about
# if this contains RPMS/yumgroups.xml, then the toplevel RPMS's index
echo "%_tmppath $(HOME)/tmp" >> $@
echo "%_netsharedpath /proc:/dev/pts" >> $@
echo "%_install_langs C:de:en:es:fr" >> $@
+ echo "%_excludedocs yes" >> $@
### run spec2make on the spec file and include the result
# usage: spec2make package
# Do not tolerate errors
set -e
-# Mount /dev/pts and /dev/shm in reference image
-mount -t devpts none $vroot/dev/pts
-mount -t tmpfs none $vroot/dev/shm
-
-## make rpms ignore installing stuff to /proc
-mkdir -p $vroot/etc/rpm
+## make rpms ignore installing stuff to special fs entries like /proc
# Because of https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=52725
# you have to use at least one language beside 'C'
-echo "%_install_langs C:de:en:es:fr" > $vroot/etc/rpm/macros
-echo "%_netsharedpath /proc:/dev/pts" >> $vroot/etc/rpm/macros
-# append to the vserver's rpm macros
-echo "%_install_langs C:de:en:es:fr" > /etc/rpm/macros
-echo "%_netsharedpath /proc:/dev/pts" >> /etc/rpm/macros
-# Mount /proc in reference image
+cat > /etc/rpm/macros <<EOF
+%_install_langs C:de:en:es:fr
+%_netsharedpath /proc:/dev/pts
+%_excludedocs yes
+EOF
+# copy to the vserver's rpm macros
+mkdir -p $vroot/etc/rpm
+cp /etc/rpm/macros $vroot/etc/rpm/macros
+
+# Mount in reference image
+mount -t devpts none $vroot/dev/pts
+mount -t tmpfs none $vroot/dev/shm
mkdir -p $vroot/proc
mount -t proc none $vroot/proc