Name: cmospwd Version: 5.0 Release: 1%{?dist} Summary: BIOS password cracker utility Group: System Environment/Base License: GPLv2+ URL: http://www.cgsecurity.org/wiki/CmosPwd Source0: http://www.cgsecurity.org/%{name}-%{version}.tar.bz2 BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX) # Fails to build on PPC and not useful there either, I think ExclusiveArch: %{ix86} x86_64 BuildRequires: dos2unix %description CmosPwd decrypts password stored in cmos used to access BIOS SETUP. %prep %setup -q rm src/%{name} dos2unix %{name}.txt iconv -f iso-8859-1 -t utf-8 %{name}.txt > %{name}.new touch -r %{name}.txt %{name}.new mv %{name}.new %{name}.txt %build cd src make CFLAGS="%{optflags}" %{?_smp_mflags} %install rm -rf $RPM_BUILD_ROOT install -D -m 755 src/%{name} $RPM_BUILD_ROOT%{_sbindir}/%{name} %clean rm -rf $RPM_BUILD_ROOT %files %defattr(-,root,root,-) %doc COPYING %{name}.txt %{_sbindir}/%{name} %changelog * Thu Oct 15 2009 Alexey Torkhov - 5.0-1 - Initial packaging