Blob Blame Raw
%define git_commit 17ca1c5e6a8df6b5663e899504d197862c286d1e
%define git_commit_date 20090713

Name:		bios_extract
Version:	0
Release:	0.2.%{git_commit_date}git%{?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
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}
sed -i s/^CFLAGS.*$// Makefile


%build
CFLAGS="%{optflags}" 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 bcpvpd $RPM_BUILD_ROOT%{_bindir}/bcpvpd

%clean
rm -rf $RPM_BUILD_ROOT


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


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