# Build libcrypt.so.2 if obsolete APIs are excluded, libcrypt.so.1 otherwise.
if ENABLE_OBSOLETE_API
-libcrypt_la_VERSION = 2:0:1
-+libxcrypt_la_VERSION = 2:0:1
++libxcrypt_la_VERSION = 3:0:1
else
-libcrypt_la_VERSION = 2:0:0
-+libxcrypt_la_VERSION = 2:0:0
++libxcrypt_la_VERSION = 3:0:0
endif
-libcrypt_la_LDFLAGS = -version-info $(libcrypt_la_VERSION)
%{__automake}
%configure \
--includedir=%{_includedir}/xcrypt \
- --disable-obsolete-api \
--disable-werror \
--disable-xcrypt-compat-files
%{__make}
%{__mv} $RPM_BUILD_ROOT%{_libdir}/libxcrypt.so.* $RPM_BUILD_ROOT/%{_lib}
ln -snf /%{_lib}/$(basename $RPM_BUILD_ROOT/%{_lib}/libxcrypt.so.*.*.*) $RPM_BUILD_ROOT%{_libdir}/libxcrypt.so
+# PLD doesn't need Owl compatibility
+%{__rm} $RPM_BUILD_ROOT%{_libdir}/libowcrypt.*
+# packaged with glibc-devel
%{__rm} $RPM_BUILD_ROOT%{_mandir}/man3/crypt{,_r,_ra,_rn}.3*
%clean