Use new rpm macros: %autosetup and %make_build
%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 <ltao@redhat.com> Signed-off-by: Timothée Ravier <tim@siosm.fr>
This commit is contained in:
parent
cf5adc0ace
commit
73b07ae330
@ -48,33 +48,12 @@ irqbalance is a daemon that evenly distributes IRQ load across
|
|||||||
multiple CPUs for enhanced performance.
|
multiple CPUs for enhanced performance.
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q
|
%autosetup -p1
|
||||||
%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
|
|
||||||
|
|
||||||
%build
|
%build
|
||||||
./autogen.sh
|
./autogen.sh
|
||||||
%configure
|
%configure
|
||||||
CFLAGS="%{optflags}" make %{?_smp_mflags}
|
%{make_build}
|
||||||
|
|
||||||
%install
|
%install
|
||||||
install -D -p -m 0755 %{name} %{buildroot}%{_sbindir}/%{name}
|
install -D -p -m 0755 %{name} %{buildroot}%{_sbindir}/%{name}
|
||||||
|
Loading…
Reference in New Issue
Block a user