Blob Blame Raw
%global git_commit effb120
%global git_commit_date 20180628


Name:		bios_extract
Version:	0
Release:	0.23.%{git_commit_date}git%{git_commit}%{?dist}
Summary:	Tools to extract the different submodules of common legacy bioses
License:	GPLv2+
URL:		http://review.coreboot.org/gitweb?p=bios_extract.git;a=summary
# git clone  --no-checkout https://review.coreboot.org/bios_extract
# cd %{name}
# git archive --prefix=%{name}-%{version}/ %{git_commit} | xz > %{name}-%{version}.tar.xz
Source0:	%{name}-%{version}.tar.xz
Patch1:		bios_extract-0001-Require-Python2-explicitly.patch
BuildRequires:  gcc


%description
Tools to extract the different submodules of common legacy bioses.


%prep
%autosetup -p1
install -p -m 0644 xfv/README.txt README-xfv.txt


%build
CFLAGS="%{optflags} -fpack-struct" make %{?_smp_mflags}


%install
# We don't install insyde tools (yet).
install -p -m 0755 -D %{name} $RPM_BUILD_ROOT%{_bindir}/%{name}
install -p -m 0755 -D ami_slab $RPM_BUILD_ROOT%{_bindir}/ami_slab
install -p -m 0755 -D bcpvpd $RPM_BUILD_ROOT%{_bindir}/bcpvpd
install -p -m 0755 -D change-mcp55-mac.pl $RPM_BUILD_ROOT%{_bindir}/change-mcp55-mac.pl
install -p -m 0755 -D csmcoreparse.py $RPM_BUILD_ROOT%{_bindir}/csmcoreparse.py
install -p -m 0755 -D decap.sh $RPM_BUILD_ROOT%{_bindir}/decap.sh
install -p -m 0755 -D dell_inspiron_1100_unpacker.py $RPM_BUILD_ROOT%{_bindir}/dell_inspiron_1100_unpacker.py
install -p -m 0755 -D hp_6715b_nc6320_unpacker.py $RPM_BUILD_ROOT%{_bindir}/hp_6715b_nc6320_unpacker.py
install -p -m 0755 -D microcode_extract.py $RPM_BUILD_ROOT%{_bindir}/microcode_extract.py
install -p -m 0755 -D phoenix_extract.py $RPM_BUILD_ROOT%{_bindir}/phoenix_extract.py
install -p -m 0755 -D xfv/efidecomp $RPM_BUILD_ROOT%{_bindir}/efidecomp
install -p -m 0755 -D xfv/xfv.py $RPM_BUILD_ROOT%{_bindir}/xfv.py

%files
%doc COPYING README README-xfv.txt
%{_bindir}/%{name}
%{_bindir}/ami_slab
%{_bindir}/bcpvpd
%{_bindir}/change-mcp55-mac.pl
%{_bindir}/csmcoreparse.py
%{_bindir}/decap.sh
%{_bindir}/dell_inspiron_1100_unpacker.py
%{_bindir}/efidecomp
%{_bindir}/hp_6715b_nc6320_unpacker.py
%{_bindir}/microcode_extract.py
%{_bindir}/phoenix_extract.py
%{_bindir}/xfv.py


%changelog
* Mon Mar 25 2019 Peter Lemenkov <lemenkov@gmail.com> - 0-0.23.20180628giteffb120
- New git snapshot

* Thu Jan 31 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0-0.22.20150611gita257643
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild

* Thu Jul 12 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0-0.21.20150611gita257643
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild

* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0-0.20.20150611gita257643
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild

* Wed Aug 02 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0-0.19.20150611gita257643
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild

* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0-0.18.20150611gita257643
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild

* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0-0.17.20150611gita257643
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild

* Wed Feb 03 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0-0.16.20150611gita257643
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild

* Mon Nov 23 2015  Peter Lemenkov <lemenkov@gmail.com> - 0-0.15.20150611gita257643
- New git snapshot

* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0-0.14.20101207gitd65284d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild

* Fri Aug 15 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0-0.13.20101207gitd65284d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild

* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0-0.12.20101207gitd65284d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild

* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0-0.11.20101207gitd65284d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild

* Wed Feb 13 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0-0.10.20101207gitd65284d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild

* Wed Jul 18 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0-0.9.20101207gitd65284d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild

* Thu Jan 12 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0-0.8.20101207gitd65284d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild

* Mon Feb 07 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0-0.7.20101207gitd65284d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild

* Sat Jan 22 2011 Peter Lemenkov <lemenkov@gmail.com> - 0-0.6.20101207gitd65284d
- New git snapshot
- Dropped upstreamed patches

* Sat Apr 24 2010 Peter Lemenkov <lemenkov@gmail.com> - 0-0.5.20100423git
- Added more BIOS types
- Added ami_slab utility
- Added -fpack-struct to CFLAGS (required to properly parse some BIOS blobs)
- Patches rebased (and dropped uptreamed ones)

* Sat Aug  1 2009 Peter Lemenkov <lemenkov@gmail.com> - 0-0.4.20090713git
- Fixed work on BigEndian platforms
- More bios-types recognized

* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0-0.3.20090713git
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild

* Wed Jul 22 2009 Peter Lemenkov <lemenkov@gmail.com> - 0-0.2.20090713git
- Small changes, based on Yanko Kaneti's suggestions.

* Wed Jul 22 2009 Peter Lemenkov <lemenkov@gmail.com> - 0-0.1.20090713git
- Initial package for Fedora