From 67514733c51480ebe08a0e0bc9f928419296991c Mon Sep 17 00:00:00 2001 From: Silvan Calarco Date: Fri, 5 Jan 2024 20:23:56 +0100 Subject: [PATCH] package created by silvan using the webbuild interface [release 20130916git-1mamba;Mon Sep 16 2013] --- README.md | 2 ++ android-prebuilt-toolchain.spec | 63 +++++++++++++++++++++++++++++++++ 2 files changed, 65 insertions(+) create mode 100644 android-prebuilt-toolchain.spec diff --git a/README.md b/README.md index 9288958..d2b1ee2 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,4 @@ # android-prebuilt-toolchain +Prebuilt arm-eabi toolchain needed to build kernels for Android-friendly platforms/bootloaders. + diff --git a/android-prebuilt-toolchain.spec b/android-prebuilt-toolchain.spec new file mode 100644 index 0000000..695b771 --- /dev/null +++ b/android-prebuilt-toolchain.spec @@ -0,0 +1,63 @@ +Name: android-prebuilt-toolchain +Version: 20130916git +Release: 1mamba +Summary: Prebuilt arm-eabi toolchain needed to build kernels for Android-friendly platforms/bootloaders +Group: Development/Tools +Vendor: openmamba +Distribution: openmamba +Packager: Silvan Calarco +URL: https://android.googlesource.com/platform/prebuilt/ +# Whole git clone too big, so we just package the arm-eabi toolchain +# git clone https://android.googlesource.com/platform/prebuilt --depth 1 +# cd prebuilt/linux-x86/toolchain +# tar cJf /usr/src/RPM/SOURCES/android-prebuilt-toolchain-20130916git.tar.xz arm-eabi-4.4.3/ +Source: https://android.googlesource.com/platform/prebuilt/android-prebuilt-toolchain-%{version}.tar.xz +License: GPL +## AUTOBUILDREQ-BEGIN +## AUTOBUILDREQ-END +BuildRoot: %{_tmppath}/%{name}-%{version}-root + +%description +Prebuilt arm-eabi toolchain needed to build kernels for Android-friendly platforms/bootloaders. + +%debug_package + +%prep +%setup -q -c + +%define _use_internal_dependency_generator 0 +%define __find_provides %{_builddir}/%{name}-%{version}/find_provides.sh +cat > %{_builddir}/%{name}-%{version}/find_provides.sh <<_EOF +#! /bin/sh +exit 0 +_EOF +chmod +x %{_builddir}/%{name}-%{version}/find_provides.sh + +%define __find_requires %{_builddir}/%{name}-%{version}/find_requires.sh +cat > %{_builddir}/%{name}-%{version}/find_requires.sh <<_EOF +#! /bin/sh +exit 0 +_EOF +chmod +x %{_builddir}/%{name}-%{version}/find_requires.sh + +%build + +%install +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" + +install -d -m0755 %{buildroot}/opt/prebuilt/toolchain +cp -a arm-eabi-4.4.3 %{buildroot}/opt/prebuilt/toolchain/ + +%clean +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" + +%files +%defattr(-,root,root) +%dir /opt/prebuilt +%dir /opt/prebuilt/toolchain/ +%dir /opt/prebuilt/toolchain/arm-eabi-4.4.3 +/opt/prebuilt/toolchain/arm-eabi-4.4.3/* + +%changelog +* Mon Sep 16 2013 Silvan Calarco 20130916git-1mamba +- package created by silvan using the webbuild interface