From ffac4207627969efa0a64ed3fb64161e69eebf62 Mon Sep 17 00:00:00 2001 From: Imbus <> Date: Sun, 9 Jun 2024 02:20:51 +0200 Subject: [PATCH] RPM targets in makefile --- makefile | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/makefile b/makefile index d9a6715..11aa566 100644 --- a/makefile +++ b/makefile @@ -40,3 +40,13 @@ uninstall: rm -f ~/.local/share/applications/$(PROJ_NAME).desktop rm -f ~/.local/share/icons/$(PROJ_NAME).svg update-desktop-database ~/.local/share/applications/ + +# Install the dependencies for building the RPM package +rpm-deps: + sudo dnf install rpmdevtools + sudo dnf builddep packaging/$(PROJECT).spec + +# This step requires the rpm-deps specified above +rpm: + spectool -g -R packaging/$(PROJECT).spec + rpmbuild -bb packaging/$(PROJECT).spec \ No newline at end of file