From aaff10ab4d49e80a8f2677280e1f195950e49e25 Mon Sep 17 00:00:00 2001 From: Björn Esser Date: Nov 14 2018 18:44:41 +0000 Subject: New upstream release --- diff --git a/libxcrypt.spec b/libxcrypt.spec index 078e1e6..aae567f 100644 --- a/libxcrypt.spec +++ b/libxcrypt.spec @@ -36,7 +36,7 @@ # Hash methods and API supported by libcrypt. # NEVER EVER touch this, if you do NOT know what you are doing! %if %{with new_api} -%global hash_methods glibc,strong +%global hash_methods fedora,glibc,strong %global obsolete_api no %global compat_methods all %global compat_api glibc @@ -74,6 +74,8 @@ %{__arch_install_post} \ %{__os_install_post} \ %{_bindir}/fipshmac %{buildroot}/%{_lib}/libcrypt.a \ +%{__ln_s} .libcrypt.a.hmac \\\ + %{buildroot}/%{_lib}/.libxcrypt.a.hmac \ %{_bindir}/fipshmac %{buildroot}/%{_lib}/libcrypt.so.%{sov} \ %{__ln_s} .libcrypt.so.%{sov}.hmac \\\ %{buildroot}/%{_lib}/.libcrypt.so.%{soc}.hmac \ @@ -86,8 +88,8 @@ fi \ Name: libxcrypt -Version: 4.3.3 -Release: 4%{?dist} +Version: 4.3.4 +Release: 1%{?dist} Summary: Extended crypt library for DES, MD5, Blowfish and others # For explicit license breakdown, see the @@ -97,13 +99,10 @@ URL: https://github.com/besser82/%{name} Source0: %{url}/archive/v%{version}/%{name}-%{version}.tar.gz # Patch 0000 - 2999: Backported patches from upstream. -Patch0000: %{url}/commit/5e9199f293473a0c14f836b3df8ecf6aeed1e315.patch#/%{name}-4.3.3-alg_sha512_make_PAD_const.patch -Patch0001: %{url}/commit/65485d7891cfe50db941ab14e864bb485a54d71c.patch#/%{name}-4.3.3-skip_bcrypt_test_if_not_enabled.patch # Patch 3000 - 5999: Backported patches from pull requests. # Patch 6000 - 9999: Downstream patches. -Patch6000: %{name}-4.3.3-gensalt_r_as_macro.patch BuildRequires: fipscheck BuildRequires: libtool @@ -206,6 +205,7 @@ discouraged. %build +# Build the default system library. pushd %{_vpath_builddir} %configure \ %{common_configure_options} \ @@ -213,7 +213,9 @@ pushd %{_vpath_builddir} --enable-obsolete-api=%{obsolete_api} %make_build popd + %if %{with new_api} +# Build the compatibility library. pushd %{_vpath_builddir}-compat %configure \ %{common_configure_options} \ @@ -226,14 +228,19 @@ popd %install %if %{with new_api} +# Install the compatibility library. %make_install -C %{_vpath_builddir}-compat -%{__rm} -fr %{buildroot}%{_bindir} \ - %{buildroot}%{_includedir} \ - %{buildroot}/%{_lib}/libcrypt.{a,so} \ - %{buildroot}%{_libdir}/pkgconfig \ - %{buildroot}%{_mandir} \ + +# Cleanup everything we do not need from the compatibility library. +%{__rm} -fr %{buildroot}%{_bindir} \ + %{buildroot}%{_includedir} \ + %{buildroot}/%{_lib}/lib{,x}crypt.{a,so} \ + %{buildroot}%{_libdir}/pkgconfig \ + %{buildroot}%{_mandir} \ %{buildroot}%{_sbindir} %endif + +# Install the default system library. %make_install -C %{_vpath_builddir} # Get rid of libtool crap. @@ -243,6 +250,7 @@ popd %{__install} -Dpm 0644 -t %{buildroot}%{_pkgdocdir} \ ChangeLog NEWS README THANKS TODO +# Install 'README.fedora', if existing, to shared %%_pkgdocdir. if [ -f README.fedora ]; then %{__install} -Dpm 0644 -t %{buildroot}%{_pkgdocdir} \ README.fedora @@ -303,8 +311,8 @@ done %files devel %doc %{_pkgdocdir}/ChangeLog %doc %{_pkgdocdir}/TODO -/%{_lib}/libcrypt.so -%{_includedir}/crypt.h +/%{_lib}/lib{,x}crypt.so +%{_includedir}/{,x}crypt.h %{_libdir}/pkgconfig/{libcrypt,%{name}}.pc %{_mandir}/man3/crypt{,_r,_ra,_rn}.3.* %{_mandir}/man3/crypt_checksalt.3.* @@ -312,11 +320,14 @@ done %files static -/%{_lib}/.libcrypt.a.hmac -/%{_lib}/libcrypt.a +/%{_lib}/.lib{,x}crypt.a.hmac +/%{_lib}/lib{,x}crypt.a %changelog +* Wed Nov 14 2018 Björn Esser - 4.3.4-1 +- New upstream release + * Wed Nov 14 2018 Björn Esser - 4.3.3-4 - Bump release for proper obsoletion of former common sub-package diff --git a/sources b/sources index e5d78d6..ec82b53 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (libxcrypt-4.3.3.tar.gz) = d77fcb9827086f4f5d232ac56a3e8cb5caf17da1807cd18a41029e49fee4088d143885b08f8edf65da61dc11b5061af0ae86508857c417fec933844999f4443a +SHA512 (libxcrypt-4.3.4.tar.gz) = 0c18f2dd1e6c1dd428a3acc65504b8b4592a8c4d1531e397e94b7872049f4a929bfbc2748eb937be74482175a762e78b275f93591dea7cf009d4f7ae26243bc7