Search
SailfishOS Open Build Service
>
Projects
>
sailfishos
:
4.4.0.64
>
sb2-tools-qt5-armv7hl
> _service:tar_git:sb2-tools-qt5-armv7hl.spec
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
File _service:tar_git:sb2-tools-qt5-armv7hl.spec of Package sb2-tools-qt5-armv7hl
%define __strip /bin/true %define architecture_target armv7hl %define _build_name_fmt %%{ARCH}/%%{NAME}-%%{VERSION}-%%{RELEASE}.%%{ARCH}.dontuse.rpm # qt5-qtcore: needed by uic from qt5-tools # systemd-libs libgcrypt libgpg-error: needed by qt5-qtcore # libselinux: needed by systemd-libs %define packages_in_tools qt5-qmake qt5-tools qt5-qtcore qt5-qtxml systemd-mini-libs libgcrypt libgpg-error Name: sb2-tools-qt5-armv7hl Version: 5.0 Release: mer4 Source0: %{name}-%{version}.tar.bz2 Source1: baselibs.conf Source2: precheckin.sh Source100: sb2-tools-qt5-armv7hl-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 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)