Mesa/pre_checkin.sh
Michal Srb 45afbf2b5d 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
2018-01-05 09:08:37 +00:00

15 lines
571 B
Bash

#!/bin/sh
# This script is based on libcdio_spec-prepare.sh (thanks to sbrabec@suse.cz)
# 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 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