- Don't require systemd: if it's there, we will use it, if it is

not there like in a base container image, there is nothing to do
  for us.

OBS-URL: https://build.opensuse.org/package/show/Base:System/issue-generator?expand=0&rev=8
This commit is contained in:
Thorsten Kukuk 2017-11-28 10:52:39 +00:00 committed by Git OBS Bridge
parent f300109c3b
commit a530cfc0bd
2 changed files with 10 additions and 7 deletions

View File

@ -1,3 +1,10 @@
-------------------------------------------------------------------
Tue Nov 28 11:51:23 CET 2017 - kukuk@suse.de
- Don't require systemd: if it's there, we will use it, if it is
not there like in a base container image, there is nothing to do
for us.
-------------------------------------------------------------------
Thu Nov 23 13:42:31 UTC 2017 - rbrown@suse.com

View File

@ -16,11 +16,6 @@
#
#Compat macro for new _fillupdir macro introduced in Nov 2017
%if ! %{defined _fillupdir}
%define _fillupdir /var/adm/fillup-templates
%endif
Name: issue-generator
Version: 1.3
Release: 0
@ -33,7 +28,6 @@ BuildRequires: fdupes
Requires(post): %fillup_prereq
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildArch: noarch
%{?systemd_requires}
%description
issue-generator is a tool to create an issue file dynamically.
@ -57,7 +51,9 @@ install -m 644 udev/sysconfig.issue-generator %{buildroot}%{_fillupdir}/
%service_add_pre issue-generator.service issue-add-ssh-keys.service
%post
%{_bindir}/systemd-tmpfiles --create issue-generator.conf ||:
if [ -x %{_bindir}/systemd-tmpfiles ]; then
%{_bindir}/systemd-tmpfiles --create issue-generator.conf ||:
fi
%{fillup_only -n issue-generator}
%service_add_post issue-generator.service issue-add-ssh-keys.service