diff --git a/slurm.spec b/slurm.spec
index db3e301..a5b5839 100644
--- a/slurm.spec
+++ b/slurm.spec
@@ -1,5 +1,5 @@
 # Upstream tarballs use an additional release number
-%global ups_rel 2
+%global ups_rel 1
 
 %if "%{ups_rel}" == "1"
 %global name_version %{name}-%{version}
@@ -15,7 +15,7 @@
 %endif
 
 Name:           slurm
-Version:        19.05.3
+Version:        19.05.4
 Release:        1%{?dist}
 Summary:        Simple Linux Utility for Resource Management
 License:        GPLv2 and BSD
@@ -237,8 +237,8 @@ aclocal -I auxdir
 autoconf
 automake --no-force
 # use -z lazy to allow dlopen with unresolved symbols
+export LDFLAGS="%{build_ldflags} -Wl,-z,lazy"
 %configure \
-  LDFLAGS="$LDFLAGS -Wl,-z,lazy" \
   --prefix=%{_prefix} \
   --sysconfdir=%{_sysconfdir}/%{name} \
   --with-pam_dir=%{_libdir}/security \
@@ -692,6 +692,9 @@ rm -f %{buildroot}%{perl_archlib}/perllocal.pod
 %systemd_postun_with_restart slurmdbd.service
 
 %changelog
+* Mon Nov 18 2019 Philip Kovacs <pkfed@fedoraproject.org> - 19.05.4-1
+- Release of 19.05.4
+
 * Mon Oct 7 2019 Philip Kovacs <pkfed@fedoraproject.org> - 19.05.3-1
 - Release of 19.05.3
 
diff --git a/sources b/sources
index ccacd64..829e2f4 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-SHA512 (slurm-19.05.3-2.tar.bz2) = 15d63f1ba693458b220ece5512210f1dba52273946809b338e33d684b9daadecd3cc77fda84c1b3bf8b03bc0fe8b8be0f429a96a1bf72a8b5c8cf169e0e1f5bb
+SHA512 (slurm-19.05.4.tar.bz2) = 924732cac52d4ee7ed079fefb2b0a49d3150a43f602a5a87b4aeed7de2ab961ac20300f7ffb9af4a0945f2863ce511c4211c82052c65c33fe84fc16aafef03a8