File ophcrack.spec of Package ophcrack
# norootforbuild
%define _prefix /usr
%define rversion 2.4.1
%define rrelease 1.1
%define releasesuffix OS102DSB
Name: ophcrack
Version: %{rversion}
Release: %{rrelease}%{releasesuffix}
%if %suse_version < 1020
Distribution: SUSE Linux %(echo "%{suse_version}" | %__sed -e 's/.$//' -e ':a;s/\(.$\)/\.\1/g')
%else
Distribution: openSUSE %(echo "%{suse_version}" | %__sed -e 's/.$//' -e ':a;s/\(.$\)/\.\1/g')
%endif
Summary: Rainbow tables based windows password cracker
Source: %{name}-%{version}.tar.gz
Patch1: %{name}-linux_tools.patch
URL: http://ophcrack.sourceforge.net
Packager: Donnie S Bhayangkara - http://donnie.110mb.com
Group: Productivity/Secutity
License: GPLv2
BuildRoot: %{_tmppath}/build-%{name}-%{version}
BuildRequires: autoconf automake update-desktop-files
BuildRequires: gtk2-devel >= 2.4, openssl-devel expat libpng-devel
BuildRequires: libstdc++-devel
Requires: gtk2 >= 2.4, libpng, openssl, expat
%description
A windows password cracker based on the faster time-memory trade-off using
rainbow tables.
This is an evolution of the original ophcrack 1.0 developed at EPFL
(http://lasecwww.epfl.ch/~oechslin/projects/ophcrack)
Authors:
========
philippe.oechslin@objectif-securite.ch
cedric.tissieres@objectif-securite.ch
%if %suse_version >= 930
%debug_package
%endif
%prep
%setup -q
%patch1
%{?suse_update_config:%{suse_update_config -f}}
%build
%configure
%__make %{?jobs:-j%{jobs}}
%install
%makeinstall
%__install -D -m 0755 "%{_builddir}/%{name}-%{version}/linux_tools/bkhive" "%{buildroot}/%{_bindir}/bkhive"
%__install -D -m 0755 "%{_builddir}/%{name}-%{version}/linux_tools/samdump2" "%{buildroot}/%{_bindir}/samdump2"
%__install -D -m 0644 "%{_builddir}/%{name}-%{version}/pixmaps/os.xpm" "%{buildroot}%{_datadir}/pixmaps/%{name}.xpm"
%__install -dm 0755 "%{buildroot}%{_datadir}/applications"
%__cat > %{buildroot}%{_datadir}/applications/%{name}.desktop <<EOF
[Desktop Entry]
Encoding=UTF-8
Type=Application
Exec=%{name}
Name=Ophcrack
Comment=Windows password cracker
GenericName=Windows password cracker
Icon=ophcrack.xpm
Terminal=false
Categories=GTK;Utility;DesktopUtility;
StartupNotify=true
EOF
%suse_update_desktop_file -r "%{name}" GTK Utility DesktopUtility
find %{buildroot} -type f -o -type l | sed "s|^%{buildroot}||" >master.list
%if %suse_version < 930
%__strip "%{buildroot}%{_bindir}"/*
%endif
%clean
%__rm -rf "%{buildroot}"
%files -f master.list
%defattr(-,root,root)
%doc AUTHORS ChangeLog COPYING README
%changelog
* Fri Oct 12 2007 Donnie S Bhayangkara <dsbhayangkara@gmail.com> 2.4.1
- new upstream version
* see ChangeLog
* Thu Feb 8 2007 Donnie S Bhayangkara <dsbhayangkara@gmail.com> 2.3.3-2
- fixed chmod of bkhive2 & samdump2
* Tue Feb 6 2007 Donnie S Bhayangkara <dsbhayangkara@gmail.com> 2.3.3
- Initial release