Accepting request 561802 from home:michalsrb:branches:bnc1071297:X11:XOrg
- Use different form of split for faster build (bnc#1071297) * Mesa.spec does not use llvm and builds most of the *-devel subpackages. * Mesa-drivers.spec uses llvm and builds extra things installable in addition to packages from Mesa.spec. These packages are required for actual rendering. OBS-URL: https://build.opensuse.org/request/show/561802 OBS-URL: https://build.opensuse.org/package/show/X11:XOrg/Mesa?expand=0&rev=670
This commit is contained in:
committed by
Git OBS Bridge
parent
6f6ab1c88d
commit
45afbf2b5d
@@ -1,15 +1,14 @@
|
||||
#!/bin/sh
|
||||
|
||||
# This script is based on libcdio_spec-prepare.sh (thanks to sbrabec@suse.cz)
|
||||
# create a -mini spec for systemd for bootstrapping
|
||||
# create a -drivers spec for systemd for bootstrapping
|
||||
|
||||
ORIG_SPEC=Mesa
|
||||
EDIT_WARNING="##### WARNING: please do not edit this auto generated spec file. Use the ${ORIG_SPEC}.spec! #####\n"
|
||||
sed "s/^%define bootstrap .*$/${EDIT_WARNING}%define bootstrap 1/;
|
||||
s/^%define mini .*$/${EDIT_WARNING}%define mini -mini/;
|
||||
s/^Name:.*/&-mini/
|
||||
" < ${ORIG_SPEC}.spec > ${ORIG_SPEC}-mini.spec
|
||||
cp ${ORIG_SPEC}.changes ${ORIG_SPEC}-mini.changes
|
||||
cp ${ORIG_SPEC}-rpmlintrc ${ORIG_SPEC}-mini-rpmlintrc
|
||||
sed "s/^%define drivers .*$/${EDIT_WARNING}%define drivers 1/;
|
||||
s/^Name:.*/&-drivers/
|
||||
" < ${ORIG_SPEC}.spec > ${ORIG_SPEC}-drivers.spec
|
||||
cp ${ORIG_SPEC}.changes ${ORIG_SPEC}-drivers.changes
|
||||
cp ${ORIG_SPEC}-rpmlintrc ${ORIG_SPEC}-drivers-rpmlintrc
|
||||
|
||||
osc service localrun format_spec_file
|
||||
|
Reference in New Issue
Block a user