]> git.pld-linux.org Git - packages/john.git/blame - john.spec
- up to 1.7.3.4
[packages/john.git] / john.spec
CommitLineData
94f3ed69 1#
532ea34a
JB
2%ifarch i586 i686 athlon pentium2 pentium3 pentium4
3%define do_mmx 1
4%else
5%define do_mmx 0
6%endif
7%ifarch i586 i686
8%define do_mmxfb 1
9%define optmmxfb -DCPU_FALLBACK=1
10%else
11%define do_mmxfb 0
12%undefine optmmxfb
d940cdff 13%endif
00a4c442 14Summary: Password cracker
25772a4c 15Summary(pl.UTF-8): Łamacz haseł
00a4c442 16Name: john
5d62d856 17Version: 1.7.3.4
1871bd4b 18Release: 1
e73a58f8 19License: GPL
94f3ed69 20Group: Applications/System
255a377d 21Source0: http://www.openwall.com/john/g/%{name}-%{version}.tar.bz2
5d62d856 22# Source0-md5: 2f2310c49961c3edea6f92b8dcd45ff4
18fb1460 23Patch0: %{name}-mailer.patch
ad326883 24URL: http://www.openwall.com/john/
4380352b 25BuildRequires: rpmbuild(macros) >= 1.213
53d2a984 26Requires: words
fbb20392 27BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
00a4c442 28
29%description
8e3a118d
JB
30John the Ripper is a fast password cracker, currently available for
31many flavors of Unix (11 are officially supported, not counting
32different architectures), DOS, Win32, BeOS, and OpenVMS (the latter
33requires a contributed patch). Its primary purpose is to detect weak
34Unix passwords. Besides several crypt(3) password hash types most
35commonly found on various Unix flavors, supported out of the box are
36Kerberos/AFS and Windows NT/2000/XP LM hashes, plus several more with
37contributed patches.
e73a58f8 38
15ea9c6b
JR
39%description -l pl.UTF-8
40John The Ripper jest szybkim "łamaczem" haseł dostępnym dla wielu
41rodzajów uniksów (oficjalnie obsługiwanych jest 11, nie licząc różnych
8e3a118d 42architektur), DOS-a, Win32, BeOS-a i OpenVMS-a (ten ostatni wymaga
15ea9c6b
JR
43łaty). Głównym zastosowaniem jest wykrywanie słabych haseł uniksowych.
44Oprócz różnych rodzajów skrótów haseł crypt(3) najczęściej używanych
45na różnych uniksach, obsługiwane są także skróty Kerberos/AFS oraz
46Windows NT/2000/XP LM, a także kilka innych przy użyciu łat.
e73a58f8 47
00a4c442 48%prep
51da11ae 49%setup -q
00a4c442 50%patch0 -p1
18fb1460 51
00a4c442 52%build
53cd src
94f3ed69 54
532ea34a
JB
55%if %{do_mmxfb}
56%{__make} linux-x86-any \
57 CFLAGS="-c -Wall -fomit-frame-pointer %{rpmcflags} -DJOHN_SYSTEMWIDE=1" \
58 CC="%{__cc}"
59mv ../run/john ../run/john-non-mmx
60%{__make} clean
61%endif
62
94f3ed69 63%ifarch %{ix86}
532ea34a 64 %if %{do_mmx}
1f693868 65 TARG=linux-x86-mmx
94f3ed69 66 %else
1f693868 67 TARG=linux-x86-any
94f3ed69
JB
68 %endif
69%else
70 %ifarch alpha
71 TARG=linux-alpha
72 %else
cd675709 73 %ifarch sparc sparcv9
94f3ed69
JB
74 TARG=linux-sparc
75 %else
4380352b 76 %ifarch %{x8664}
b2ee9acd 77 TARG=linux-x86-64
78 %else
79 TARG=generic
51da11ae 80 %endif
94f3ed69
JB
81 %endif
82 %endif
83%endif
84
c4418ed8 85%{__make} $TARG \
532ea34a 86 CFLAGS="-c -Wall -fomit-frame-pointer %{rpmcflags} -DJOHN_SYSTEMWIDE=1 -DJOHN_SYSTEMWIDE_EXEC=\\\"%{_libdir}/john\\\" %{?optmmxfb}" \
c4418ed8 87 CC="%{__cc}"
94f3ed69 88
00a4c442 89%install
90rm -rf $RPM_BUILD_ROOT
18fb1460 91
92install -d $RPM_BUILD_ROOT{%{_bindir},%{_datadir}/john}
93install run/{*.conf,*.chr,*.lst} $RPM_BUILD_ROOT%{_datadir}/john
90d33dbc 94install run/john $RPM_BUILD_ROOT%{_bindir}
532ea34a
JB
95%if %{do_mmxfb}
96install -d $RPM_BUILD_ROOT%{_libdir}/john
97install run/john-non-mmx $RPM_BUILD_ROOT%{_libdir}/john
98%endif
d940cdff 99
368eb044 100rm -f doc/INSTALL
00a4c442 101
90d33dbc 102cd $RPM_BUILD_ROOT%{_bindir}
94f3ed69
JB
103ln -sf john unafs
104ln -sf john unique
105ln -sf john unshadow
00a4c442 106
107%clean
108rm -rf $RPM_BUILD_ROOT
109
110%files
111%defattr(644,root,root,755)
1f693868 112%doc doc/* run/mailer
90d33dbc 113%attr(755,root,root) %{_bindir}/*
532ea34a
JB
114%if %{do_mmxfb}
115%dir %{_libdir}/john
116%attr(755,root,root) %{_libdir}/john/john-non-mmx
117%endif
18fb1460 118%{_datadir}/john
This page took 0.434251 seconds and 4 git commands to generate.