]>
Commit | Line | Data |
---|---|---|
d502d3d5 | 1 | # Conditional build: |
b282b6dc | 2 | %bcond_without opencl # OpenCL support (in jumbo version) |
bd15433c | 3 | %bcond_without openmp # OpenMP support (in jumbo version) |
3dbf4b73 | 4 | |
f1598274 AG |
5 | %define snap 20181101 |
6 | %define githash d73288b91d92f3bd670c18d3853ddaf0e02159f0 | |
3dbf4b73 | 7 | |
00a4c442 | 8 | Summary: Password cracker |
25772a4c | 9 | Summary(pl.UTF-8): Łamacz haseł |
00a4c442 | 10 | Name: john |
3dbf4b73 | 11 | Version: 1.8.0 |
f1598274 | 12 | Release: 2.%{snap}.1 |
20299915 | 13 | License: GPL v2 |
94f3ed69 | 14 | Group: Applications/System |
f1598274 AG |
15 | Source0: https://github.com/magnumripper/JohnTheRipper/archive/%{githash}/john-%{snap}.tar.gz |
16 | # Source0-md5: a75c1108111c5181b471a9f4a9dab898 | |
18fb1460 | 17 | Patch0: %{name}-mailer.patch |
f1598274 AG |
18 | Patch1: jumbo-optflags.patch |
19 | Patch4: %{name}-x32.patch | |
ad326883 | 20 | URL: http://www.openwall.com/john/ |
4380352b | 21 | BuildRequires: rpmbuild(macros) >= 1.213 |
f1598274 | 22 | BuildRequires: autoconf >= 2.69 |
3dbf4b73 | 23 | BuildRequires: tar >= 1:1.22 |
b282b6dc JB |
24 | %{?with_opencl:BuildRequires: OpenCL-devel} |
25 | BuildRequires: bzip2-devel | |
bd15433c | 26 | %{?with_openmp:BuildRequires: gcc >= 6:4.2} |
b282b6dc | 27 | BuildRequires: gmp-devel |
bd15433c | 28 | %{?with_openmp:BuildRequires: libgomp-devel} |
b282b6dc JB |
29 | # for SIPdump and vncpcap2john binaries, which are not packaged |
30 | #BuildRequires: libpcap-devel | |
31 | BuildRequires: openssl-devel >= 0.9.7 | |
32 | BuildRequires: pkgconfig | |
b282b6dc | 33 | BuildRequires: yasm |
b282b6dc | 34 | BuildRequires: zlib-devel |
53d2a984 | 35 | Requires: words |
fbb20392 | 36 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
00a4c442 | 37 | |
38 | %description | |
8e3a118d JB |
39 | John the Ripper is a fast password cracker, currently available for |
40 | many flavors of Unix (11 are officially supported, not counting | |
41 | different architectures), DOS, Win32, BeOS, and OpenVMS (the latter | |
42 | requires a contributed patch). Its primary purpose is to detect weak | |
43 | Unix passwords. Besides several crypt(3) password hash types most | |
44 | commonly found on various Unix flavors, supported out of the box are | |
45 | Kerberos/AFS and Windows NT/2000/XP LM hashes, plus several more with | |
46 | contributed patches. | |
e73a58f8 | 47 | |
15ea9c6b JR |
48 | %description -l pl.UTF-8 |
49 | John The Ripper jest szybkim "łamaczem" haseł dostępnym dla wielu | |
50 | rodzajów uniksów (oficjalnie obsługiwanych jest 11, nie licząc różnych | |
8e3a118d | 51 | architektur), DOS-a, Win32, BeOS-a i OpenVMS-a (ten ostatni wymaga |
15ea9c6b JR |
52 | łaty). Głównym zastosowaniem jest wykrywanie słabych haseł uniksowych. |
53 | Oprócz różnych rodzajów skrótów haseł crypt(3) najczęściej używanych | |
54 | na różnych uniksach, obsługiwane są także skróty Kerberos/AFS oraz | |
55 | Windows NT/2000/XP LM, a także kilka innych przy użyciu łat. | |
e73a58f8 | 56 | |
00a4c442 | 57 | %prep |
f1598274 | 58 | %setup -q -n JohnTheRipper-%{githash} |
00a4c442 | 59 | %patch0 -p1 |
f1598274 AG |
60 | %patch1 -p1 |
61 | %ifarch x32 | |
62 | %patch4 -p1 | |
63 | %endif | |
3443e32b | 64 | |
00a4c442 | 65 | %build |
66 | cd src | |
f1598274 | 67 | %{__autoconf} |
94f3ed69 | 68 | |
4b4e0bd3 JR |
69 | %ifarch x32 |
70 | ax_intel_x32=yes \ | |
71 | %endif | |
b282b6dc JB |
72 | %configure \ |
73 | %{!?with_opencl:--disable-opencl} \ | |
bd15433c | 74 | %{!?with_openmp:--disable-openmp} |
582fa295 | 75 | |
f1598274 | 76 | %{__make} |
94f3ed69 | 77 | |
00a4c442 | 78 | %install |
79 | rm -rf $RPM_BUILD_ROOT | |
18fb1460 | 80 | install -d $RPM_BUILD_ROOT{%{_bindir},%{_datadir}/john} |
3443e32b ER |
81 | cp -a run/{*.conf,*.chr,*.lst} $RPM_BUILD_ROOT%{_datadir}/john |
82 | install -p run/john $RPM_BUILD_ROOT%{_bindir} | |
0d881e9e | 83 | |
3443e32b ER |
84 | ln -sf john $RPM_BUILD_ROOT%{_bindir}/unafs |
85 | ln -sf john $RPM_BUILD_ROOT%{_bindir}/unique | |
86 | ln -sf john $RPM_BUILD_ROOT%{_bindir}/unshadow | |
00a4c442 | 87 | |
88 | %clean | |
89 | rm -rf $RPM_BUILD_ROOT | |
90 | ||
91 | %files | |
92 | %defattr(644,root,root,755) | |
1f693868 | 93 | %doc doc/* run/mailer |
3443e32b ER |
94 | %attr(755,root,root) %{_bindir}/john |
95 | %attr(755,root,root) %{_bindir}/unafs | |
96 | %attr(755,root,root) %{_bindir}/unique | |
97 | %attr(755,root,root) %{_bindir}/unshadow | |
18fb1460 | 98 | %{_datadir}/john |