2019-09-30 11:09:38 -04:00
|
|
|
Name: nettle
|
2020-07-23 10:56:07 +08:00
|
|
|
Version: 3.6
|
2021-08-16 14:22:10 +08:00
|
|
|
Release: 7
|
2019-09-30 11:09:38 -04:00
|
|
|
Summary: A low-level cryptographic library
|
|
|
|
|
License: LGPLv3+ or GPLv2+
|
|
|
|
|
URL: https://www.lysator.liu.se/~nisse/nettle/
|
|
|
|
|
Source0: https://www.lysator.liu.se/~nisse/archive/%{name}-%{version}.tar.gz
|
|
|
|
|
|
|
|
|
|
Patch0: 0000-nettle-3.3-remove-ecc-testsuite.patch
|
2021-04-19 19:18:07 +08:00
|
|
|
|
|
|
|
|
Patch6000: backport-0001-CVE-2021-20305.patch
|
|
|
|
|
Patch6001: backport-0002-CVE-2021-20305.patch
|
|
|
|
|
Patch6002: backport-0003-CVE-2021-20305.patch
|
|
|
|
|
Patch6003: backport-0004-CVE-2021-20305.patch
|
|
|
|
|
Patch6004: backport-0005-CVE-2021-20305.patch
|
|
|
|
|
Patch6005: backport-0006-CVE-2021-20305.patch
|
|
|
|
|
Patch6006: backport-0007-CVE-2021-20305.patch
|
2021-08-16 14:22:10 +08:00
|
|
|
Patch6007: backport-CVE-2021-3580.patch
|
2021-04-19 19:18:07 +08:00
|
|
|
|
2019-09-30 11:09:38 -04:00
|
|
|
BuildRequires: automake autoconf fipscheck gcc gettext-devel gmp-devel libtool m4
|
2020-07-23 10:56:07 +08:00
|
|
|
BuildRequires: nettle
|
2019-09-30 11:09:38 -04:00
|
|
|
|
2020-07-23 10:56:07 +08:00
|
|
|
Provides: libnettle.so.6()(64bit) libnettle.so.6(NETTLE_6)(64bit) libhogweed.so.4()(64bit) libhogweed.so.4(HOGWEED_4)(64bit)
|
2019-09-30 11:09:38 -04:00
|
|
|
%description
|
2019-11-06 19:43:57 +08:00
|
|
|
Nettle is a cryptographic library designed to fit any context:
|
|
|
|
|
in crypto toolkits for object-oriented languages, in applications
|
2019-09-30 11:09:38 -04:00
|
|
|
like LSH or GnuPG, or even in kernel space.
|
|
|
|
|
|
|
|
|
|
%package devel
|
|
|
|
|
Summary: Development headers for %{name} package
|
|
|
|
|
Requires: %{name} = %{version}-%{release} gmp-devel
|
|
|
|
|
|
|
|
|
|
%description devel
|
|
|
|
|
The devel for %{name}
|
|
|
|
|
|
|
|
|
|
%package_help
|
|
|
|
|
|
|
|
|
|
%prep
|
2020-07-23 10:56:07 +08:00
|
|
|
%autosetup -n %{name}-3.6 -p1
|
2019-09-30 11:09:38 -04:00
|
|
|
|
|
|
|
|
sed s/ggdb3/g/ -i configure
|
|
|
|
|
sed 's/ecc-192.c//g' -i Makefile.in
|
|
|
|
|
sed 's/ecc-224.c//g' -i Makefile.in
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
autoreconf -ifv
|
|
|
|
|
%configure --enable-shared --enable-fat
|
|
|
|
|
%make_build
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
|
%make_install
|
2019-11-06 19:43:57 +08:00
|
|
|
make install-shared
|
2019-09-30 11:09:38 -04:00
|
|
|
install -D -p -m0644 nettle.info "$RPM_BUILD_ROOT%{_infodir}/nettle.info"
|
2020-07-23 10:56:07 +08:00
|
|
|
cp -p %{_libdir}/libnettle.so.6.* $RPM_BUILD_ROOT%{_libdir}/
|
|
|
|
|
cp -p %{_libdir}/libhogweed.so.4.* $RPM_BUILD_ROOT%{_libdir}/
|
2019-09-30 11:09:38 -04:00
|
|
|
|
2020-07-23 10:56:07 +08:00
|
|
|
chmod 0755 $RPM_BUILD_ROOT%{_libdir}/libnettle.so.8.*
|
|
|
|
|
chmod 0755 $RPM_BUILD_ROOT%{_libdir}/libhogweed.so.6.*
|
2019-09-30 11:09:38 -04:00
|
|
|
|
|
|
|
|
%check
|
|
|
|
|
make check
|
|
|
|
|
|
|
|
|
|
%files
|
|
|
|
|
%defattr(-,root,root)
|
|
|
|
|
%doc AUTHORS descore.README nettle.pdf
|
2019-11-06 19:43:57 +08:00
|
|
|
%license COPYINGv2 COPYINGv3 COPYING.LESSERv3
|
2019-09-30 11:09:38 -04:00
|
|
|
%{_infodir}/nettle.info.gz
|
|
|
|
|
%{_libdir}/libnettle.so.6*
|
|
|
|
|
%{_libdir}/libhogweed.so.4*
|
2020-07-23 10:56:07 +08:00
|
|
|
%{_libdir}/libnettle.so.8*
|
|
|
|
|
%{_libdir}/libhogweed.so.6*
|
2019-09-30 11:09:38 -04:00
|
|
|
%exclude %{_bindir}/*
|
|
|
|
|
|
|
|
|
|
%files devel
|
|
|
|
|
%defattr(-,root,root)
|
|
|
|
|
%{_includedir}/nettle/
|
|
|
|
|
%{_libdir}/*.a
|
|
|
|
|
%{_libdir}/libnettle.so
|
|
|
|
|
%{_libdir}/libhogweed.so
|
|
|
|
|
%{_libdir}/pkgconfig/*
|
|
|
|
|
|
|
|
|
|
%files help
|
|
|
|
|
%defattr(-,root,root)
|
2020-07-23 10:56:07 +08:00
|
|
|
%doc NEWS README
|
2019-09-30 11:09:38 -04:00
|
|
|
%doc nettle.html
|
|
|
|
|
|
|
|
|
|
%ldconfig_scriptlets
|
|
|
|
|
|
|
|
|
|
%changelog
|
2021-08-16 14:22:10 +08:00
|
|
|
* Mon Aug 16 2021 gaihuiying <gaihuiying1@huawei.com> - 3.6-7
|
|
|
|
|
- Type:CVE
|
|
|
|
|
- CVE:CVE-2021-3580
|
|
|
|
|
- SUG:NA
|
|
|
|
|
- DESC:fix CVE-2021-3580
|
2021-04-19 19:18:07 +08:00
|
|
|
* Mon Apr 19 2021 xihaochen <xihaochen@huawei.com> - 3.6-6
|
|
|
|
|
- Type:CVE
|
|
|
|
|
- CVE:CVE-2021-20305
|
|
|
|
|
- SUG:NA
|
|
|
|
|
- DESC:fix CVE-2021-20305
|
|
|
|
|
|
2020-07-23 10:56:07 +08:00
|
|
|
* Tue Jul 21 2020 cuibaobao <cuibaobao1@huawei.com> - 3.6-5
|
|
|
|
|
- Type:update
|
|
|
|
|
- Id:NA
|
|
|
|
|
- SUG:NA
|
|
|
|
|
- DESC:update to 3.6
|
|
|
|
|
|
2019-11-06 19:43:57 +08:00
|
|
|
* Mon Oct 21 2019 openEuler Buildteam <buildteam@openeuler.org> - 3.4.1rc1-4
|
|
|
|
|
- Type:enhancement
|
|
|
|
|
- Id:NA
|
|
|
|
|
- SUG:NA
|
|
|
|
|
- DESC:add COPYINGv3 in license
|
|
|
|
|
|
2019-09-30 11:09:38 -04:00
|
|
|
* Wed Sep 04 2019 openEuler Buildteam <buildteam@openeuler.org> - 3.4.1rc1-3
|
|
|
|
|
- Package init
|