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