From 9f4a44f932119964d2637bbe92600368268022d02cf6847a52b6ba02179d3623 Mon Sep 17 00:00:00 2001 From: Michal Suchanek Date: Wed, 20 May 2020 18:42:45 +0000 Subject: [PATCH] Accepting request 800331 from home:mbrugger The raspberrypi-usbboot allows you to flash the eMMC through an USB cable. OBS-URL: https://build.opensuse.org/request/show/800331 OBS-URL: https://build.opensuse.org/package/show/hardware/raspberrypi-rpiboot?expand=0&rev=1 --- .gitattributes | 23 ++++++++++++++++ .gitignore | 1 + raspberrypi-rpiboot-78.tar.gz | 3 +++ raspberrypi-rpiboot.changes | 5 ++++ raspberrypi-rpiboot.spec | 50 +++++++++++++++++++++++++++++++++++ update_git.sh | 9 +++++++ 6 files changed, 91 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 raspberrypi-rpiboot-78.tar.gz create mode 100644 raspberrypi-rpiboot.changes create mode 100644 raspberrypi-rpiboot.spec create mode 100644 update_git.sh diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/raspberrypi-rpiboot-78.tar.gz b/raspberrypi-rpiboot-78.tar.gz new file mode 100644 index 0000000..950f91f --- /dev/null +++ b/raspberrypi-rpiboot-78.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:7ab75deadfc55d7552b7b5839f91f88b93b7ae4cf556a1c55887e7331354fe92 +size 14110686 diff --git a/raspberrypi-rpiboot.changes b/raspberrypi-rpiboot.changes new file mode 100644 index 0000000..97eb450 --- /dev/null +++ b/raspberrypi-rpiboot.changes @@ -0,0 +1,5 @@ +------------------------------------------------------------------- +Tue May 5 10:18:47 UTC 2020 - Matthias Brugger + +- add version 78 + diff --git a/raspberrypi-rpiboot.spec b/raspberrypi-rpiboot.spec new file mode 100644 index 0000000..4586b3a --- /dev/null +++ b/raspberrypi-rpiboot.spec @@ -0,0 +1,50 @@ +# +# spec file for package raspberrypi-rpiboot +# +# Copyright (c) 2020 SUSE LLC +# +# All modifications and additions to the file contributed by third parties +# remain the property of their copyright owners, unless otherwise agreed +# upon. The license for this file, and modifications and additions to the +# file, is the same license as for the pristine package itself (unless the +# license for the pristine package is not an Open Source License, in which +# case the license is the MIT License). An "Open Source License" is a +# license that conforms to the Open Source Definition (Version 1.9) +# published by the Open Source Initiative. + +# Please submit bugfixes or comments via https://bugs.opensuse.org/ +# + + +Name: raspberrypi-rpiboot +Version: 78 +Release: 0 +Summary: Raspberry Pi rpiboot tool +License: GPL-2.0-only +Group: System/Management +URL: https://github.com/raspberrypi/usbboot.git +Source0: %{name}-%{version}.tar.gz +Source1: update_git.sh +BuildRequires: libusb-1_0-devel +BuildRequires: libusb-compat-devel + +%description +The raspberrypi-usbboot allows you to flash the eMMC through an USB cable. + +%prep +%setup -q + +%build +%make_build + +%install +mkdir -p %{buildroot}%{_bindir} +install -c -m 0755 rpiboot %{buildroot}%{_bindir} + +%post -p /sbin/ldconfig +%postun -p /sbin/ldconfig + +%files +%verify(not mode caps) %{_bindir}/rpiboot + +%changelog diff --git a/update_git.sh b/update_git.sh new file mode 100644 index 0000000..7341596 --- /dev/null +++ b/update_git.sh @@ -0,0 +1,9 @@ +#!/bin/bash + + +git clone --no-single-branch https://github.com/raspberrypi/usbboot.git +pushd usbboot +git archive --prefix raspberrypi-rpiboot-$(git log --oneline|wc -l)/ -o ../raspberrypi-rpiboot-$(git log --oneline|wc -l).tar.gz origin/master +popd + +rm -rf usbboot