diff --git a/389-ds-base.spec b/389-ds-base.spec index ed3ba732c149c49fecff3e48feba43d13bf0a697..95fe0a05113feb96e57846b82de443beb939d30a 100644 --- a/389-ds-base.spec +++ b/389-ds-base.spec @@ -6,7 +6,7 @@ ExcludeArch: i686 Name: 389-ds-base Summary: Base 389 Directory Server Version: 1.4.3.20 -Release: 1 +Release: 2 License: GPLv3+ URL: https://www.port389.org Source0: https://releases.pagure.org/389-ds-base/389-ds-base-%{version}.tar.bz2 @@ -122,6 +122,13 @@ NSSARGS="--with-nss-lib=%{_libdir} --with-nss-inc=%{_includedir}/nss3" LEGACY_FLAGS="--enable-legacy --enable-perl" cd ../jemalloc-5.2.1 +%ifarch sw_64 loongarch64 +sed -i '/#ifndef LG_QUANTUM/a #ifdef __sw_64__\n#define LG_QUANTUM 4\n#endif' include/jemalloc/internal/quantum.h +sed -i '/#ifndef LG_QUANTUM/a #ifdef __loongarch__\n#define LG_QUANTUM 4\n#endif' include/jemalloc/internal/quantum.h +%_update_config_guess +%_update_config_sub +%endif + %configure --libdir=%{_libdir}/dirsrv/lib --bindir=%{_libdir}/dirsrv/bin --enable-prof %make_build cd - @@ -369,6 +376,9 @@ exit 0 %{_mandir}/*/* %changelog +* Mon Aug 7 2023 panchenbo - 1.4.3.20-2 +- add support for sw_64 and loongarch64 + * Tue Mar 15 2022 wangkai - 1.4.3.20-1 - Update to 1.4.3.20 for fix CVE-2020-35518