]>
git.ipfire.org Git - thirdparty/systemd.git/blob - mkosi.images/system/mkosi.conf.d/10-opensuse/mkosi.prepare
2 # SPDX-License-Identifier: LGPL-2.1-or-later
5 if [ "$1" = "build" ]; then
9 # shellcheck source=/dev/null
10 .
"$BUILDROOT/usr/lib/os-release"
13 if [ ! -f "pkg/$ID/systemd.spec" ]; then
14 echo "spec not found at pkg/$ID/systemd.spec, run mkosi once with -ff to make sure the spec is cloned" >&2
18 for DEPS
in --requires --buildrequires; do
24 --define "_topdir /var/tmp" \
25 --define "_sourcedir pkg/$ID" \
26 "pkg/$ID/systemd.spec" |
27 grep --invert-match --regexp systemd
--regexp /bin
/sh
--regexp "rpmlib(" --regexp udev |
29 tee /tmp
/buildrequires |
30 xargs --delimiter '\n' mkosi-install
38 --define "_topdir /var/tmp" \
39 --define "_sourcedir pkg/$ID" \
40 --define "_build_name_fmt %%{NAME}-%%{VERSION}-%%{RELEASE}.%%{ARCH}.rpm" \
41 "pkg/$ID/systemd.spec"
44 if [ $EXIT_STATUS -ne 11 ]; then
53 /var
/tmp
/SRPMS
/systemd-
*.buildreqs.nosrc.rpm |
54 grep --invert-match '^rpmlib(' |
55 sort --unique >/tmp
/dynamic-buildrequires
57 sort /tmp
/buildrequires
/tmp
/dynamic-buildrequires |
59 tee --append /tmp
/buildrequires |
60 xargs --delimiter '\n' mkosi-install