SHA256
1
0
forked from pool/argon2

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
This commit is contained in:
Ismail Dönmez 2017-01-28 19:20:58 +00:00 committed by Git OBS Bridge
parent fdf3ac9db0
commit a7bf82d42e
2 changed files with 12 additions and 3 deletions

View File

@ -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 Tue Dec 20 11:21:43 UTC 2016 - idonmez@suse.com

View File

@ -1,7 +1,7 @@
# #
# spec file for package argon2 # 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 # 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
@ -41,7 +41,7 @@ credential storage, key derivation, or other applications.
%package -n %{lname} %package -n %{lname}
Summary: The reference C implementation of Argon2 Summary: The reference C implementation of Argon2
Group : System/Libraries Group: System/Libraries
%description -n %{lname} %description -n %{lname}
Reference C implementation of Argon2, the password-hashing function 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 sed -i s,"LIBRARY_REL = lib","LIBRARY_REL = %{_lib}", Makefile
%build %build
make %{?_smp_mflags} CFLAGS="%{optflags} -Iinclude -Isrc" LDFLAGS="-lpthread" %{?_smp_mflags} make %{?_smp_mflags} CFLAGS="-pthread %{optflags} -Iinclude -Isrc"
%install %install
make %{?_smp_mflags} DESTDIR=%{buildroot} 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 mv %{buildroot}%{_libdir}/libargon2.so %{buildroot}%{_libdir}/libargon2.so.0
ln -s %{_libdir}/libargon2.so.0 %{buildroot}%{_libdir}/libargon2.so ln -s %{_libdir}/libargon2.so.0 %{buildroot}%{_libdir}/libargon2.so
%check
make CFLAGS="-pthread %{optflags} -Iinclude -Isrc" test
%post -n %{lname} -p /sbin/ldconfig %post -n %{lname} -p /sbin/ldconfig
%postun -n %{lname} -p /sbin/ldconfig %postun -n %{lname} -p /sbin/ldconfig