X-Git-Url: https://git.tld-linux.org/?p=packages%2Frpm-build-tools.git;a=blobdiff_plain;f=builder.sh;h=587d275c9ba413f0770529a01c0d846a1c6613c0;hp=a5b8edc233598c0ddd26de77c09cb6baa916ba6e;hb=0875cd2f52faf841df4424be1d8ce17597c50fee;hpb=58190efb023a02475ced88a938bcc9fe0eb3a313 diff --git a/builder.sh b/builder.sh index a5b8edc..587d275 100755 --- a/builder.sh +++ b/builder.sh @@ -1688,7 +1688,7 @@ build_package() { local specdir=$(insert_gitlog $SPECFILE) ulimit -c unlimited # If required exclude directories with systemd related files from package contents - if grep -q -E 'systemd(unitdir|userunitdir|tmpfilesdir)' $specdir/$SPECFILE; then + if grep -q -E '(lib/(systemd|tmpfiles.d)|systemd(unitdir|userunitdir|tmpfilesdir))' $specdir/$SPECFILE; then sed -i -e '/^%exclude_systemd_files/d; /^%files/s/$/\n%exclude_systemd_files/g;' $specdir/$SPECFILE fi # Enable/disable distro wide bconds based on ~/.distbcond