From a7bf82d42e61aef94afa3280c77d314adb4a4364c941f9dcd815e8caf11f1f2a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ismail=20D=C3=B6nmez?= Date: Sat, 28 Jan 2017 19:20:58 +0000 Subject: [PATCH] Accepting request 453134 from home:frispete:python3 - make sure to call cc with -pthread option (implies -lpthread) - run test suite OBS-URL: https://build.opensuse.org/request/show/453134 OBS-URL: https://build.opensuse.org/package/show/security/argon2?expand=0&rev=4 --- argon2.changes | 6 ++++++ argon2.spec | 9 ++++++--- 2 files changed, 12 insertions(+), 3 deletions(-) diff --git a/argon2.changes b/argon2.changes index ac4f49f..8e6be9f 100644 --- a/argon2.changes +++ b/argon2.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Sat Jan 28 09:56:58 UTC 2017 - hpj@urpla.net + +- make sure to call cc with -pthread option (implies -lpthread) +- run test suite + ------------------------------------------------------------------- Tue Dec 20 11:21:43 UTC 2016 - idonmez@suse.com diff --git a/argon2.spec b/argon2.spec index 70a2b12..dc88a17 100644 --- a/argon2.spec +++ b/argon2.spec @@ -1,7 +1,7 @@ # # spec file for package argon2 # -# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -41,7 +41,7 @@ credential storage, key derivation, or other applications. %package -n %{lname} Summary: The reference C implementation of Argon2 -Group : System/Libraries +Group: System/Libraries %description -n %{lname} Reference C implementation of Argon2, the password-hashing function @@ -63,7 +63,7 @@ password-hashing function that won the Password Hashing Competition (PHC). sed -i s,"LIBRARY_REL = lib","LIBRARY_REL = %{_lib}", Makefile %build -make %{?_smp_mflags} CFLAGS="%{optflags} -Iinclude -Isrc" LDFLAGS="-lpthread" %{?_smp_mflags} +make %{?_smp_mflags} CFLAGS="-pthread %{optflags} -Iinclude -Isrc" %install make %{?_smp_mflags} DESTDIR=%{buildroot} install @@ -73,6 +73,9 @@ chmod -x %{buildroot}%{_includedir}/argon2.h mv %{buildroot}%{_libdir}/libargon2.so %{buildroot}%{_libdir}/libargon2.so.0 ln -s %{_libdir}/libargon2.so.0 %{buildroot}%{_libdir}/libargon2.so +%check +make CFLAGS="-pthread %{optflags} -Iinclude -Isrc" test + %post -n %{lname} -p /sbin/ldconfig %postun -n %{lname} -p /sbin/ldconfig