2017-12-09 08:37:06 +01:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
# This script is based on libcdio_spec-prepare.sh (thanks to sbrabec@suse.cz)
|
2018-01-05 10:08:37 +01:00
|
|
|
# create a -drivers spec for systemd for bootstrapping
|
2017-12-09 08:37:06 +01:00
|
|
|
|
|
|
|
ORIG_SPEC=Mesa
|
|
|
|
EDIT_WARNING="##### WARNING: please do not edit this auto generated spec file. Use the ${ORIG_SPEC}.spec! #####\n"
|
2018-01-05 10:08:37 +01:00
|
|
|
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
|
2017-12-09 08:37:06 +01:00
|
|
|
|
|
|
|
osc service localrun format_spec_file
|