From 73b07ae330ab47a677558339b2ad50d1c3f8db93 Mon Sep 17 00:00:00 2001 From: Tao Liu Date: Fri, 28 Jul 2023 16:48:45 +0800 Subject: [PATCH] Use new rpm macros: %autosetup and %make_build MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit %autosetup, simplify %setup -q and %patch XX: [1] %make_build, simplify %{_smp_mflags} macro: [2] [1]: https://rpm-software-management.github.io/rpm/manual/autosetup.html [2]: https://fedoraproject.org/wiki/Changes/UseMakeBuildInstallMacro#Use_%make_build_and_%make_install_macros Signed-off-by: Tao Liu Signed-off-by: Timothée Ravier --- irqbalance.spec | 25 ++----------------------- 1 file changed, 2 insertions(+), 23 deletions(-) diff --git a/irqbalance.spec b/irqbalance.spec index ff7a315..70b4561 100644 --- a/irqbalance.spec +++ b/irqbalance.spec @@ -48,33 +48,12 @@ irqbalance is a daemon that evenly distributes IRQ load across multiple CPUs for enhanced performance. %prep -%setup -q -%patch1 -p1 -%patch2 -p1 -%patch3 -p1 -%patch4 -p1 -%patch5 -p1 -%patch6 -p1 -%patch7 -p1 -%patch8 -p1 -%patch9 -p1 -%patch10 -p1 -%patch11 -p1 -%patch12 -p1 -%patch13 -p1 -%patch14 -p1 -%patch15 -p1 -%patch16 -p1 -%patch17 -p1 -%patch18 -p1 -%patch19 -p1 -%patch20 -p1 -%patch21 -p1 +%autosetup -p1 %build ./autogen.sh %configure -CFLAGS="%{optflags}" make %{?_smp_mflags} +%{make_build} %install install -D -p -m 0755 %{name} %{buildroot}%{_sbindir}/%{name}