i3 better arch types

Signed-off-by: guibuilder_pel7ppc64lebuilder0 <guibuilder@powerel.org>
master
guibuilder_pel7ppc64lebuilder0 2020-04-30 11:32:56 +02:00
parent 10ca386828
commit 04bc3fe792
1 changed files with 12 additions and 2 deletions

View File

@ -83,6 +83,16 @@ find . -maxdepth 1 -type f -name "i3*" -exec sed -i -e '1s;^#!/usr/bin/env perl;


%build
%ifarch ppc64le
%define buildarch powerpc64le
%endif
%ifarch ppc64
%define buildarch powerpc64
%endif
%ifarch x86_64
%define buildarch x86_64
%endif

./configure \
--build=%{_arch}-powerel-linux-gnu \
--host=%{_arch}-powerel-linux-gnu \
@ -101,13 +111,13 @@ find . -maxdepth 1 -type f -name "i3*" -exec sed -i -e '1s;^#!/usr/bin/env perl;
--sharedstatedir=/var/lib \
--mandir=/usr/share/man \
--infodir=/usr/share/info
%make_build -C %{_arch}-powerel-linux-gnu
%make_build -C %{buildarch}-powerel-linux-gnu
doxygen pseudo-doc.doxygen
mv pseudo-doc/html pseudo-doc/doxygen


%install
%make_install -C %{_arch}-powerel-linux-gnu
%make_install -C %{buildarch}-powerel-linux-gnu
mkdir -p %{buildroot}%{_mandir}/man1/
install -Dpm0644 man/*.1 %{buildroot}%{_mandir}/man1/
mkdir -p %{buildroot}%{_datadir}/pixmaps/