|
|
3f3920 |
%bcond_without fips
|
|
|
3f3920 |
|
|
|
3f3920 |
Name: nettle
|
|
|
3f3920 |
Version: 3.4.1
|
|
|
3f3920 |
Release: 1%{?dist}
|
|
|
3f3920 |
Summary: A low-level cryptographic library
|
|
|
3f3920 |
|
|
|
3f3920 |
Group: Development/Libraries
|
|
|
3f3920 |
License: LGPLv3+ or GPLv2+
|
|
|
3f3920 |
URL: http://www.lysator.liu.se/~nisse/nettle/
|
|
|
3f3920 |
Source0: %{name}-%{version}-hobbled.tar.xz
|
|
|
3f3920 |
#Source0: http://www.lysator.liu.se/~nisse/archive/%{name}-%{version}.tar.gz
|
|
|
3f3920 |
Patch0: nettle-3.3-remove-ecc-testsuite.patch
|
|
|
3f3920 |
Patch1: nettle-3.4-annocheck.patch
|
|
|
3f3920 |
|
|
|
3f3920 |
BuildRequires: gcc
|
|
|
3f3920 |
BuildRequires: gmp-devel, m4
|
|
|
3f3920 |
BuildRequires: libtool, automake, autoconf, gettext-devel
|
|
|
3f3920 |
%if %{with fips}
|
|
|
3f3920 |
BuildRequires: fipscheck
|
|
|
3f3920 |
%endif
|
|
|
3f3920 |
|
|
|
3f3920 |
Requires(post): info
|
|
|
3f3920 |
Requires(preun): info
|
|
|
3f3920 |
|
|
|
3f3920 |
|
|
|
3f3920 |
%package devel
|
|
|
3f3920 |
Summary: Development headers for a low-level cryptographic library
|
|
|
3f3920 |
Group: Development/Libraries
|
|
|
3f3920 |
Requires: %{name} = %{version}-%{release}
|
|
|
3f3920 |
Requires: gmp-devel%{?_isa}
|
|
|
3f3920 |
|
|
|
3f3920 |
%description
|
|
|
3f3920 |
Nettle is a cryptographic library that is designed to fit easily in more
|
|
|
3f3920 |
or less any context: In crypto toolkits for object-oriented languages
|
|
|
3f3920 |
(C++, Python, Pike, ...), in applications like LSH or GNUPG, or even in
|
|
|
3f3920 |
kernel space.
|
|
|
3f3920 |
|
|
|
3f3920 |
%description devel
|
|
|
3f3920 |
Nettle is a cryptographic library that is designed to fit easily in more
|
|
|
3f3920 |
or less any context: In crypto toolkits for object-oriented languages
|
|
|
3f3920 |
(C++, Python, Pike, ...), in applications like LSH or GNUPG, or even in
|
|
|
3f3920 |
kernel space. This package contains the files needed for developing
|
|
|
3f3920 |
applications with nettle.
|
|
|
3f3920 |
|
|
|
3f3920 |
|
|
|
3f3920 |
%prep
|
|
|
3f3920 |
%setup -q
|
|
|
3f3920 |
# Disable -ggdb3 which makes debugedit unhappy
|
|
|
3f3920 |
sed s/ggdb3/g/ -i configure
|
|
|
3f3920 |
sed 's/ecc-192.c//g' -i Makefile.in
|
|
|
3f3920 |
sed 's/ecc-224.c//g' -i Makefile.in
|
|
|
3f3920 |
%patch0 -p1
|
|
|
3f3920 |
%patch1 -p1
|
|
|
3f3920 |
|
|
|
3f3920 |
%build
|
|
|
3f3920 |
autoreconf -ifv
|
|
|
3f3920 |
%configure --enable-shared --enable-fat
|
|
|
3f3920 |
make %{?_smp_mflags}
|
|
|
3f3920 |
|
|
|
3f3920 |
%if %{with fips}
|
|
|
3f3920 |
%define __spec_install_post \
|
|
|
3f3920 |
%{?__debug_package:%{__debug_install_post}} \
|
|
|
3f3920 |
%{__arch_install_post} \
|
|
|
3f3920 |
%{__os_install_post} \
|
|
|
3f3920 |
fipshmac -d $RPM_BUILD_ROOT%{_libdir} $RPM_BUILD_ROOT%{_libdir}/libnettle.so.6.* \
|
|
|
3f3920 |
fipshmac -d $RPM_BUILD_ROOT%{_libdir} $RPM_BUILD_ROOT%{_libdir}/libhogweed.so.4.* \
|
|
|
3f3920 |
file=`basename $RPM_BUILD_ROOT%{_libdir}/libnettle.so.6.*.hmac` && mv $RPM_BUILD_ROOT%{_libdir}/$file $RPM_BUILD_ROOT%{_libdir}/.$file && ln -s .$file $RPM_BUILD_ROOT%{_libdir}/.libnettle.so.6.hmac \
|
|
|
3f3920 |
file=`basename $RPM_BUILD_ROOT%{_libdir}/libhogweed.so.4.*.hmac` && mv $RPM_BUILD_ROOT%{_libdir}/$file $RPM_BUILD_ROOT%{_libdir}/.$file && ln -s .$file $RPM_BUILD_ROOT%{_libdir}/.libhogweed.so.4.hmac \
|
|
|
3f3920 |
%{nil}
|
|
|
3f3920 |
%endif
|
|
|
3f3920 |
|
|
|
3f3920 |
%install
|
|
|
3f3920 |
make install DESTDIR=$RPM_BUILD_ROOT INSTALL="install -p"
|
|
|
3f3920 |
make install-shared DESTDIR=$RPM_BUILD_ROOT INSTALL="install -p"
|
|
|
3f3920 |
mkdir -p $RPM_BUILD_ROOT%{_infodir}
|
|
|
3f3920 |
install -p -m 644 nettle.info $RPM_BUILD_ROOT%{_infodir}/
|
|
|
3f3920 |
rm -f $RPM_BUILD_ROOT%{_libdir}/*.a
|
|
|
3f3920 |
rm -f $RPM_BUILD_ROOT%{_infodir}/dir
|
|
|
3f3920 |
rm -f $RPM_BUILD_ROOT%{_bindir}/nettle-lfib-stream
|
|
|
3f3920 |
rm -f $RPM_BUILD_ROOT%{_bindir}/pkcs1-conv
|
|
|
3f3920 |
rm -f $RPM_BUILD_ROOT%{_bindir}/sexp-conv
|
|
|
3f3920 |
rm -f $RPM_BUILD_ROOT%{_bindir}/nettle-hash
|
|
|
3f3920 |
rm -f $RPM_BUILD_ROOT%{_bindir}/nettle-pbkdf2
|
|
|
3f3920 |
|
|
|
3f3920 |
chmod 0755 $RPM_BUILD_ROOT%{_libdir}/libnettle.so.6.*
|
|
|
3f3920 |
chmod 0755 $RPM_BUILD_ROOT%{_libdir}/libhogweed.so.4.*
|
|
|
3f3920 |
|
|
|
3f3920 |
%check
|
|
|
3f3920 |
make check
|
|
|
3f3920 |
|
|
|
3f3920 |
%files
|
|
|
3f3920 |
%doc AUTHORS NEWS README TODO
|
|
|
3f3920 |
%license COPYINGv2 COPYING.LESSERv3
|
|
|
3f3920 |
%{_infodir}/nettle.info.gz
|
|
|
3f3920 |
%{_libdir}/libnettle.so.6
|
|
|
3f3920 |
%{_libdir}/libnettle.so.6.*
|
|
|
3f3920 |
%{_libdir}/libhogweed.so.4
|
|
|
3f3920 |
%{_libdir}/libhogweed.so.4.*
|
|
|
3f3920 |
%if %{with fips}
|
|
|
3f3920 |
%{_libdir}/.libhogweed.so.*.hmac
|
|
|
3f3920 |
%{_libdir}/.libnettle.so.*.hmac
|
|
|
3f3920 |
%endif
|
|
|
3f3920 |
|
|
|
3f3920 |
%files devel
|
|
|
3f3920 |
%doc descore.README nettle.html nettle.pdf
|
|
|
3f3920 |
%{_includedir}/nettle
|
|
|
3f3920 |
%{_libdir}/libnettle.so
|
|
|
3f3920 |
%{_libdir}/libhogweed.so
|
|
|
3f3920 |
%{_libdir}/pkgconfig/hogweed.pc
|
|
|
3f3920 |
%{_libdir}/pkgconfig/nettle.pc
|
|
|
3f3920 |
|
|
|
3f3920 |
%post
|
|
|
3f3920 |
/sbin/install-info %{_infodir}/%{name}.info %{_infodir}/dir || :
|
|
|
3f3920 |
/sbin/ldconfig
|
|
|
3f3920 |
|
|
|
3f3920 |
%preun
|
|
|
3f3920 |
if [ $1 = 0 ]; then
|
|
|
3f3920 |
/sbin/install-info --delete %{_infodir}/%{name}.info %{_infodir}/dir || :
|
|
|
3f3920 |
fi
|
|
|
3f3920 |
|
|
|
3f3920 |
%postun -p /sbin/ldconfig
|
|
|
3f3920 |
|
|
|
3f3920 |
|
|
|
3f3920 |
|
|
|
3f3920 |
%changelog
|
|
|
3f3920 |
* Tue Dec 11 2018 Daiki Ueno <dueno@redhat.com> - 3.4.1-1
|
|
|
3f3920 |
- New upstream release
|
|
|
3f3920 |
|
|
|
3f3920 |
* Tue Oct 16 2018 Tomáš Mráz <tmraz@redhat.com> - 3.4-4
|
|
|
3f3920 |
- Cover the gaps in annotation coverage for assembler sources
|
|
|
3f3920 |
- Add .hmac checksums for FIPS mode integrity checking
|
|
|
3f3920 |
|
|
|
3f3920 |
* Thu Feb 08 2018 Fedora Release Engineering <releng@fedoraproject.org> - 3.4-2
|
|
|
3f3920 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
|
|
3f3920 |
|
|
|
3f3920 |
* Mon Nov 20 2017 Nikos Mavrogiannopoulos <nmav@redhat.com> - 3.4-1
|
|
|
3f3920 |
- New upstream release
|
|
|
3f3920 |
|
|
|
3f3920 |
* Wed Aug 09 2017 Nikos Mavrogiannopoulos <nmav@redhat.com> - 3.3-5
|
|
|
3f3920 |
- Removed executables from the library to allow parallel installation
|
|
|
3f3920 |
of x86-64 and x86 packages. The executables had testing purpose, and
|
|
|
3f3920 |
may be re-introduced in a separate package if needed.
|
|
|
3f3920 |
|
|
|
3f3920 |
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 3.3-4
|
|
|
3f3920 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
|
|
|
3f3920 |
|
|
|
3f3920 |
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 3.3-3
|
|
|
3f3920 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
|
|
|
3f3920 |
|
|
|
3f3920 |
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 3.3-2
|
|
|
3f3920 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
|
|
|
3f3920 |
|
|
|
3f3920 |
* Tue Jul 19 2016 Nikos Mavrogiannopoulos <nmav@redhat.com> - 3.3-1
|
|
|
3f3920 |
- New upstream release
|
|
|
3f3920 |
- Allow arm neon instructions (they are enabled via fat builds)
|
|
|
3f3920 |
|
|
|
3f3920 |
* Tue Jul 19 2016 Nikos Mavrogiannopoulos <nmav@redhat.com> - 3.2-3
|
|
|
3f3920 |
- Backported a fix for more cache silence on RSA and DSA.
|
|
|
3f3920 |
|
|
|
3f3920 |
* Thu Feb 18 2016 Nikos Mavrogiannopoulos <nmav@redhat.com> - 3.2-2
|
|
|
3f3920 |
- Enabled fat builds by default
|
|
|
3f3920 |
|
|
|
3f3920 |
* Wed Feb 3 2016 Nikos Mavrogiannopoulos <nmav@redhat.com> - 3.2-1
|
|
|
3f3920 |
- updated to 3.2 (#1301310)
|
|
|
3f3920 |
- Fixed CVE-2015-8803 secp256r1 calculation bug (#1304305)
|
|
|
3f3920 |
|
|
|
3f3920 |
* Wed Dec 9 2015 Nikos Mavrogiannopoulos <nmav@redhat.com> - 3.1.1-6
|
|
|
3f3920 |
- Made version.h architecture independent (#1289938)
|
|
|
3f3920 |
|
|
|
3f3920 |
* Wed Dec 2 2015 Nikos Mavrogiannopoulos <nmav@redhat.com> - 3.1.1-5
|
|
|
3f3920 |
- Disabled arm-neon unconditionally (#1287298)
|
|
|
3f3920 |
|
|
|
3f3920 |
* Thu Oct 22 2015 Nikos Mavrogiannopoulos <nmav@redhat.com> - 3.1.1-4
|
|
|
3f3920 |
- Fixed SHA3 implementation to conform to published version (#1252935)
|
|
|
3f3920 |
|
|
|
3f3920 |
* Sun Aug 2 2015 Peter Robinson <pbrobinson@fedoraproject.org> 3.1.1-3
|
|
|
3f3920 |
- No need to ship license in devel too
|
|
|
3f3920 |
- Drop ChangeLog as details are in NEWS
|
|
|
3f3920 |
|
|
|
3f3920 |
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.1.1-2
|
|
|
3f3920 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
|
|
|
3f3920 |
|
|
|
3f3920 |
* Thu Apr 30 2015 Nikos Mavrogiannopoulos <nmav@redhat.com> - 3.1.1-1
|
|
|
3f3920 |
- Updated to nettle 3.1.1
|
|
|
3f3920 |
|
|
|
3f3920 |
* Sat Feb 21 2015 Till Maas <opensource@till.name> - 2.7.1-6
|
|
|
3f3920 |
- Rebuilt for Fedora 23 Change
|
|
|
3f3920 |
https://fedoraproject.org/wiki/Changes/Harden_all_packages_with_position-independent_code
|
|
|
3f3920 |
|
|
|
3f3920 |
* Sun Aug 17 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.7.1-5
|
|
|
3f3920 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
|
|
|
3f3920 |
|
|
|
3f3920 |
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.7.1-4
|
|
|
3f3920 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
|
|
|
3f3920 |
|
|
|
3f3920 |
* Fri Jan 10 2014 Nikos Mavrogiannopoulos <nmav@redhat.com> - 2.7.1-3
|
|
|
3f3920 |
- Corrected bug number in previous comment.
|
|
|
3f3920 |
|
|
|
3f3920 |
* Fri Dec 13 2013 Nikos Mavrogiannopoulos <nmav@redhat.com> - 2.7.1-2
|
|
|
3f3920 |
- Added patch nettle-tmpalloc.patch to solve #1051455
|
|
|
3f3920 |
|
|
|
3f3920 |
* Mon Nov 25 2013 Nikos Mavrogiannopoulos <nmav@redhat.com> - 2.7.1-1
|
|
|
3f3920 |
- Updated to nettle 2.7.1
|
|
|
3f3920 |
|
|
|
3f3920 |
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.6-3
|
|
|
3f3920 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
|
|
|
3f3920 |
|
|
|
3f3920 |
* Wed Feb 6 2013 Tomáš Mráz <tmraz@redhat.com> - 2.6-2
|
|
|
3f3920 |
- nettle includes use gmp.h
|
|
|
3f3920 |
|
|
|
3f3920 |
* Tue Feb 5 2013 Tomáš Mráz <tmraz@redhat.com> - 2.6-1
|
|
|
3f3920 |
- New upstream release
|
|
|
3f3920 |
|
|
|
3f3920 |
* Fri Jul 20 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.4-4
|
|
|
3f3920 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
|
|
|
3f3920 |
|
|
|
3f3920 |
* Thu Jul 05 2012 David Woodhouse <dwmw2@infradead.org> - 2.4-3
|
|
|
3f3920 |
- Remove explicit buildroot handling and defattr.
|
|
|
3f3920 |
|
|
|
3f3920 |
* Wed Jul 04 2012 David Woodhouse <dwmw2@infradead.org> - 2.4-2
|
|
|
3f3920 |
- Review feedback
|
|
|
3f3920 |
|
|
|
3f3920 |
* Mon Jun 18 2012 David Woodhouse <dwmw2@infradead.org> - 2.4-1
|
|
|
3f3920 |
- Revive package (GnuTLS needs it), disable static, update to current release 2.4
|
|
|
3f3920 |
|
|
|
3f3920 |
* Sat Jul 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.15-7
|
|
|
3f3920 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
|
|
|
3f3920 |
|
|
|
3f3920 |
* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.15-6
|
|
|
3f3920 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
|
|
|
3f3920 |
|
|
|
3f3920 |
* Thu Apr 10 2008 Ian Weller <ianweller@gmail.com> 1.15-5
|
|
|
3f3920 |
- Moved static lib to -static
|
|
|
3f3920 |
|
|
|
3f3920 |
* Mon Mar 24 2008 Ian Weller <ianweller@gmail.com> 1.15-4
|
|
|
3f3920 |
- Added libraries and ldconfig
|
|
|
3f3920 |
|
|
|
3f3920 |
* Mon Feb 18 2008 Ian Weller <ianweller@gmail.com> 1.15-3
|
|
|
3f3920 |
- Added provides -static to -devel
|
|
|
3f3920 |
|
|
|
3f3920 |
* Sun Feb 17 2008 Ian Weller <ianweller@gmail.com> 1.15-2
|
|
|
3f3920 |
- Removed redundant requires
|
|
|
3f3920 |
- Removed redundant documentation between packages
|
|
|
3f3920 |
- Fixed license tag
|
|
|
3f3920 |
- Fixed -devel description
|
|
|
3f3920 |
- Added the static library back to -devel
|
|
|
3f3920 |
- Added make clean
|
|
|
3f3920 |
|
|
|
3f3920 |
* Fri Feb 08 2008 Ian Weller <ianweller@gmail.com> 1.15-1
|
|
|
3f3920 |
- First package build.
|