]> git.pld-linux.org Git - packages/john.git/commitdiff
- fix ix86 build, by passing JOHN_SYSTEMWIDE_EXEC via include file; rel 2 auto/ac/john-1_7_6-2 auto/th/john-1_7_6-2
authorElan Ruusamäe <glen@pld-linux.org>
Fri, 5 Nov 2010 11:23:28 +0000 (11:23 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    john.spec -> 1.61

john.spec

index 1a9fba39334bf9b9664f33204ed3ad7e550c9066..25464be11f5099c9fd87f5379245bfeb4debe945 100644 (file)
--- a/john.spec
+++ b/john.spec
@@ -20,7 +20,7 @@ Summary:      Password cracker
 Summary(pl.UTF-8):     Łamacz haseł
 Name:          john
 Version:       1.7.6
-Release:       1
+Release:       2
 License:       GPL
 Group:         Applications/System
 Source0:       http://www.openwall.com/john/g/%{name}-%{version}.tar.bz2
@@ -64,10 +64,15 @@ rm -f doc/INSTALL
 %build
 cd src
 
+cat > defs.h <<'EOF'
+#define        JOHN_SYSTEMWIDE 1
+#define        JOHN_SYSTEMWIDE_EXEC "%{_libdir}/john"
+EOF
+
 %if %{do_mmxfb}
 %{__make} linux-x86-any \
        CC="%{__cc}" \
-       OPTFLAGS="%{rpmcflags} -DJOHN_SYSTEMWIDE=1"
+       OPTFLAGS="%{rpmcflags} -include defs.h"
 mv ../run/john ../run/john-non-mmx
 %{__make} clean
 %endif
@@ -92,7 +97,7 @@ TARG=generic
 
 %{__make} $TARG \
        CC="%{__cc}" \
-       OPTFLAGS="%{rpmcflags} -DJOHN_SYSTEMWIDE=1 -DJOHN_SYSTEMWIDE_EXEC=\\\"%{_libdir}/john\\\" %{?optmmxfb}"
+       OPTFLAGS='%{rpmcflags} -include defs.h %{?optmmxfb}'
 
 %install
 rm -rf $RPM_BUILD_ROOT
This page took 0.183089 seconds and 4 git commands to generate.