/usr/share/firmware-tools/bios.spec.in is in firmware-addon-dell 2.2.9-0ubuntu2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 | %define safe_name #safe_name#
%define name #name#
%define vendor_id #vendor_id#
%define device_id #device_id#
%define version #version#
%if "#shortname#" != ""
%define shortname #shortname#
%endif
%define epoch #epoch#
# if passed a "shortname" variable, obsolete older, generated name
%{?shortname: %{expand: %%define oldname_exists 1}}
%{!?shortname: %{expand: %%define oldname_exists 0}}
# if not passed a "shortname", generate one
%{?shortname: %{expand: %%define system_shortname %{shortname} }}
%{!?shortname: %{expand: %%define system_shortname ven_%{vendor_id}_dev_%{device_id} }}
Summary: BIOS upgrade package for System: %{system_shortname}
Name: system_bios_%{system_shortname}
Epoch: %{epoch}
Version: %{version}
Release: 20
Vendor: Dell
License: Proprietary
Group: System Environment/Base
BuildArch: noarch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-%(id -u)-buildroot/
Source0: %{safe_name}-%{version}.tar.bz2
Requires: firmware-addon-dell >= 0:2.0
Requires: firmware-tools >= 0:2.0
Provides: system_bios(ven_%{vendor_id}_dev_%{device_id}) = %{epoch}:%{version}-%{release}
%if %{oldname_exists}
Obsoletes: system_bios_ven_%{vendor_id}_dev_%{device_id} < %{epoch}:%{version}-%{release}
Provides: system_bios_ven_%{vendor_id}_dev_%{device_id} = %{epoch}:%{version}-%{release}
%endif
%description
This package contains BIOS update version %{version} for System %{system_shortname}
This is an _UNOFFICIAL_ package, not supported by Dell. Do not call Dell
technical support concerning this package, because you will not get help there.
Please use the mailing lists for support. firmware-tools-devel@lists.us.dell.com
would be a good place to start.
If this package is useful to you, feedback is appreciated.
%prep
%setup -n #tar_dir#
%build
%install
rm -rf $RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT/%{_datadir}/firmware/dell/bios/%{safe_name}_version_%{version}/
install -m 644 bios.hdr $RPM_BUILD_ROOT/%{_datadir}/firmware/dell/bios/%{safe_name}_version_%{version}/
install -m 644 package.ini $RPM_BUILD_ROOT/%{_datadir}/firmware/dell/bios/%{safe_name}_version_%{version}/
install -m 644 *.xml $RPM_BUILD_ROOT/%{_datadir}/firmware/dell/bios/%{safe_name}_version_%{version}/ || true
install -m 644 *.txt $RPM_BUILD_ROOT/%{_datadir}/firmware/dell/bios/%{safe_name}_version_%{version}/ || true
install -m 644 *.log $RPM_BUILD_ROOT/%{_datadir}/firmware/dell/bios/%{safe_name}_version_%{version}/ || true
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root)
%doc dell-std-license.txt
%{_datadir}/firmware/dell/*
%posttrans
# only attempt to update after we have gotten to the end of the
# transaction and all the requisite rpms have been installed. we might
# have deps on other rpms.
/usr/sbin/firmwaretool --update --rpm -y
%changelog
* Fri Feb 1 2008 Michael Brown <mebrown@michaels-house.net> - 20-1
- change subdir for packaged bios files to /dell/bios/
* Thu Jan 31 2008 Michael Brown <mebrown@michaels-house.net> - 20-1
- Add changelog entries. :)
- Small packaging changes only to make bios work with firmware-tools 2.0
- Check for release notes in /usr/share/firmware/dell/SYSTEM/relnotes.txt
NOTE: not all systems have release notes. This is due to current limitations
with the extraction process.
|