--- Makefile.am.orig	2020-08-31 03:17:55.000000000 -0500
+++ Makefile.am	2021-07-30 11:58:16.000000000 -0500
@@ -12,7 +12,7 @@
 AM_CFLAGS = @CFLAGS@ -DFILE_CONFIG=\"$(sysconfdir)/uptimed.conf\"
 
 install-data-local:
-	$(INSTALL) -d $(DESTDIR)/var/spool/uptimed
+	$(INSTALL) -d $(DESTDIR)$(prefix)/var/spool/uptimed
 
 srpm: dist
 	@(rpmbuild -ts uptimed-$(PACKAGE_VERSION).tar.gz)
