Add new Makefile target to build a deb and rpm package

The package would put all files into /lib/firmware/updates to avoid
conflicting with distro packages.

The package is also intentionally named to avoid conflicts with
distro packages.

Signed-off-by: Mario Limonciello <mario.limonciello@amd.com>
This commit is contained in:
Mario Limonciello
2023-09-18 16:15:35 -05:00
parent 8b855f3797
commit cef80743ca
7 changed files with 239 additions and 0 deletions

View File

@@ -0,0 +1,5 @@
{{package}} ({{version}}) unstable; urgency=medium
* Automated release
-- Linux Firmware <linux-firmware@kernel.org> {{ date }}

View File

@@ -0,0 +1,18 @@
Source: {{package}}
Section: unknown
Priority: optional
Maintainer: Linux Firmware <linux-firmware@kernel.org>
Build-Depends: debhelper-compat (= 13)
Standards-Version: 4.6.0
Homepage: https://gitlab.com/kernel-firmware/linux-firmware
Vcs-Browser: https://gitlab.com/kernel-firmware/linux-firmware
Vcs-Git: https://gitlab.com/kernel-firmware/linux-firmware
Rules-Requires-Root: no
Package: {{package}}
Architecture: all
Depends: ${misc:Depends}
Description: Upstream snapshot of linux-firmware package
Monolithic snapshot of upstream linux-firmware package, intended to
to validate upstream firmware without conflicts to the distribution
package.

View File

@@ -0,0 +1,28 @@
Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
Upstream-Name: {{ package }}
Upstream-Contact: linux-firmware@kernel.org
Source: https://gitlab.com/kernel-firmware/linux-firmware
Files: *
Copyright: Various
License: Various
License for all firmware is described in /usr/share/doc/{{ package }}/WHENCE.gz
Files: debian/*
Copyright: 2023 Linux Firmware <firmware@kernel.org>
License: GPL-2+
This package is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
.
This package is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
.
You should have received a copy of the GNU General Public License
along with this program. If not, see <https://www.gnu.org/licenses/>
.
On Debian systems, the complete text of the GNU General
Public License version 2 can be found in "/usr/share/common-licenses/GPL-2".

View File

@@ -0,0 +1,31 @@
Name: {{ package }}
Version: {{ version }}
Release: 1%{?dist}
Summary: Linux Firmware (upstream)
License: Redistributable, no modification permitted
URL: http://gitlab.com/kernel-firmware/linux-firmware
Source: /dev/null
BuildArch: noarch
%description
Monolithic snapshot of upstream linux-firmware package, intended to
to validate upstream firmware without conflicts to the distribution
package.
%prep
%setup -q
%build
%install
%define __strip /bin/true
rm -rf %{buildroot}
mkdir -p %{buildroot}/lib/firmware
cp -aR {{ cwd }}/updates %{buildroot}/lib/firmware
%files
%defattr(-,root,root,-)
/lib/firmware/updates/*
%post
dracut -fp --regenerate-all