diff --git a/add-loongarch.patch b/add-loongarch.patch new file mode 100644 index 0000000000000000000000000000000000000000..045087cb3a6b7d87463045bba8d605c4cd1baa06 --- /dev/null +++ b/add-loongarch.patch @@ -0,0 +1,12 @@ +diff --git a/lib/libcrypt.minver b/lib/libcrypt.minver +index 445b946..1149b03 100644 +--- a/lib/libcrypt.minver ++++ b/lib/libcrypt.minver +@@ -87,6 +87,7 @@ GLIBC_2.0 linux.*gnu s390 + GLIBC_2.0 linux.*gnu sh + GLIBC_2.0 linux.*gnu sparc + GLIBC_2.0 linux.*gnu x86_64 ++GLIBC_2.2.5 linux.*gnu loongarch64 + ERROR linux.*gnu . + + # Other systems. diff --git a/libxcrypt.spec b/libxcrypt.spec index 979e9cf892a7b9525b4b4db5baab03b8938bfb73..4eeb2b404b6b866f9956ca2eb0d08a5c1501e5b3 100644 --- a/libxcrypt.spec +++ b/libxcrypt.spec @@ -1,12 +1,13 @@ %define libdir /lib64 Name: libxcrypt Version: 4.4.26 -Release: 2 +Release: 3 Summary: Extended crypt library for DES, MD5, Blowfish and others License: LGPLv2+ and BSD and Public Domain URL: https://github.com/besser82/%{name} Source0: https://github.com/besser82/%{name}/archive/v%{version}.tar.gz +Patch0001: add-loongarch.patch Patch9000: add-sm3-crypt-support.patch BuildRequires: autoconf libtool fipscheck @@ -101,6 +102,9 @@ make check %changelog +* Mon Apr 18 2022 xu_ping - 4.4.26-3 +- add loongarch support + * Thu Dec 16 2021 houmingyong - 4.4.26-2 - add sm3 crypt support