add support for %{arm}
authorJan Palus <atler@pld-linux.org>
Sun, 29 Nov 2020 11:53:29 +0000 (12:53 +0100)
committerJan Palus <atler@pld-linux.org>
Sun, 29 Nov 2020 11:53:29 +0000 (12:53 +0100)
rpm.spec

index 1b6e3d2a270abc95dc9603285e2328551dafe672..d42dfa95f024acb5f876857fa056b571f088e844 100644 (file)
--- a/rpm.spec
+++ b/rpm.spec
@@ -686,8 +686,11 @@ rm $RPM_BUILD_ROOT%{_rpmlibdir}/platform/ppc*series-linux/macros
 rm $RPM_BUILD_ROOT%{_rpmlibdir}/platform/aarch64-linux/macros
 %endif
 
-rm $RPM_BUILD_ROOT%{_rpmlibdir}/platform/alpha*-linux/macros
+%ifnarch %{arm}
 rm $RPM_BUILD_ROOT%{_rpmlibdir}/platform/arm*-linux/macros
+%endif
+
+rm $RPM_BUILD_ROOT%{_rpmlibdir}/platform/alpha*-linux/macros
 rm $RPM_BUILD_ROOT%{_rpmlibdir}/platform/ia64-linux/macros
 rm $RPM_BUILD_ROOT%{_rpmlibdir}/platform/mips*-linux/macros
 rm $RPM_BUILD_ROOT%{_rpmlibdir}/platform/riscv64-linux/macros
@@ -836,6 +839,9 @@ find %{_rpmlibdir} -name '*-linux' -type l | xargs rm -f
 %ifarch aarch64
 %{_rpmlibdir}/platform/aarch64*
 %endif
+%ifarch %{arm}
+%{_rpmlibdir}/platform/arm*
+%endif
 %ifarch ia64
 %{_rpmlibdir}/platform/ia64*
 %endif
This page took 0.075783 seconds and 4 git commands to generate.