commit dfd99075bb3f9a31ec1a0fc2d5153e3ae58a1b44 Author: overweight <5324761+overweight@user.noreply.gitee.com> Date: Mon Sep 30 10:59:19 2019 -0400 Package init diff --git a/libxcrypt-4.4.8.tar.gz b/libxcrypt-4.4.8.tar.gz new file mode 100644 index 0000000..8c621b4 Binary files /dev/null and b/libxcrypt-4.4.8.tar.gz differ diff --git a/libxcrypt.spec b/libxcrypt.spec new file mode 100644 index 0000000..f1dcd3f --- /dev/null +++ b/libxcrypt.spec @@ -0,0 +1,99 @@ +%define libdir /lib64 +Name: libxcrypt +Version: 4.4.8 +Release: 1 +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/libxcrypt/archive/%{name}-%{version}.tar.gz +BuildRequires: autoconf libtool fipscheck +Obsoletes: %{name}-common %{name}-common%{?_isa} +Provides: %{name}-common%{?_isa} <= %{version}-%{release} %{name}%{?_isa} <= %{version}-%{release} + +%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 +Obsoletes: %{name}-static %{name}-static%{?_isa} %{name}-devel%{?_isa} < %{version}-%{release} +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 check + +%post -p /sbin/ldconfig + +%postun -p /sbin/ldconfig + +%files +%license COPYING.LIB LICENSING +%doc NEWS README THANKS AUTHORS +%{libdir}/libcrypt.so.* + +%files devel +%doc ChangeLog TODO +%{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 +* Thu Sep 4 2019 openEuler Buildteam - 4.4.8-1 +- Package init