Accepting request 814200 from security

OBS-URL: https://build.opensuse.org/request/show/814200
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/john?expand=0&rev=34
This commit is contained in:
Dominique Leuenberger 2020-06-12 19:46:40 +00:00 committed by Git OBS Bridge
commit 375a10aef8
2 changed files with 18 additions and 12 deletions

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Fri Jun 12 08:06:37 UTC 2020 - Martin Pluskal <mpluskal@suse.com>
- Fix building with gcc10
- Small cleanup of spec file with spec-cleaner
------------------------------------------------------------------- -------------------------------------------------------------------
Sat Oct 12 21:47:09 UTC 2019 - simmphonie@opensuse.org Sat Oct 12 21:47:09 UTC 2019 - simmphonie@opensuse.org

View File

@ -1,7 +1,7 @@
# #
# spec file for package john # spec file for package john
# #
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany. # Copyright (c) 2020 SUSE LLC
# #
# All modifications and additions to the file contributed by third parties # All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed # remain the property of their copyright owners, unless otherwise agreed
@ -42,7 +42,6 @@ BuildRequires: pkgconfig
BuildRequires: pkgconfig(OpenCL) BuildRequires: pkgconfig(OpenCL)
BuildRequires: pkgconfig(bzip2) BuildRequires: pkgconfig(bzip2)
BuildRequires: pkgconfig(openssl) BuildRequires: pkgconfig(openssl)
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description %description
John the Ripper is a password cracker (password security auditing John the Ripper is a password cracker (password security auditing
@ -60,10 +59,11 @@ perl -pi -e 's#^(\#define JOHN_SYSTEMWIDE_EXEC)\s.+$#$1\t\"%{johndir}\"#g' $RPM_
perl -pi -e 's#^(\#define CFG_FULL_NAME)\s.+$#$1\t\"%{_sysconfdir}/john.conf\"#g' $RPM_BUILD_DIR/%{name}-%{version}/src/params.h perl -pi -e 's#^(\#define CFG_FULL_NAME)\s.+$#$1\t\"%{_sysconfdir}/john.conf\"#g' $RPM_BUILD_DIR/%{name}-%{version}/src/params.h
perl -pi -e 's#^(\#define CFG_ALT_NAME)\s.+$#$1\t\"%{_sysconfdir}/john.conf\"#g' $RPM_BUILD_DIR/%{name}-%{version}/src/params.h perl -pi -e 's#^(\#define CFG_ALT_NAME)\s.+$#$1\t\"%{_sysconfdir}/john.conf\"#g' $RPM_BUILD_DIR/%{name}-%{version}/src/params.h
perl -pi -e 's#^(\#define WORDLIST_NAME)\s.+$#$1\t\"%{johndir}/password.lst\"#g' $RPM_BUILD_DIR/%{name}-%{version}/src/params.h perl -pi -e 's#^(\#define WORDLIST_NAME)\s.+$#$1\t\"%{johndir}/password.lst\"#g' $RPM_BUILD_DIR/%{name}-%{version}/src/params.h
perl -pi -e 's#^(\#define LOG_NAME)\s.+$#$1\t\"/var/log/john/john.log\"#g' $RPM_BUILD_DIR/%{name}-%{version}/src/params.h perl -pi -e 's#^(\#define LOG_NAME)\s.+$#$1\t\"%{_localstatedir}/log/john/john.log\"#g' $RPM_BUILD_DIR/%{name}-%{version}/src/params.h
perl -pi -e 's#^(\#define JOHN_SYSTEMWIDE_HOME)\s.+$#$1\t\"%{johndir}\"#g' $RPM_BUILD_DIR/%{name}-%{version}/src/params.h perl -pi -e 's#^(\#define JOHN_SYSTEMWIDE_HOME)\s.+$#$1\t\"%{johndir}\"#g' $RPM_BUILD_DIR/%{name}-%{version}/src/params.h
%build %build
export CFLAGS="%{optflags} -fcommon"
pushd src pushd src
%configure --with-systemwide \ %configure --with-systemwide \
--disable-openmp \ --disable-openmp \
@ -74,19 +74,19 @@ pushd src
--enable-simd=avx \ --enable-simd=avx \
%endif %endif
--disable-native-tests --disable-native-tests
make -s clean %make_build -s clean
make %{?_smp_mflags} %make_build
popd popd
# fix shebang # fix shebang
sed -i 's|#!/usr/bin/env perl|#!/usr/bin/perl|' run/*.pl sed -i 's|#!%{_bindir}/env perl|#!%{_bindir}/perl|' run/*.pl
sed -i 's|#! /usr/bin/env perl|#!/usr/bin/perl|' run/*.pl sed -i 's|#! %{_bindir}/env perl|#!%{_bindir}/perl|' run/*.pl
sed -i 's|#!/usr/bin/env python|#!/usr/bin/python|' run/*.py sed -i 's|#!%{_bindir}/env python|#!%{_bindir}/python|' run/*.py
sed -i 's|#! /usr/bin/env python|#!/usr/bin/python|' run/*.py sed -i 's|#! %{_bindir}/env python|#!%{_bindir}/python|' run/*.py
sed -i 's|#!/usr/bin/env perl|#!/usr/bin/perl|' run/relbench sed -i 's|#!%{_bindir}/env perl|#!%{_bindir}/perl|' run/relbench
%install %install
mkdir -p %{buildroot}{%{_bindir},%{johndir},%{johndir}/wordlists,%{_sysconfdir},%{_mandir}/man8} mkdir -p %{buildroot}{%{_bindir},%{johndir},%{johndir}/wordlists,%{_sysconfdir},%{_mandir}/man8}
mkdir -p %{buildroot}/var/log/john mkdir -p %{buildroot}%{_localstatedir}/log/john
install -m 755 run/john %{buildroot}%{_bindir}/ install -m 755 run/john %{buildroot}%{_bindir}/
install -m 755 run/*.py %{buildroot}%{_bindir}/ install -m 755 run/*.py %{buildroot}%{_bindir}/
install -m 755 run/*.pl %{buildroot}%{_bindir}/ install -m 755 run/*.pl %{buildroot}%{_bindir}/
@ -134,6 +134,6 @@ dos2unix %{buildroot}%{_defaultdocdir}/%{name}/README.krb5tgs-17-18-23.md
%attr(644,root,root) %{johndir}/r*.conf %attr(644,root,root) %{johndir}/r*.conf
%config (noreplace) %{_sysconfdir}/john.conf %config (noreplace) %{_sysconfdir}/john.conf
%config (noreplace) %{johndir}/john.local.conf %config (noreplace) %{johndir}/john.local.conf
%attr(775,root,users) %dir /var/log/john %attr(775,root,users) %dir %{_localstatedir}/log/john
%changelog %changelog