Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Carsten Munk <carsten.munk@jollamobile.com>
- Loading branch information
Carsten Munk
committed
Jun 10, 2013
0 parents
commit ffb24e4
Showing
10 changed files
with
426 additions
and
0 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 |
---|---|---|
@@ -0,0 +1 @@ | ||
arch i486 targets 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
#!/bin/sh | ||
ARCHS="armv7l armv7hl mipsel" | ||
|
||
echo -n "arch i486 targets " > baselibs.conf | ||
for x in $ARCHS; do | ||
cp -v sb2-tools-qt5-template-rpmlintrc sb2-tools-qt5-$x-rpmlintrc | ||
sed "s/@ARCH@/$x/g" sb2-tools-qt5-template.spec | sed "s/ExclusiveArch: nothing/ExclusiveArch: %{ix86}/g" > sb2-tools-qt5-$x.spec | ||
echo -n "$x:inject " >> baselibs.conf | ||
done |
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,102 @@ | ||
%define __strip /bin/true | ||
%define architecture_target armv7hl | ||
%define _build_name_fmt %%{ARCH}/%%{NAME}-%%{VERSION}-%%{RELEASE}.%%{ARCH}.dontuse.rpm | ||
%define packages_in_tools qt-qmake qt5-qmake qt-tools qt5-tools qt5-qtcore libicu | ||
Name: sb2-tools-qt5-armv7hl | ||
Version: 1.0 | ||
Release: 1 | ||
Source0: %{name}-%{version}.tar.bz2 | ||
AutoReqProv: 0 | ||
BuildRequires: rpm grep tar patchelf sed fakeroot | ||
BuildRequires: %packages_in_tools | ||
ExclusiveArch: %{ix86} | ||
|
||
# no auto requirements - they're generated | ||
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 armv7hl: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 armv7hl: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) | ||
|
||
|
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,102 @@ | ||
%define __strip /bin/true | ||
%define architecture_target armv7l | ||
%define _build_name_fmt %%{ARCH}/%%{NAME}-%%{VERSION}-%%{RELEASE}.%%{ARCH}.dontuse.rpm | ||
%define packages_in_tools qt-qmake qt5-qmake qt-tools qt5-tools qt5-qtcore libicu | ||
Name: sb2-tools-qt5-armv7l | ||
Version: 1.0 | ||
Release: 1 | ||
Source0: %{name}-%{version}.tar.bz2 | ||
AutoReqProv: 0 | ||
BuildRequires: rpm grep tar patchelf sed fakeroot | ||
BuildRequires: %packages_in_tools | ||
ExclusiveArch: %{ix86} | ||
|
||
# no auto requirements - they're generated | ||
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 armv7l: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 armv7l: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) | ||
|
||
|
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,102 @@ | ||
%define __strip /bin/true | ||
%define architecture_target mipsel | ||
%define _build_name_fmt %%{ARCH}/%%{NAME}-%%{VERSION}-%%{RELEASE}.%%{ARCH}.dontuse.rpm | ||
%define packages_in_tools qt-qmake qt5-qmake qt-tools qt5-tools qt5-qtcore libicu | ||
Name: sb2-tools-qt5-mipsel | ||
Version: 1.0 | ||
Release: 1 | ||
Source0: %{name}-%{version}.tar.bz2 | ||
AutoReqProv: 0 | ||
BuildRequires: rpm grep tar patchelf sed fakeroot | ||
BuildRequires: %packages_in_tools | ||
ExclusiveArch: %{ix86} | ||
|
||
# no auto requirements - they're generated | ||
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 mipsel: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 mipsel: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) | ||
|
||
|
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(".*") |
Oops, something went wrong.