Blob Blame Raw
%global git_commit a257643
%global git_commit_date 20150611


Name:		bios_extract
Version:	0
Release:	0.15.%{git_commit_date}git%{git_commit}%{?dist}
Summary:	Tools to extract the different submodules of common legacy bioses
Group:		Applications/System
License:	GPLv2+
URL:		http://review.coreboot.org/gitweb?p=bios_extract.git;a=summary
# git clone  --no-checkout http://review.coreboot.org/p/bios_extract.git
# cd %{name}
# git archive --prefix=%{name}-%{version}/ %{git_commit} | xz > %{name}-%{version}.tar.xz
Source0:	%{name}-%{version}.tar.xz
# recognized more Award bios images (patch will be sent upstream)
Patch1:		bios_extract-0001-Identification-of-some-more-Award-BIOS-images.patch


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


%prep
%setup -q
%patch1 -p1 -b .more_award_types
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 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