commit 0ba1795c5817fd2556f9eb8ab0e62a562f283918
Author: Nicolas Chauvet <kwizart(a)gmail.com>
Date: Tue Mar 20 10:50:44 2018 +0100
Initial import
.gitignore | 1 +
dvb-firmware.spec | 55 +++++++++++++++++++++++++++++++++++++++++++++++++++++++
sources | 1 +
3 files changed, 57 insertions(+)
---
diff --git a/.gitignore b/.gitignore
index e69de29..442d930 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+dvb-firmware-*.tar.gz
diff --git a/dvb-firmware.spec b/dvb-firmware.spec
new file mode 100644
index 0000000..83ca914
--- /dev/null
+++ b/dvb-firmware.spec
@@ -0,0 +1,55 @@
+%global commit0 3fef04a4a4bfeba88ae3b20aff9d3a1fabf1c159
+%global shortcommit0 %(c=%{commit0}; echo ${c:0:7})
+%global commitdate0 20170329
+
+Name: dvb-firmware
+Version: %{commitdate0}
+Release: 1.git%{shortcommit0}%{?dist}
+Summary: DVB firmwares
+
+License: Redistributable, no modification permitted
+URL:
https://github.com/OpenELEC/dvb-firmware
+Source0: %{url}/archive/%{commit0}/%{name}-%{shortcommit0}.tar.gz
+BuildArch: noarch
+
+BuildRequires: linux-firmware
+
+%description
+DVB firmwares.
+
+
+%prep
+%autosetup -p1 -n dvb-firmware-%{commit0}
+
+
+%build
+# Nothing to build
+
+
+%install
+mkdir -p %{buildroot}/lib/firmware
+# Verify that this package co-install with linux-firmware
+for i in $(find firmware ! -type d) ; do
+ if [ -e /lib/${i} ] ; then
+ rm -f ${i}
+ echo "Removing ${i}"
+ fi
+done
+
+cp -pr firmware/* %{buildroot}/lib/firmware
+
+# Remove empty directories
+find %{buildroot}/lib/firmware/* -type d -delete
+
+# Remove linux-firmware provided content
+rm -rf %{buildroot}/lib/firmware/LICENCE.go7007
+
+
+
+%files
+/lib/firmware/*
+
+
+%changelog
+* Fri Mar 16 2018 Nicolas Chauvet <kwizart(a)gmail.com> - 20170329-1.git3fef04a
+- Initial spec file
diff --git a/sources b/sources
index e69de29..9762659 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+0e9322e0cd8980a5b40d697ebcbbf3d7 dvb-firmware-3fef04a.tar.gz