Blob Blame Raw
%global git_commit d65284d
%global git_commit_date 20101207

Name:		bios_extract
Version:	0
Release:	0.6.%{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://cgit.freedesktop.org/~libv/bios_extract
Source0:	http://cgit.freedesktop.org/~libv/bios_extract/snapshot/%{name}-%{git_commit}.tar.bz2
# recognized more Award bios images (patch will be sent upstream)
Patch1:		bios_extract-0001-Identification-of-some-more-Award-BIOS-images.patch
BuildRoot:	%(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)

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


%prep
%setup -q -n %{name}-%{git_commit}
%patch1 -p1 -b .more_award_types


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


%install
rm -rf $RPM_BUILD_ROOT
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

%clean
rm -rf $RPM_BUILD_ROOT


%files
%defattr(-,root,root,-)
%doc README
%{_bindir}/%{name}
%{_bindir}/ami_slab
%{_bindir}/bcpvpd


%changelog
* 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