|
|
@ -1,3 +1,13 @@
|
|
|
|
|
|
|
|
## START: Set by rpmautospec
|
|
|
|
|
|
|
|
## (rpmautospec version 0.6.5)
|
|
|
|
|
|
|
|
## RPMAUTOSPEC: autorelease, autochangelog
|
|
|
|
|
|
|
|
%define autorelease(e:s:pb:n) %{?-p:0.}%{lua:
|
|
|
|
|
|
|
|
release_number = 1;
|
|
|
|
|
|
|
|
base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}"));
|
|
|
|
|
|
|
|
print(release_number + base_release_number - 1);
|
|
|
|
|
|
|
|
}%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{!?-n:%{?dist}}
|
|
|
|
|
|
|
|
## END: Set by rpmautospec
|
|
|
|
|
|
|
|
|
|
|
|
# Recent so-version, so we do not bump accidentally.
|
|
|
|
# Recent so-version, so we do not bump accidentally.
|
|
|
|
%global nettle_so_ver 8
|
|
|
|
%global nettle_so_ver 8
|
|
|
|
%global hogweed_so_ver 6
|
|
|
|
%global hogweed_so_ver 6
|
|
|
@ -11,14 +21,25 @@
|
|
|
|
%global hogweed_so_ver_old 5
|
|
|
|
%global hogweed_so_ver_old 5
|
|
|
|
%endif
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
%bcond_without fips
|
|
|
|
%if %{defined rhel}
|
|
|
|
|
|
|
|
# * RHEL 9 and later include nettle in the gnutls module boundary,
|
|
|
|
|
|
|
|
# and HMAC is calculated there with its own tool.
|
|
|
|
|
|
|
|
# * RHEL 9 and later statically links to gmp to ensure zeroization of CSP.
|
|
|
|
|
|
|
|
%if 0%{?rhel} < 9
|
|
|
|
|
|
|
|
%bcond_without fipshmac
|
|
|
|
|
|
|
|
%bcond_with bundle_gmp
|
|
|
|
|
|
|
|
%else
|
|
|
|
|
|
|
|
%bcond_with fipshmac
|
|
|
|
|
|
|
|
%bcond_without bundle_gmp
|
|
|
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
Name: nettle
|
|
|
|
Name: nettle
|
|
|
|
Version: 3.8
|
|
|
|
Version: 3.10
|
|
|
|
Release: 3%{?dist}
|
|
|
|
Release: %{?autorelease}%{!?autorelease:1%{?dist}}
|
|
|
|
Summary: A low-level cryptographic library
|
|
|
|
Summary: A low-level cryptographic library
|
|
|
|
|
|
|
|
|
|
|
|
License: LGPLv3+ or GPLv2+
|
|
|
|
License: LGPL-3.0-or-later OR GPL-2.0-or-later
|
|
|
|
URL: http://www.lysator.liu.se/~nisse/nettle/
|
|
|
|
URL: http://www.lysator.liu.se/~nisse/nettle/
|
|
|
|
Source0: %{name}-%{version}-hobbled.tar.xz
|
|
|
|
Source0: %{name}-%{version}-hobbled.tar.xz
|
|
|
|
#Source0: http://www.lysator.liu.se/~nisse/archive/%%{name}-%%{version}.tar.gz
|
|
|
|
#Source0: http://www.lysator.liu.se/~nisse/archive/%%{name}-%%{version}.tar.gz
|
|
|
@ -26,7 +47,6 @@ Source0: %{name}-%{version}-hobbled.tar.xz
|
|
|
|
Source1: %{name}-%{version_old}-hobbled.tar.xz
|
|
|
|
Source1: %{name}-%{version_old}-hobbled.tar.xz
|
|
|
|
Source2: nettle-3.5-remove-ecc-testsuite.patch
|
|
|
|
Source2: nettle-3.5-remove-ecc-testsuite.patch
|
|
|
|
%endif
|
|
|
|
%endif
|
|
|
|
Patch: nettle-3.4-annocheck.patch
|
|
|
|
|
|
|
|
Patch: nettle-3.8-zeroize-stack.patch
|
|
|
|
Patch: nettle-3.8-zeroize-stack.patch
|
|
|
|
|
|
|
|
|
|
|
|
Source100: gmp-6.2.1.tar.xz
|
|
|
|
Source100: gmp-6.2.1.tar.xz
|
|
|
@ -36,12 +56,12 @@ Source102: gmp-6.2.1-zeroize-allocator.patch
|
|
|
|
|
|
|
|
|
|
|
|
BuildRequires: make
|
|
|
|
BuildRequires: make
|
|
|
|
BuildRequires: gcc
|
|
|
|
BuildRequires: gcc
|
|
|
|
%if !%{with fips}
|
|
|
|
%if !%{with bundle_gmp}
|
|
|
|
BuildRequires: gmp-devel
|
|
|
|
BuildRequires: gmp-devel
|
|
|
|
%endif
|
|
|
|
%endif
|
|
|
|
BuildRequires: m4
|
|
|
|
BuildRequires: m4
|
|
|
|
BuildRequires: libtool, automake, autoconf, gettext-devel
|
|
|
|
BuildRequires: libtool, automake, autoconf, gettext-devel
|
|
|
|
%if %{with fips}
|
|
|
|
%if %{with fipshmac}
|
|
|
|
BuildRequires: fipscheck
|
|
|
|
BuildRequires: fipscheck
|
|
|
|
%endif
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
@ -67,7 +87,7 @@ applications with nettle.
|
|
|
|
%prep
|
|
|
|
%prep
|
|
|
|
%autosetup -Tb 0 -p1
|
|
|
|
%autosetup -Tb 0 -p1
|
|
|
|
|
|
|
|
|
|
|
|
%if %{with fips}
|
|
|
|
%if %{with bundle_gmp}
|
|
|
|
mkdir -p bundled_gmp
|
|
|
|
mkdir -p bundled_gmp
|
|
|
|
pushd bundled_gmp
|
|
|
|
pushd bundled_gmp
|
|
|
|
tar --strip-components=1 -xf %{SOURCE100}
|
|
|
|
tar --strip-components=1 -xf %{SOURCE100}
|
|
|
@ -98,7 +118,7 @@ sed 's/ecc-secp192r1.c//g' -i Makefile.in
|
|
|
|
sed 's/ecc-secp224r1.c//g' -i Makefile.in
|
|
|
|
sed 's/ecc-secp224r1.c//g' -i Makefile.in
|
|
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
%build
|
|
|
|
%if %{with fips}
|
|
|
|
%if %{with bundle_gmp}
|
|
|
|
pushd bundled_gmp
|
|
|
|
pushd bundled_gmp
|
|
|
|
autoreconf -ifv
|
|
|
|
autoreconf -ifv
|
|
|
|
%configure --disable-cxx --disable-shared --enable-fat --with-pic
|
|
|
|
%configure --disable-cxx --disable-shared --enable-fat --with-pic
|
|
|
@ -107,13 +127,13 @@ popd
|
|
|
|
%endif
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
autoreconf -ifv
|
|
|
|
autoreconf -ifv
|
|
|
|
|
|
|
|
# For annocheck
|
|
|
|
|
|
|
|
export ASM_FLAGS="-Wa,--generate-missing-build-notes=yes"
|
|
|
|
%configure --enable-shared --enable-fat \
|
|
|
|
%configure --enable-shared --enable-fat \
|
|
|
|
%if %{with fips}
|
|
|
|
%if %{with bundle_gmp}
|
|
|
|
--with-include-path=$PWD/bundled_gmp --with-lib-path=$PWD/bundled_gmp/.libs \
|
|
|
|
--with-include-path=$PWD/bundled_gmp --with-lib-path=$PWD/bundled_gmp/.libs \
|
|
|
|
%endif
|
|
|
|
%endif
|
|
|
|
%{nil}
|
|
|
|
%{nil}
|
|
|
|
|
|
|
|
|
|
|
|
%make_build
|
|
|
|
%make_build
|
|
|
|
|
|
|
|
|
|
|
|
%if 0%{?bootstrap}
|
|
|
|
%if 0%{?bootstrap}
|
|
|
@ -124,7 +144,7 @@ autoconf
|
|
|
|
popd
|
|
|
|
popd
|
|
|
|
%endif
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
%if %{with fips}
|
|
|
|
%if %{with fipshmac}
|
|
|
|
%define fipshmac() \
|
|
|
|
%define fipshmac() \
|
|
|
|
fipshmac -d $RPM_BUILD_ROOT%{_libdir} $RPM_BUILD_ROOT%{_libdir}/%1.* \
|
|
|
|
fipshmac -d $RPM_BUILD_ROOT%{_libdir} $RPM_BUILD_ROOT%{_libdir}/%1.* \
|
|
|
|
file=`basename $RPM_BUILD_ROOT%{_libdir}/%1.*.hmac` && \
|
|
|
|
file=`basename $RPM_BUILD_ROOT%{_libdir}/%1.*.hmac` && \
|
|
|
@ -188,7 +208,7 @@ make check
|
|
|
|
%{_libdir}/libhogweed.so.%{hogweed_so_ver_old}
|
|
|
|
%{_libdir}/libhogweed.so.%{hogweed_so_ver_old}
|
|
|
|
%{_libdir}/libhogweed.so.%{hogweed_so_ver_old}.*
|
|
|
|
%{_libdir}/libhogweed.so.%{hogweed_so_ver_old}.*
|
|
|
|
%endif
|
|
|
|
%endif
|
|
|
|
%if %{with fips}
|
|
|
|
%if %{with fipshmac}
|
|
|
|
%{_libdir}/.libhogweed.so.*.hmac
|
|
|
|
%{_libdir}/.libhogweed.so.*.hmac
|
|
|
|
%{_libdir}/.libnettle.so.*.hmac
|
|
|
|
%{_libdir}/.libnettle.so.*.hmac
|
|
|
|
%endif
|
|
|
|
%endif
|
|
|
@ -205,25 +225,57 @@ make check
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
%changelog
|
|
|
|
* Thu Aug 25 2022 Daiki Ueno <dueno@redhat.com> - 3.8-3
|
|
|
|
## START: Generated by rpmautospec
|
|
|
|
- Rebuild in new side-tag
|
|
|
|
* Fri Jul 26 2024 Daiki Ueno <dueno@redhat.com> - 3.10-1
|
|
|
|
|
|
|
|
- Update to nettle 3.10
|
|
|
|
|
|
|
|
|
|
|
|
* Thu Aug 18 2022 Daiki Ueno <dueno@redhat.com> - 3.8-2
|
|
|
|
* Mon Jun 24 2024 Troy Dawson <tdawson@redhat.com> - 3.9.1-11
|
|
|
|
|
|
|
|
- Bump release for June 2024 mass rebuild
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Thu Jun 20 2024 Daiki Ueno <dueno@redhat.com> - 3.9.1-10
|
|
|
|
|
|
|
|
- Split "fips" bcond into "fipshmac" and "bundle_gmp"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Tue Jun 18 2024 Daiki Ueno <dueno@redhat.com> - 3.9.1-9
|
|
|
|
|
|
|
|
- Update hobble-nettle to disable SM4 again
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Fri Jun 07 2024 Daiki Ueno <dueno@redhat.com> - 3.9.1-8
|
|
|
|
- Bundle GMP to privatize memory functions
|
|
|
|
- Bundle GMP to privatize memory functions
|
|
|
|
- Zeroize stack allocated intermediate data
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Tue Jun 28 2022 Daiki Ueno <dueno@redhat.com> - 3.8-1
|
|
|
|
* Thu Feb 15 2024 Yaakov Selkowitz <yselkowi@redhat.com> - 3.9.1-7
|
|
|
|
- Update to nettle 3.8 (#2100350)
|
|
|
|
- Disable HMAC in RHEL 9+
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Thu Jan 25 2024 Fedora Release Engineering <releng@fedoraproject.org> - 3.9.1-6
|
|
|
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
|
|
* Mon Aug 09 2021 Mohan Boddu <mboddu@redhat.com> - 3.7.3-2
|
|
|
|
* Sun Jan 21 2024 Fedora Release Engineering <releng@fedoraproject.org> - 3.9.1-5
|
|
|
|
- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
|
|
|
|
Related: rhbz#1991688
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Wed Jul 28 2021 Daiki Ueno <dueno@redhat.com> - 3.7.3-1
|
|
|
|
* Thu Aug 24 2023 Daiki Ueno <dueno@redhat.com> - 3.9.1-4
|
|
|
|
- Update to nettle 3.7.3 (#1986712)
|
|
|
|
- Migrate License field to SPDX license identifier
|
|
|
|
|
|
|
|
|
|
|
|
* Fri Apr 16 2021 Mohan Boddu <mboddu@redhat.com> - 3.7.2-2
|
|
|
|
* Thu Jul 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 3.9.1-2
|
|
|
|
- Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Mon Jun 5 2023 Daiki Ueno <dueno@redhat.com> - 3.9.1-1
|
|
|
|
|
|
|
|
- Update to nettle 3.9.1
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Thu Jan 19 2023 Fedora Release Engineering <releng@fedoraproject.org> - 3.8-3
|
|
|
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Fri Jul 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 3.8-2
|
|
|
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Fri Jun 3 2022 Daiki Ueno <dueno@redhat.com> - 3.8-1
|
|
|
|
|
|
|
|
- Update to nettle 3.8
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Thu Jan 20 2022 Fedora Release Engineering <releng@fedoraproject.org> - 3.7.3-3
|
|
|
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Thu Jul 22 2021 Fedora Release Engineering <releng@fedoraproject.org> - 3.7.3-2
|
|
|
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Mon Jun 7 2021 Daiki Ueno <dueno@redhat.com> - 3.7.3-1
|
|
|
|
|
|
|
|
- Update to nettle 3.7.3
|
|
|
|
|
|
|
|
|
|
|
|
* Sun Mar 21 2021 Daiki Ueno <dueno@redhat.com> - 3.7.2-1
|
|
|
|
* Sun Mar 21 2021 Daiki Ueno <dueno@redhat.com> - 3.7.2-1
|
|
|
|
- Update to nettle 3.7.2
|
|
|
|
- Update to nettle 3.7.2
|
|
|
@ -408,3 +460,5 @@ make check
|
|
|
|
|
|
|
|
|
|
|
|
* Fri Feb 08 2008 Ian Weller <ianweller@gmail.com> 1.15-1
|
|
|
|
* Fri Feb 08 2008 Ian Weller <ianweller@gmail.com> 1.15-1
|
|
|
|
- First package build.
|
|
|
|
- First package build.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
## END: Generated by rpmautospec
|
|
|
|