From 9505fcee96f5d4acac478b66c3b4b3cf6dc35811 Mon Sep 17 00:00:00 2001 From: Tom Stellard Date: Tue, 14 Jul 2020 02:19:15 +0000 Subject: [PATCH] Use make macros https://fedoraproject.org/wiki/Changes/UseMakeBuildInstallMacro --- openbox.spec | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/openbox.spec b/openbox.spec index dccb6d8..8c0e4e6 100644 --- a/openbox.spec +++ b/openbox.spec @@ -99,12 +99,12 @@ KDE session. ## Fix RPATH hardcoding. sed -ie 's|^hardcode_libdir_flag_spec=.*$|hardcode_libdir_flag_spec=""|g' libtool sed -ie 's|^runpath_var=LD_RUN_PATH$|runpath_var=DIE_RPATH_DIE|g' libtool -make %{?_smp_mflags} +%make_build gcc $RPM_OPT_FLAGS $RPM_LD_FLAGS -o setlayout %{SOURCE1} -lX11 %install -make install DESTDIR=%{buildroot} +%make_install install setlayout %{buildroot}%{_bindir} install -p %{SOURCE2} %{buildroot}%{_libexecdir}/openbox-xdg-menu