2016-12-20 15:06:16 +01:00
|
|
|
#
|
|
|
|
# spec file for package argon2
|
|
|
|
#
|
2023-09-25 16:43:29 +02:00
|
|
|
# Copyright (c) 2023 SUSE LLC
|
2016-12-20 15:06:16 +01:00
|
|
|
#
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
2020-05-12 17:02:47 +02:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2016-12-20 15:06:16 +01:00
|
|
|
#
|
|
|
|
|
|
|
|
|
2018-01-09 10:32:27 +01:00
|
|
|
%ifarch i686 x86_64
|
|
|
|
%define no_optimize 0
|
|
|
|
%else
|
|
|
|
%define no_optimize 1
|
|
|
|
%endif
|
|
|
|
# for convenience
|
2022-04-25 09:10:01 +02:00
|
|
|
%define make %__make %{?_smp_mflags} OPTFLAGS="%{optflags}" OPTTEST=%no_optimize LIB_ST= LIBRARY_REL=%_lib
|
2018-01-09 10:32:27 +01:00
|
|
|
|
|
|
|
%define lname libargon2-1
|
2016-12-20 15:06:16 +01:00
|
|
|
Name: argon2
|
2022-04-25 09:10:01 +02:00
|
|
|
Version: 20190702
|
2016-12-20 15:06:16 +01:00
|
|
|
Release: 0
|
|
|
|
Summary: The reference C implementation of Argon2
|
2022-04-25 09:10:01 +02:00
|
|
|
License: Apache-2.0 OR CC0-1.0
|
2016-12-20 15:06:16 +01:00
|
|
|
Group: Productivity/Networking/Security
|
2020-05-12 17:02:47 +02:00
|
|
|
URL: https://github.com/P-H-C/phc-winner-argon2
|
2022-04-27 11:24:55 +02:00
|
|
|
Source: https://github.com/P-H-C/phc-winner-argon2/archive/refs/tags/%{version}.tar.gz#/%{name}-%{version}.tar.gz
|
2018-01-30 14:52:56 +01:00
|
|
|
Source1: baselibs.conf
|
2022-04-25 09:10:01 +02:00
|
|
|
# PATCH-FIX-OPENSUSE adjust-makefile.patch -- Allow setting optflags and file permissions of installed libraries
|
|
|
|
Patch1: adjust-makefile.patch
|
2017-04-18 16:01:26 +02:00
|
|
|
BuildRequires: pkgconfig
|
2016-12-20 15:06:16 +01:00
|
|
|
BuildRequires: sed
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
|
|
|
|
%description
|
|
|
|
This is the reference C implementation of Argon2, the password-hashing function
|
2018-01-09 13:49:00 +01:00
|
|
|
that won the Password Hashing Competition (PHC) in 2015.
|
2016-12-20 15:06:16 +01:00
|
|
|
|
2018-01-09 13:49:00 +01:00
|
|
|
Argon2 is a password hashing function that is parametrized by a time cost, a
|
|
|
|
memory cost and a parallelism degree, used to guard against side-channel
|
|
|
|
attacks, attacks where lots of memory is available, or attacks where a lot of
|
|
|
|
processing is available.
|
2016-12-20 15:06:16 +01:00
|
|
|
|
2017-02-24 11:49:09 +01:00
|
|
|
%package doc
|
|
|
|
Summary: Documentation for Argon2
|
|
|
|
Group: Documentation/Other
|
|
|
|
BuildArch: noarch
|
|
|
|
|
|
|
|
%description doc
|
2018-01-09 13:49:00 +01:00
|
|
|
Documentation for Argon2, the password hashing function that won the Password
|
|
|
|
Hashing Competition (PHC) in 2015.
|
2017-02-24 11:49:09 +01:00
|
|
|
|
2016-12-20 15:06:16 +01:00
|
|
|
%package -n %{lname}
|
|
|
|
Summary: The reference C implementation of Argon2
|
2017-01-28 20:20:58 +01:00
|
|
|
Group: System/Libraries
|
2016-12-20 15:06:16 +01:00
|
|
|
|
|
|
|
%description -n %{lname}
|
|
|
|
Reference C implementation of Argon2, the password-hashing function
|
2018-01-09 13:49:00 +01:00
|
|
|
that won the Password Hashing Competition (PHC) in 2015.
|
2016-12-20 15:06:16 +01:00
|
|
|
|
|
|
|
%package devel
|
|
|
|
Summary: Development files for argon2
|
|
|
|
Group: Development/Libraries/C and C++
|
|
|
|
Requires: %{lname} = %{version}
|
|
|
|
|
|
|
|
%description devel
|
|
|
|
Headers for argon2, the reference C implementation of Argon2, the
|
2018-01-09 13:49:00 +01:00
|
|
|
password hashing function that won the Password Hashing Competition
|
|
|
|
(PHC) in 2015.
|
2016-12-20 15:06:16 +01:00
|
|
|
|
|
|
|
%prep
|
2024-02-21 10:25:16 +01:00
|
|
|
%autosetup -n phc-winner-argon2-%version -p1
|
2016-12-20 15:06:16 +01:00
|
|
|
|
|
|
|
%build
|
2022-04-25 09:10:01 +02:00
|
|
|
%make
|
2016-12-20 15:06:16 +01:00
|
|
|
|
|
|
|
%install
|
2022-04-25 09:10:01 +02:00
|
|
|
%make install DESTDIR=%{buildroot}
|
2016-12-20 15:06:16 +01:00
|
|
|
|
2017-02-24 11:49:09 +01:00
|
|
|
install -D -m 644 man/argon2.1 %{buildroot}%{_mandir}/man1/argon2.1
|
|
|
|
|
2017-01-28 20:20:58 +01:00
|
|
|
%check
|
2018-01-09 10:32:27 +01:00
|
|
|
%make test
|
2017-01-28 20:20:58 +01:00
|
|
|
|
2016-12-20 15:06:16 +01:00
|
|
|
%post -n %{lname} -p /sbin/ldconfig
|
|
|
|
%postun -n %{lname} -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root)
|
2018-01-09 10:32:27 +01:00
|
|
|
%license LICENSE
|
|
|
|
%doc CHANGELOG.md README.md
|
2016-12-20 15:06:16 +01:00
|
|
|
%{_bindir}/argon2
|
2017-02-24 11:49:09 +01:00
|
|
|
%{_mandir}/man1/argon2.1%{ext_man}
|
|
|
|
|
|
|
|
%files doc
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%doc argon2-specs.pdf
|
2016-12-20 15:06:16 +01:00
|
|
|
|
|
|
|
%files -n %{lname}
|
|
|
|
%defattr(-,root,root)
|
2018-01-09 10:32:27 +01:00
|
|
|
%{_libdir}/libargon2.so.1
|
2016-12-20 15:06:16 +01:00
|
|
|
|
|
|
|
%files devel
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%{_includedir}/argon2.h
|
|
|
|
%{_libdir}/libargon2.so
|
2017-04-18 16:01:26 +02:00
|
|
|
%{_libdir}/pkgconfig/libargon2.pc
|
2016-12-20 15:06:16 +01:00
|
|
|
|
|
|
|
%changelog
|