libxcrypt/libxcrypt.spec

156 lines
4.8 KiB
RPMSpec
Raw Normal View History

2019-09-30 10:59:19 -04:00
%define libdir /lib64
Name: libxcrypt
2023-07-13 10:07:31 +08:00
Version: 4.4.36
Release: 3
2019-09-30 10:59:19 -04:00
Summary: Extended crypt library for DES, MD5, Blowfish and others
License: LGPLv2+ and BSD and Public Domain
URL: https://github.com/besser82/%{name}
2020-09-08 10:11:42 +08:00
Source0: https://github.com/besser82/%{name}/archive/v%{version}.tar.gz
2021-12-27 17:15:30 +08:00
Patch9000: add-sm3-crypt-support.patch
Patch9001: add-loongarch-support-for-libxcrypt.patch
Patch9002: libxcrypt-4.4.26-sw.patch
2021-12-27 17:15:30 +08:00
2021-12-30 11:20:37 +08:00
BuildRequires: perl >= 5.14.0
2019-09-30 10:59:19 -04:00
BuildRequires: autoconf libtool fipscheck
2020-01-15 01:20:10 +08:00
Obsoletes: %{name}-common < %{version}-%{release}
2019-11-06 19:41:06 +08:00
Provides: %{name}-common%{?_isa} = %{version}-%{release} %{name}%{?_isa} = %{version}-%{release}
2020-01-15 01:20:10 +08:00
Provides: %{name}-common = %{version}-%{release}
2021-12-27 17:15:30 +08:00
Provides: %{name}-sm3 = %{version}-%{release}
2019-09-30 10:59:19 -04:00
%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.
%package devel
Summary: Development files for %{name}
Requires: %{name} = %{version}-%{release}
Requires: glibc-devel glibc-static
2020-01-15 01:20:10 +08:00
Obsoletes: %{name}-static < %{version}-%{release}
2019-09-30 10:59:19 -04:00
Provides: %{name}-static %{name}-static%{?_isa} %{name}-devel%{?_isa} = %{version}-%{release}
%description devel
The %{name}-devel package contains libraries and header files for
developing applications that use %{name}.
%package help
Summary: Man page for API of %{name}
BuildArch: noarch
%description help
%{summary}.
%prep
%autosetup -n %{name}-%{version} -p1
%build
autoreconf -fiv
%configure \
--libdir=%{libdir} \
--disable-silent-rules \
--enable-shared \
--enable-static \
--with-pkgconfigdir=%{_libdir}/pkgconfig \
--enable-obsolete-api=glibc
%make_build
%install
%make_install
%{_bindir}/find %{buildroot} -name '*.la' -print -delete
%check
%make_build check
2019-09-30 10:59:19 -04:00
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%files
%license COPYING.LIB LICENSING
2020-03-09 19:52:07 +08:00
%doc NEWS README README.md THANKS AUTHORS
2019-09-30 10:59:19 -04:00
%{libdir}/libcrypt.so.*
%files devel
2020-03-09 19:52:07 +08:00
%doc ChangeLog TODO TODO.md
2019-09-30 10:59:19 -04:00
%{libdir}/{libcrypt.so,libxcrypt.so}
%{_includedir}/{crypt.h,xcrypt.h}
%{_libdir}/pkgconfig/{libcrypt,%{name}}.pc
%{libdir}/{libcrypt.a,libxcrypt.a}
%files help
%{_mandir}/man3/crypt{,_r,_ra,_rn}.3.*
%{_mandir}/man3/crypt_gensalt{,_ra,_rn}.3.*
%{_mandir}/man3/crypt_checksalt.3.*
%{_mandir}/man3/crypt_preferred_method.3.*
%{_mandir}/man5/crypt.5.*
%changelog
* Fri Feb 28 2025 mahailiang <mahailiang@uniontech.com> - 4.4.36-3
- add sw_64 support
* Wed Mar 6 2024 Wenlong Zhang <zhangwenlong@loongson.cn> - 4.4.36-2
- Fix build error for loongarch64
2023-07-13 10:07:31 +08:00
* Thu Jul 13 2023 yixiangzhike <yixiangzhike007@163.com> - 4.4.36-1
- update to 4.4.36
* Sat Jan 28 2023 yixiangzhike <yixiangzhike007@163.com> - 4.4.33-1
- update to 4.4.33
2022-11-14 09:23:06 +00:00
* Mon Nov 14 2022 Wenlong Zhang <zhangwenlong@loongson.cn> - 4.4.26-3
- add loongarch support for libxcrypt
* Wed Oct 19 2022 yixiangzhike <yixiangzhike007@163.com> - 4.4.26-2
- use the macro make_build instead of make to support multitasking in check
2021-12-30 11:20:37 +08:00
* Thu Dec 30 2021 yixiangzhike <yixiangzhike007@163.com> - 4.4.26-1
- update to 4.4.26
2021-12-28 09:26:42 +08:00
* Tue Dec 28 2021 houmingyong<houmingyong@huawei.com> - 4.4.17-3
- add sm3 DT test case
2021-12-27 17:15:30 +08:00
* Mon Dec 27 2021 wangyu <wangyu283@huawei.com> - 4.4.17-2
- add sm3 crypt support
2021-01-21 20:16:24 +08:00
* Thu Jan 21 2021 wangchen <wangchen137@huawei.com> - 4.4.17-1
- update to 4.4.17
2020-09-08 10:11:42 +08:00
* Tue Sep 8 2020 wangchen <wangchen137@huawei.com> - 4.4.16-2
- modify the URL of Source0
2020-07-28 09:50:32 +08:00
* Tue Jul 28 2020 yang_zhuang_zhuang <yangzhuangzhuang1@huawei.com> - 4.4.16-1
- update version to 4.4.16
2020-03-09 19:52:07 +08:00
* Mon Mar 9 2020 openEuler Buildteam <buildteam@openeuler.org> - 4.4.8-4
- add link files README.md and TODO.md
2020-01-15 01:20:10 +08:00
* Wed Jan 15 2020 openEuler Buildteam <buildteam@openeuler.org> - 4.4.8-3
- fix build problem
2019-11-06 19:41:06 +08:00
* Mon Oct 28 2019 shenyangyang <shenyangyang4@huawei.com> - 4.4.8-2
- Type:enhancement
- ID:NA
- SUG:NA
- DESC:add provides of libxcrypt-common
2019-09-30 10:59:19 -04:00
* Thu Sep 4 2019 openEuler Buildteam <buildteam@openeuler.org> - 4.4.8-1
- Package init