4 Star 0 Fork 5

OpenCloudOS Stream/libxcrypt

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
libxcrypt.spec 5.66 KB
一键复制 编辑 原始数据 按行查看 历史
ocs-bot 提交于 2025-06-05 14:28 +08:00 . - [Type] other
%global _ld_strict_symbol_defs 1
Summary: Extended crypt library for descrypt, md5crypt, bcrypt, and others
Name: libxcrypt
Version: 4.4.36
Release: 8%{?dist}
License: LGPLv2+ and BSD and Public Domain
URL: https://github.com/besser82/%{name}
Source0: https://github.com/besser82/libxcrypt/archive/v%{version}.tar.gz
Patch0001: configure-Only-test-the-makecontext-signature-we-need.patch
Patch0002: https://github.com/besser82/libxcrypt/commit/ac2fea3990a3b0d750d080b055dd21741c14b9c3.patch
Patch0003: https://github.com/besser82/libxcrypt/commit/59d79640160fd8e1f62ab799d971e236063bb979.patch
Patch0004: https://github.com/besser82/libxcrypt/commit/dbcfb0123374d83fbf44fcb80d9282969c702759.patch
Patch5000: add-sm3-support.patch
Patch5001: add-loongarch-support-for-libxcrypt.patch
BuildRequires: gcc, make, autoconf, libtool
BuildRequires: glibc-devel >= 2.28, perl-core
Recommends: mkpasswd
Provides: %{name}-static, %{name}-compat
%description
libxcrypt is a modern library for one-way hashing of passwords. It
supports a wide variety of both modern and historical hashing methods:
yescrypt, gost-yescrypt, scrypt, bcrypt, sha512crypt, sha256crypt,
md5crypt, SunMD5, sha1crypt, NT, bsdicrypt, bigcrypt, and descrypt.
It provides the traditional Unix crypt and crypt_r interfaces, as well
as a set of extended interfaces pioneered by Openwall Linux, crypt_rn,
crypt_ra, crypt_gensalt, crypt_gensalt_rn, and crypt_gensalt_ra.
libxcrypt is intended to be used by login(1), passwd(1), and other
similar programs; that is, to hash a small number of passwords during
an interactive authentication dialogue with a human. It is not suitable
for use in bulk password-cracking applications, or in any other situation
where speed is more important than careful handling of sensitive data.
However, it is intended to be fast and lightweight enough for use in
servers that must field thousands of login attempts per minute.
This version of the library does not provide the legacy API functions
that have been provided by glibc's libcrypt.so.1.
%package devel
Summary: Development files for %{name}
Requires: %{name} = %{version}-%{release}
Requires: glibc-devel >= 2.28
%description devel
This package provides header files and libraries for developers
who use libxcrypt.
%prep
%autosetup -p1
%build
autoreconf -fiv
%global _configure "$(realpath ../configure)"
mkdir -p %{_vpath_builddir}
pushd %{_vpath_builddir}
%configure \
--disable-failure-tokens \
--disable-silent-rules \
--enable-shared \
--enable-static \
--disable-valgrind \
--srcdir=$(realpath ..) \
--with-pkgconfigdir=%{_libdir}/pkgconfig \
--enable-hashes=all \
--enable-obsolete-api=glibc
%make_build
%make_build test-programs
popd
%install
%make_install -C %{_vpath_builddir}
find %{buildroot} -name '*.la' -delete -print
%check
for dir in "%{_vpath_builddir}"; do
%make_build -C ${dir} check || \
{
rc=$?;
cat ${dir}/test-suite.log;
exit $rc;
}
done
%files
%license AUTHORS COPYING.LIB LICENSING
%doc NEWS README THANKS
%{_libdir}/libcrypt.so
%{_libdir}/libcrypt.so.*
%{_libdir}/libxcrypt.so
%{_mandir}/man5/crypt.5*
%{_mandir}/man3/crypt.3*
%files devel
%doc ChangeLog TODO
%{_includedir}/crypt.h
%{_includedir}/xcrypt.h
%{_libdir}/pkgconfig/libcrypt.pc
%{_libdir}/pkgconfig/%{name}.pc
%{_libdir}/libxcrypt.a
%{_libdir}/libcrypt.a
%{_mandir}/man3/crypt_r.3*
%{_mandir}/man3/crypt_ra.3*
%{_mandir}/man3/crypt_rn.3*
%{_mandir}/man3/crypt_checksalt.3*
%{_mandir}/man3/crypt_gensalt.3*
%{_mandir}/man3/crypt_gensalt_ra.3*
%{_mandir}/man3/crypt_gensalt_rn.3*
%{_mandir}/man3/crypt_preferred_method.3*
%changelog
* Thu Jun 05 2025 Tracker Robot <trackbot@opencloudos.tech> - 4.4.36-8
- [Type] other
- [DESC] Apply patches from rpm-tracker
- [Performance] dbcfb0123374d83fbf44fcb80d9282969c702759.patch: yescrypt: Use AVX512VL XOP-like bit rotates for faster Salsa20
* Tue Jun 03 2025 Tracker Robot <trackbot@opencloudos.tech> - 4.4.36-7
- [Type] bugfix
- [DESC] Apply patches from rpm-tracker
- [Bug Fix] ac2fea3990a3b0d750d080b055dd21741c14b9c3.patch: crypt: Zeroize initialized and reserved data members after computation.
- [Bug Fix] 59d79640160fd8e1f62ab799d971e236063bb979.patch: crypt: Initialize internal_rbytes array with 0-string.
* Wed Dec 25 2024 Tracker Robot <trackbot@opencloudos.tech> - 4.4.36-6
- Apply patches from rpm-tracker
- [Performance] configure: Only test the makecontext signature we need
* Thu Sep 26 2024 OpenCloudOS Release Engineering <releng@opencloudos.tech> - 4.4.36-5
- Rebuilt for clarifying the packages requirement in BaseOS and AppStream
* Fri Aug 16 2024 OpenCloudOS Release Engineering <releng@opencloudos.tech> - 4.4.36-4
- Rebuilt for loongarch release
* Wed Mar 6 2024 Wenlong Zhang <zhangwenlong@loongson.cn> - 4.4.36-3
- Fix build error for loongarch64
* Fri Sep 08 2023 OpenCloudOS Release Engineering <releng@opencloudos.tech> - 4.4.36-2
- Rebuilt for OpenCloudOS Stream 23.09
* Tue Aug 01 2023 Miaojun Dong <zoedong@tencent.com> - 4.4.36-1
- Bump version to 4.4.36
* Fri Apr 28 2023 OpenCloudOS Release Engineering <releng@opencloudos.tech> - 4.4.28-4
- Rebuilt for OpenCloudOS Stream 23.05
* Fri Mar 31 2023 OpenCloudOS Release Engineering <releng@opencloudos.tech> - 4.4.28-3
- Rebuilt for OpenCloudOS Stream 23
* Mon Mar 06 2023 Miaojun Dong <zoedong@tencent.com> - 4.4.28-2
- add sm3 support
* Mon Jun 13 2022 cunshunxia <cunshunxia@tencent.com> - 4.4.28-1
- initial build
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/opencloudos-stream/libxcrypt.git
git@gitee.com:opencloudos-stream/libxcrypt.git
opencloudos-stream
libxcrypt
libxcrypt
master

搜索帮助