Stefan Dirsch
f308b44782
- Split Mesa into Mesa and Mesa-mini. Mesa-mini does not depend on llvm and its purpose is to build fast and allow other packages that BuildRequire Mesa to be build independently on llvm. Packages built against Mesa-mini should work correctly when installed with full Mesa package. OBS-URL: https://build.opensuse.org/request/show/555227 OBS-URL: https://build.opensuse.org/package/show/X11:XOrg/Mesa?expand=0&rev=666
16 lines
621 B
Bash
16 lines
621 B
Bash
#!/bin/sh
|
|
|
|
# This script is based on libcdio_spec-prepare.sh (thanks to sbrabec@suse.cz)
|
|
# create a -mini 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
|
|
|
|
osc service localrun format_spec_file
|