From d08e7d4bcba68892beac142a29949f6e4a04434a Mon Sep 17 00:00:00 2001 From: Silvan Calarco Date: Fri, 5 Jan 2024 20:32:19 +0100 Subject: [PATCH] package created using the webbuild interface [release 20190702-1mamba;Thu Jan 26 2023] --- README.md | 2 ++ argon2.spec | 75 +++++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 77 insertions(+) create mode 100644 argon2.spec diff --git a/README.md b/README.md index 1a7bfd6..fae015a 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,4 @@ # argon2 +A password-hashing function (reference C implementation). + diff --git a/argon2.spec b/argon2.spec new file mode 100644 index 0000000..11b7ec6 --- /dev/null +++ b/argon2.spec @@ -0,0 +1,75 @@ +Name: argon2 +Version: 20190702 +Release: 1mamba +Summary: A password-hashing function (reference C implementation) +Group: Applications/Security +Vendor: openmamba +Distribution: openmamba +Packager: Silvan Calarco +URL: https://github.com/P-H-C/phc-winner-argon2 +Source: https://github.com/P-H-C/phc-winner-argon2.git/%{version}/phc-winner-argon2-%{version}.tar.bz2 +License: Apache License 2.0, CC0 License +## AUTOBUILDREQ-BEGIN +BuildRequires: glibc-devel +## AUTOBUILDREQ-END +Requires: lib%{name} = %{?epoch:%epoch:}%{version}-%{release} + +%description +A password-hashing function (reference C implementation). + +%package -n lib%{name} +Group: System/Libraries +Summary: Shared libraries for %{name} + +%description -n lib%{name} +This package contains shared libraries for %{name}. + +%package -n lib%{name}-devel +Group: Development/Libraries +Summary: Development files for %{name} +Requires: lib%{name} = %{?epoch:%epoch:}%{version}-%{release} +Requires: pkg-config + +%description -n lib%{name}-devel +This package contains libraries and header files for developing applications that use %{name}. + + +%debug_package + +%prep +%setup -q -n phc-winner-%{name}-%{version} + +%build +%make ARGON2_VERSION="%{version}" OPTTARGET='none' LIBRARY_REL='%{_lib}' + +%install +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" +%makeinstall ARGON2_VERSION="%{version}" OPTTARGET='none' LIBRARY_REL='%{_lib}' + +%clean +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" + +%post -n lib%{name} -p /sbin/ldconfig +%postun -n lib%{name} -p /sbin/ldconfig + +%files +%defattr(-,root,root) +%{_bindir}/argon2 + +%files -n lib%{name} +%defattr(-,root,root) +%{_libdir}/libargon2.so.* +%doc LICENSE + +%files -n lib%{name}-devel +%defattr(-,root,root) +%{_includedir}/argon2.h +%{_libdir}/libargon2.a +%{_libdir}/libargon2.so +%{_libdir}/pkgconfig/libargon2.pc +%doc README.md + + +%changelog +* Thu Jan 26 2023 Silvan Calarco 20190702-1mamba +- package created using the webbuild interface