#
# Conditional build:
-%bcond_with default_crypt # build as default libcrypt provider
+%bcond_without default_crypt # build as default libcrypt provider
Summary: Crypt Library for DES, MD5, and Blowfish
Summary(pl.UTF-8): Biblioteka szyfrująca hasła obsługująca DES, MD5 i Blowfish
Name: libxcrypt
-Version: 4.4.24
-Release: 1
+Version: 4.4.25
+Release: 2
License: LGPL v2.1+
Group: Libraries
#Source0Download: https://github.com/besser82/libxcrypt/releases
Source0: https://github.com/besser82/libxcrypt/archive/v%{version}/%{name}-%{version}.tar.gz
-# Source0-md5: 1733b6db8c662705773a2aa62ab75fd5
+# Source0-md5: 4828b1530f5bf35af0b45b35acc4db1d
Patch0: %{name}-xcrypt.patch
URL: https://github.com/besser82/libxcrypt
BuildRequires: autoconf >= 2.62
%{__autoheader}
%{__automake}
%configure \
- %{!?with_default_crypt:--includedir=%{_includedir}/xcrypt} \
- --disable-werror \
- --disable-xcrypt-compat-files
+%if %{with default_crypt}
+ --enable-obsolete-api=glibc \
+ --enable-obsolete-api-enosys=yes \
+%else
+ --includedir=%{_includedir}/xcrypt \
+ --disable-xcrypt-compat-files \
+%endif
+ --disable-werror
%{__make}
%install
# obsoleted by pkg-config
%{__rm} $RPM_BUILD_ROOT%{_libdir}/%{libname}.la
-# PLD doesn't need Owl compatibility
-%{__rm} $RPM_BUILD_ROOT%{_libdir}/libowcrypt.*
# packaged with glibc-devel
%{!?with_default_crypt:%{__rm} $RPM_BUILD_ROOT%{_mandir}/man3/crypt{,_r,_ra,_rn}.3*}
%attr(755,root,root) %{_libdir}/%{libname}.so
%if %{with default_crypt}
%{_includedir}/crypt.h
+%{_includedir}/xcrypt.h
+%attr(755,root,root) %{_libdir}/libxcrypt.so
%else
%{_includedir}/xcrypt
%endif
%files static
%defattr(644,root,root,755)
%{_libdir}/%{libname}.a
+%if %{with default_crypt}
+%{_libdir}/libxcrypt.a
+%endif