Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
Merge branch 'jb40424' into 'master'
Add support for aarch64. See merge request !1
- Loading branch information
Showing
4 changed files
with
109 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
arch i486 targets armv7l:inject armv7hl:inject mipsel:inject | ||
arch i486 targets aarch64:inject armv7l:inject armv7hl:inject mipsel:inject |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
from Config import * | ||
addFilter(".*") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,105 @@ | ||
%define __strip /bin/true | ||
%define architecture_target aarch64 | ||
%define _build_name_fmt %%{ARCH}/%%{NAME}-%%{VERSION}-%%{RELEASE}.%%{ARCH}.dontuse.rpm | ||
%define packages_in_tools qt5-qmake qt5-tools qt5-qtcore qt5-qtxml systemd-libs libgcrypt libgpg-error | ||
Name: sb2-tools-qt5-aarch64 | ||
Version: 1.0 | ||
Release: 1 | ||
Source0: %{name}-%{version}.tar.bz2 | ||
Source1: baselibs.conf | ||
Source2: precheckin.sh | ||
Source100: sb2-tools-qt5-aarch64-rpmlintrc | ||
|
||
# no auto requirements - they're generated | ||
AutoReqProv: 0 | ||
BuildRequires: rpm grep tar patchelf sed fakeroot | ||
BuildRequires: %packages_in_tools | ||
ExclusiveArch: %{ix86} | ||
|
||
License: BSD | ||
Group: Development/Tools | ||
Summary: SB2 cross tools for qt5 | ||
|
||
%description | ||
This is a package providing %packages_in_tools for SB2 tools directory | ||
It is not intended to be used in a normal system! | ||
|
||
|
||
%package dependency | ||
Summary: Dependency for sb2 host side | ||
Group: Development/Tools | ||
|
||
%description dependency | ||
This is a package providing %packages_in_tools SB2 tools directory | ||
It is not intended to be used in a normal system! | ||
|
||
%prep | ||
%setup -q -n %{name}-%{version} | ||
|
||
%build | ||
|
||
%install | ||
|
||
#set +x -e | ||
mkdir -p %buildroot | ||
rpm -ql %packages_in_tools > filestoinclude1 | ||
cat > filestoignore << EOF | ||
/usr/share/man | ||
/usr/share/doc | ||
EOF | ||
grep -vf filestoignore filestoinclude1 | sort | uniq > filestoinclude2 | ||
cat filestoinclude2 | ||
tar --no-recursion -T filestoinclude2 -cpf - | ( cd %buildroot && fakeroot tar -xvpf - ) | ||
|
||
shellquote() | ||
{ | ||
for arg; do | ||
arg=${arg//\\/\\\\} | ||
# arg=${arg//\$/\$} # already needs quoting ;( | ||
# arg=${arg/\"/\\\"} # dito | ||
# arg=${arg//\`/\`} # dito | ||
arg=${arg//\\ |/\|} | ||
arg=${arg//\\|/|} | ||
echo "$arg" | ||
done | ||
} | ||
|
||
echo "Creating baselibs_new.conf" | ||
echo "" | ||
rm -rRf /tmp/baselibs_new.conf || true | ||
shellquote "arch i486 targets aarch64:inject" >> /tmp/baselibs_new.conf | ||
shellquote "%{name}" >> /tmp/baselibs_new.conf | ||
shellquote " targettype x86 block!" >> /tmp/baselibs_new.conf | ||
shellquote " targettype 32bit block!" >> /tmp/baselibs_new.conf | ||
shellquote " targettype inject autoreqprov off" >> /tmp/baselibs_new.conf | ||
shellquote " targettype inject extension -inject" >> /tmp/baselibs_new.conf | ||
shellquote " targettype inject +/" >> /tmp/baselibs_new.conf | ||
shellquote " targettype inject -%{_mandir}" >> /tmp/baselibs_new.conf | ||
shellquote " targettype inject -%{_docdir}" >> /tmp/baselibs_new.conf | ||
shellquote " targettype inject config -/sb2-config$" >> /tmp/baselibs_new.conf | ||
|
||
shellquote "arch i486 targets aarch64:inject" >> /tmp/baselibs_new.conf | ||
shellquote "%{name}-dependency" >> /tmp/baselibs_new.conf | ||
shellquote " targettype x86 block!" >> /tmp/baselibs_new.conf | ||
shellquote " targettype 32bit block!" >> /tmp/baselibs_new.conf | ||
shellquote " targettype inject autoreqprov off" >> /tmp/baselibs_new.conf | ||
shellquote " targettype inject extension -inject" >> /tmp/baselibs_new.conf | ||
shellquote " targettype inject +/" >> /tmp/baselibs_new.conf | ||
shellquote " targettype inject -%{_mandir}" >> /tmp/baselibs_new.conf | ||
shellquote " targettype inject -%{_docdir}" >> /tmp/baselibs_new.conf | ||
shellquote " targettype inject config -/sb2-config$" >> /tmp/baselibs_new.conf | ||
|
||
cat /tmp/baselibs_new.conf > %{_sourcedir}/baselibs.conf | ||
mkdir -p %buildroot/etc | ||
touch %buildroot/etc/sb2-tools-qt5-template | ||
|
||
%clean | ||
rm -rf $RPM_BUILD_ROOT | ||
|
||
%files dependency | ||
%defattr(-,root,root) | ||
/etc/sb2-tools-qt5-template | ||
|
||
%files -f filestoinclude2 | ||
%defattr(-,root,root) | ||
|