1 Commits

Author SHA256 Message Date
5acece52e1 Make build recipe compatible with POSIX sh 2025-03-02 13:56:14 +01:00
2 changed files with 7 additions and 4 deletions

View File

@@ -1,3 +1,8 @@
-------------------------------------------------------------------
Sun Mar 2 12:55:58 UTC 2025 - Jan Engelhardt <jengelh@inai.de>
- Make build recipe comaptible with POSIX sh
-------------------------------------------------------------------
Thu Nov 9 11:29:38 UTC 2023 - Jan Engelhardt <jengelh@inai.de>

View File

@@ -1,7 +1,7 @@
#
# spec file for package bcache-tools
#
# Copyright (c) 2023 SUSE LLC
# Copyright (c) 2025 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -46,9 +46,7 @@ perl -i -lpe 's{^#!/usr/bin/env python\b}{#!/usr/bin/python3}' bcache-status
%install
b="%buildroot"
# Without these existing, make install would fail
mkdir -p "$b"/{sbin,%_sbindir,%_mandir/man8,/lib/udev/rules.d}
mkdir -p "$b/%_sysconfdir/initramfs-tools/scripts/init-premount"
mkdir -p "$b/%_sysconfdir/initramfs-tools/hooks"
mkdir -p "$b/%_sbindir" "$b/%_mandir/man8" "$b/lib/udev/rules.d"
%make_install DRACUTLIBDIR="%_prefix/lib/dracut"
# Not used in openSUSE
rm -Rf "$b/%_sysconfdir/initramfs-tools" "$b/%_prefix/lib/initcpio" \