]> TLD Linux GIT Repositories - packages/rpm-tld-macros.git/commitdiff
- remove tmpfiles.d checks, there is no systemd in TLD Linux
authorMarcin Krol <hawk@tld-linux.org>
Wed, 29 Apr 2020 23:37:37 +0000 (01:37 +0200)
committerMarcin Krol <hawk@tld-linux.org>
Wed, 29 Apr 2020 23:37:37 +0000 (01:37 +0200)
macros.tld
rpm-tld-macros.spec

index 5f218ad105b2bed0a345631cc42c83fa82940907..2d0e896de42429530e17795ed178a8323bcd5cd0 100644 (file)
@@ -775,28 +775,12 @@ __spec_install_post_check_execstack() { \
 }; __spec_install_post_check_execstack }}
 
 #-----------------------------------------------------------------
-# Verify that for each directory under /var/run package contains
-# tmpfiles.d configuration. Warn and terminate build if config is
-# missing.
+# Do not verify if each directory under /var/run contains
+# tmpfiles.d configuration. TLD Linux doesn't use tmpfiles.d.
 #
-#%no_install_post_check_tmpfiles 1
+%no_install_post_check_tmpfiles 1
 #
-%__spec_install_post_check_tmpfiles { \
-__spec_install_post_check_tmpfiles() { \
-%{!?debug:set +x;} \
-       fail=0; \
-       echo "Checking /var/run <-> tmpfiles.d completeness..."; \
-       for d in $RPM_BUILD_ROOT/var/run/*; do \
-               [ -d "$d" ] || continue; \
-               d=${d##$RPM_BUILD_ROOT}; \
-               if ! grep -qsF "$d" $RPM_BUILD_ROOT/usr/lib/tmpfiles.d/*.conf $RPM_BUILD_ROOT/etc/tmpfiles.d/*.conf; then\
-                       echo "No tmpfiles configuration for '$d'";\
-                       fail=1 ; \
-               fi \
-       done ; \
-       echo " DONE"; \
-       %{!?no_install_post_check_tmpfiles:return $fail;} \
-}; __spec_install_post_check_tmpfiles }}
+%__spec_install_post_check_tmpfiles %{nil}
 
 #-----------------------------------------------------------------
 # Verify that scripts have reasonable shebangs
@@ -1176,9 +1160,6 @@ fi;
 # calls usual service restart on package %post, but skips the restart if
 # administrator has disabled automatic service restarts in either global
 # /etc/sysconfig/rpm or per service /etc/sysconfig/SERVICE file.
-# NOTE: systemd_booted machines do not print
-#              Run "{command}" to restart {service}.
-# message for packages without native systemd unit (not here, no %systemd_post).
 #
 # Usage:
 #   %service [-q] [-n] SERVICE ACTION ["SERVICE NICE DESCRIPTION"]
index 0ee9bfd4690d8247ebb2aed41df75b1b8347bb40..e48208c78bf9260316e062669521a02e09171ad6 100644 (file)
@@ -6,7 +6,7 @@ Summary:        TLD Linux RPM macros
 Summary(pl.UTF-8):     Makra RPM dla Linuksa TLD
 Name:          rpm-tld-macros
 Version:       %{rpm_macros_rev}
-Release:       1
+Release:       2
 License:       GPL v2+
 Group:         Development/Building
 Source0:       macros.tld