]> git.pld-linux.org Git - packages/john.git/commitdiff
- added jumbo version dependencies, gomp and opencl bconds
authorJakub Bogusz <qboosh@pld-linux.org>
Sun, 30 Aug 2015 10:29:08 +0000 (12:29 +0200)
committerJakub Bogusz <qboosh@pld-linux.org>
Sun, 30 Aug 2015 10:29:08 +0000 (12:29 +0200)
john.spec

index c83c8e0a063bf82a87d96b7e7f01b2d9ce8caaad..e152ba9536cfe35c271ced00923bb122abd2f6ee 100644 (file)
--- a/john.spec
+++ b/john.spec
@@ -1,8 +1,13 @@
+# TODO:
+# - MPI support (if with jumbo)
+# - CUDA support on bcond (if with jumbo)
 #
 # Conditional build:
 %bcond_without jumbo           # Build community-enhanced version with lots of contributed
                                # patches adding support for over 30
                                # of additional hash types, and more.
+%bcond_without gomp            # OpenMP support (in jumbo version)
+%bcond_without opencl          # OpenCL support (in jumbo version)
 %bcond_with    avx             # use x86 AVX instructions
 %bcond_with    xop             # use x86 XOP instructions
 %bcond_with    altivec         # use PPC Altivec instructions
@@ -52,10 +57,24 @@ Patch1:             optflags.patch
 Patch2:                jumbo-optflags.patch
 Patch3:                jumbo-x32.patch
 URL:           http://www.openwall.com/john/
-%{?with_jumbo:BuildRequires: openssl-devel >= 0.9.7}
 BuildRequires: rpmbuild(macros) >= 1.213
 BuildRequires: tar >= 1:1.22
 BuildRequires: xz
+%if %{with jumbo}
+%{?with_opencl:BuildRequires:  OpenCL-devel}
+BuildRequires: bzip2-devel
+%{?with_gomp:BuildRequires:    gcc >= 6:4.2}
+BuildRequires: gmp-devel
+%{?with_gomp:BuildRequires:    libgomp-devel}
+# for SIPdump and vncpcap2john binaries, which are not packaged
+#BuildRequires:        libpcap-devel
+BuildRequires: openssl-devel >= 0.9.7
+BuildRequires: pkgconfig
+%ifarch %{ix86} %{x8664} x32
+BuildRequires: yasm
+%endif
+BuildRequires: zlib-devel
+%endif
 Requires:      words
 %ifarch %{ix86} %{x8664}
 %if %{with xop}
@@ -109,7 +128,9 @@ cd src
 %ifarch x32
 ax_intel_x32=yes \
 %endif
-%configure
+%configure \
+       %{!?with_opencl:--disable-opencl} \
+       %{!?with_gomp:--disable-openmp}
 %{__make}
 %else
 cat > defs.h <<'EOF'
This page took 0.072067 seconds and 4 git commands to generate.