Skip to content

Commit

Permalink
Build: pacemaker.spec: consume "systemdunitdir" via %_unitdir
Browse files Browse the repository at this point in the history
This spares one pkg-config invocation + tells "install" phase to put
unit files at the very location where they are expected in the %files
listing (previously, there were two not directly associated sources
for that path, which is a bit less reliable than a single source only).
  • Loading branch information
jnpkrn committed Sep 16, 2016
1 parent 36f7196 commit aa2bc6a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pacemaker.spec.in
Original file line number Diff line number Diff line change
Expand Up @@ -305,6 +305,8 @@ find . -exec touch \{\} \;
# Early versions of autotools (e.g. RHEL <= 5) do not support --docdir
export docdir=%{pcmk_docdir}

export systemdunitdir=%{?_unitdir}%{?!_unitdir:no}

%if %{with hardening}
# prefer distro-provided hardening flags in case they are defined
# through _hardening_{c,ld}flags macros, configure script will
Expand Down

0 comments on commit aa2bc6a

Please sign in to comment.