2011-08-18 09:36:29 +02:00
|
|
|
#
|
|
|
|
# spec file for package libnettle
|
|
|
|
#
|
2022-01-17 22:55:56 +01:00
|
|
|
# Copyright (c) 2022 SUSE LLC
|
2011-08-18 09:36:29 +02:00
|
|
|
#
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
2018-12-11 15:44:35 +01:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2011-08-18 09:36:29 +02:00
|
|
|
#
|
|
|
|
|
2011-08-18 09:36:14 +02:00
|
|
|
|
2020-05-11 07:52:49 +02:00
|
|
|
%define soname 8
|
|
|
|
%define hogweed_soname 6
|
2011-08-18 09:36:29 +02:00
|
|
|
Name: libnettle
|
Accepting request 988487 from home:dirkmueller:Factory
- update to 3.8:
This release includes a couple of new features, and many
performance improvements. It adds assembly code for two more
architectures: ARM64 and S390x.
The new version is intended to be fully source and binary
compatible with Nettle-3.6. The shared library names are
libnettle.so.8.5 and libhogweed.so.6.5, with sonames
libnettle.so.8 and libhogweed.so.6.
New features:
* AES keywrap (RFC 3394), contributed by Nicolas Mora.
* SM3 hash function, contributed by Tianjia Zhang.
* New functions cbc_aes128_encrypt, cbc_aes192_encrypt,
cbc_aes256_encrypt.
On processors where AES is fast enough, e.g., x86_64 with
aesni instructions, the overhead of using Nettle's general
cbc_encrypt can be significant. The new functions can be
implemented in assembly, to do multiple blocks with reduced
per-block overhead.
Note that there's no corresponding new decrypt functions,
since the general cbc_decrypt doesn't suffer from the same
performance problem.
Bug fixes:
* Fix fat builds for x86_64 windows, these appear to never
have worked.
Optimizations:
* New ARM64 implementation of AES, GCM, Chacha, SHA1 and
SHA256, for processors supporting crypto extensions. Great
speedups, and fat builds are supported. Contributed by
Mamone Tarsha.
* New s390x implementation of AES, GCM, Chacha, memxor, SHA1,
OBS-URL: https://build.opensuse.org/request/show/988487
OBS-URL: https://build.opensuse.org/package/show/security:tls/libnettle?expand=0&rev=27
2022-07-12 14:33:39 +02:00
|
|
|
Version: 3.8
|
2012-02-10 17:16:59 +01:00
|
|
|
Release: 0
|
2011-08-18 09:36:29 +02:00
|
|
|
Summary: Cryptographic Library
|
2021-06-09 17:24:44 +02:00
|
|
|
License: GPL-2.0-or-later AND LGPL-2.1-or-later
|
2018-12-11 15:44:35 +01:00
|
|
|
Group: Development/Libraries/C and C++
|
|
|
|
URL: https://www.lysator.liu.se/~nisse/nettle/
|
2021-06-09 17:24:44 +02:00
|
|
|
Source0: https://ftp.gnu.org/gnu/nettle/nettle-%{version}.tar.gz
|
|
|
|
Source1: https://ftp.gnu.org/gnu/nettle/nettle-%{version}.tar.gz.sig
|
2014-05-16 17:56:23 +02:00
|
|
|
Source2: %{name}.keyring
|
2013-06-25 17:14:21 +02:00
|
|
|
Source3: baselibs.conf
|
2020-05-11 07:52:49 +02:00
|
|
|
Source4: %{name}-rpmlintrc
|
2022-01-17 22:55:56 +01:00
|
|
|
BuildRequires: autoconf
|
2019-10-01 17:19:02 +02:00
|
|
|
BuildRequires: fipscheck
|
2020-05-11 07:52:49 +02:00
|
|
|
BuildRequires: gmp-devel >= 6.1.0
|
2017-02-20 13:12:45 +01:00
|
|
|
BuildRequires: m4
|
Accepting request 175855 from devel:libraries:c_c++
- Update to version 2.7
* Support for the GOST R 34.11-94 hash algorithm
* Support for SHA3
* Support for PKCS #5 PBKDF2
* Fixed a small memory leak in nettle_realloc and
nettle_xrealloc.
* x86_64 assembly for SHA256, SHA512, and SHA3
* ARM assembly code for several additional algorithms,
including AES, Salsa20, and the SHA family of hash
functions.
* Support for 12-round salsa20, "salsa20r12", as specified by
eSTREAM.
* Support for UMAC, including x86_64 and ARM assembly.
* Support for ECDSA signatures. Elliptic curve operations over
the following curves: secp192r1, secp224r1, secp256r1,
secp384r1 and secp521r1, including x86_64 and ARM assembly
for the most important primitives.
- Depend on makeinfo for info file generation.
- Don't disable static libs, they are needed at build time.
OBS-URL: https://build.opensuse.org/request/show/175855
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/libnettle?expand=0&rev=12
2013-05-16 16:12:37 +02:00
|
|
|
BuildRequires: makeinfo
|
2011-09-26 10:07:48 +02:00
|
|
|
BuildRequires: pkgconfig
|
2011-08-18 09:36:14 +02:00
|
|
|
|
|
|
|
%description
|
|
|
|
Nettle is a cryptographic library that is designed to fit easily in more or
|
|
|
|
less any context: In crypto toolkits for object-oriented languages (C++,
|
|
|
|
Python, Pike, ...), in applications like LSH or GNUPG, or even in kernel space.
|
|
|
|
|
|
|
|
%package -n libnettle%{soname}
|
2011-08-18 09:36:29 +02:00
|
|
|
Summary: Cryptographic Library
|
2018-12-11 15:44:35 +01:00
|
|
|
License: LGPL-2.1-or-later
|
2011-08-18 09:36:29 +02:00
|
|
|
Group: System/Libraries
|
2011-08-18 09:36:14 +02:00
|
|
|
|
|
|
|
%description -n libnettle%{soname}
|
|
|
|
Nettle is a cryptographic library that is designed to fit easily in more or
|
|
|
|
less any context: In crypto toolkits for object-oriented languages (C++,
|
|
|
|
Python, Pike, ...), in applications like LSH or GNUPG, or even in kernel space.
|
|
|
|
|
|
|
|
%package -n libhogweed%{hogweed_soname}
|
2011-08-18 09:36:29 +02:00
|
|
|
Summary: Cryptographic Library for Public Key Algorithms
|
2018-12-11 15:44:35 +01:00
|
|
|
License: LGPL-2.1-or-later
|
2011-08-18 09:36:29 +02:00
|
|
|
Group: System/Libraries
|
2011-08-18 09:36:14 +02:00
|
|
|
|
|
|
|
%description -n libhogweed%{hogweed_soname}
|
|
|
|
Nettle is a cryptographic library that is designed to fit easily in more or
|
|
|
|
less any context: In crypto toolkits for object-oriented languages (C++,
|
|
|
|
Python, Pike, ...), in applications like LSH or GNUPG, or even in kernel space.
|
|
|
|
|
2012-02-10 17:16:59 +01:00
|
|
|
The libhogweed library contains public key algorithms to use with libnettle.
|
2011-08-18 09:36:14 +02:00
|
|
|
|
|
|
|
%package -n libnettle-devel
|
2011-08-18 09:36:29 +02:00
|
|
|
Summary: Cryptographic Library
|
2018-12-11 15:44:35 +01:00
|
|
|
License: LGPL-2.1-or-later
|
2011-08-18 09:36:29 +02:00
|
|
|
Group: Development/Libraries/C and C++
|
2011-09-26 10:07:48 +02:00
|
|
|
Requires: glibc-devel
|
|
|
|
Requires: gmp-devel
|
2011-08-18 09:36:29 +02:00
|
|
|
Requires: libhogweed%{hogweed_soname} = %{version}
|
2011-09-26 10:07:48 +02:00
|
|
|
Requires: libnettle%{soname} = %{version}
|
2011-08-18 09:36:14 +02:00
|
|
|
|
|
|
|
%description -n libnettle-devel
|
|
|
|
Nettle is a cryptographic library that is designed to fit easily in more or
|
|
|
|
less any context: In crypto toolkits for object-oriented languages (C++,
|
|
|
|
Python, Pike, ...), in applications like LSH or GNUPG, or even in kernel space.
|
|
|
|
|
|
|
|
%package -n nettle
|
2011-08-18 09:36:29 +02:00
|
|
|
Summary: Cryptographic Tools
|
2021-06-09 17:24:44 +02:00
|
|
|
License: GPL-2.0-or-later AND LGPL-2.1-or-later
|
2011-08-18 09:36:29 +02:00
|
|
|
Group: Productivity/Security
|
2011-08-18 09:36:14 +02:00
|
|
|
|
|
|
|
%description -n nettle
|
|
|
|
Nettle is a cryptographic library that is designed to fit easily in more or
|
|
|
|
less any context: In crypto toolkits for object-oriented languages (C++,
|
|
|
|
Python, Pike, ...), in applications like LSH or GNUPG, or even in kernel space.
|
|
|
|
|
|
|
|
This package contains a few command-line tools to perform cryptographic
|
|
|
|
operations using the nettle library.
|
|
|
|
|
|
|
|
%prep
|
2022-01-17 22:55:56 +01:00
|
|
|
%autosetup -p1 -n nettle-%{version}
|
2011-08-18 09:36:14 +02:00
|
|
|
|
|
|
|
%build
|
2022-01-17 22:55:56 +01:00
|
|
|
autoreconf -fiv
|
2015-04-18 10:38:24 +02:00
|
|
|
%configure \
|
2017-09-07 22:10:51 +02:00
|
|
|
--disable-static \
|
|
|
|
--enable-shared \
|
2022-01-17 22:55:56 +01:00
|
|
|
--enable-fat \
|
|
|
|
%ifarch s390x
|
|
|
|
--enable-s390x-vf \
|
|
|
|
--enable-s390x-msa \
|
|
|
|
%endif
|
|
|
|
%{nil}
|
|
|
|
|
2020-05-11 07:52:49 +02:00
|
|
|
%make_build
|
2011-08-18 09:36:14 +02:00
|
|
|
|
|
|
|
%install
|
2017-09-07 22:10:51 +02:00
|
|
|
%make_install
|
2022-06-15 16:13:11 +02:00
|
|
|
chmod 0755 %{buildroot}%{_libdir}/libnettle.so.%{soname}
|
|
|
|
chmod 0755 %{buildroot}%{_libdir}/libhogweed.so.%{hogweed_soname}
|
2011-08-18 09:36:14 +02:00
|
|
|
|
2019-10-01 17:19:02 +02:00
|
|
|
# the hmac hashes:
|
|
|
|
#
|
|
|
|
# this is a hack that re-defines the __os_install_post macro
|
|
|
|
# for a simple reason: the macro strips the binaries and thereby
|
|
|
|
# invalidates a HMAC that may have been created earlier.
|
|
|
|
# solution: create the hashes _after_ the macro runs.
|
|
|
|
#
|
2020-05-11 07:52:49 +02:00
|
|
|
# this shows up earlier because otherwise the %%expand of
|
2019-10-01 17:19:02 +02:00
|
|
|
# the macro is too late.
|
|
|
|
# remark: This is the same as running
|
|
|
|
# openssl dgst -sha256 -hmac 'orboDeJITITejsirpADONivirpUkvarP'
|
|
|
|
%{expand:%%global __os_install_post {%__os_install_post
|
|
|
|
%{_bindir}/fipshmac %{buildroot}%{_libdir}/libnettle.so.%{soname}
|
|
|
|
%{_bindir}/fipshmac %{buildroot}%{_libdir}/libhogweed.so.%{hogweed_soname}
|
|
|
|
}}
|
|
|
|
|
2011-08-18 09:36:14 +02:00
|
|
|
%post -n libnettle%{soname} -p /sbin/ldconfig
|
|
|
|
%postun -n libnettle%{soname} -p /sbin/ldconfig
|
|
|
|
%post -n libhogweed%{hogweed_soname} -p /sbin/ldconfig
|
|
|
|
%postun -n libhogweed%{hogweed_soname} -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%check
|
2020-05-11 07:52:49 +02:00
|
|
|
%make_build check
|
2011-08-18 09:36:14 +02:00
|
|
|
|
|
|
|
%files -n libnettle%{soname}
|
2018-03-01 12:05:57 +01:00
|
|
|
%license COPYING*
|
2011-08-18 09:36:14 +02:00
|
|
|
%{_libdir}/libnettle.so.%{soname}
|
|
|
|
%{_libdir}/libnettle.so.%{soname}.*
|
2019-10-01 17:19:02 +02:00
|
|
|
%{_libdir}/.libnettle.so.%{soname}.hmac
|
2011-08-18 09:36:14 +02:00
|
|
|
|
|
|
|
%files -n libhogweed%{hogweed_soname}
|
2020-05-11 07:52:49 +02:00
|
|
|
%license COPYING*
|
2011-08-18 09:36:14 +02:00
|
|
|
%{_libdir}/libhogweed.so.%{hogweed_soname}
|
|
|
|
%{_libdir}/libhogweed.so.%{hogweed_soname}.*
|
2019-10-01 17:19:02 +02:00
|
|
|
%{_libdir}/.libhogweed.so.%{hogweed_soname}.hmac
|
2011-08-18 09:36:14 +02:00
|
|
|
|
|
|
|
%files -n libnettle-devel
|
2020-05-11 07:52:49 +02:00
|
|
|
%license COPYING*
|
|
|
|
%doc AUTHORS ChangeLog NEWS README
|
2011-08-18 09:36:14 +02:00
|
|
|
%{_includedir}/nettle
|
|
|
|
%{_libdir}/libnettle.so
|
|
|
|
%{_libdir}/libhogweed.so
|
2018-12-11 15:44:35 +01:00
|
|
|
%{_infodir}/nettle.info%{?ext_info}
|
2011-09-22 10:47:22 +02:00
|
|
|
%{_libdir}/pkgconfig/hogweed.pc
|
|
|
|
%{_libdir}/pkgconfig/nettle.pc
|
2011-08-18 09:36:14 +02:00
|
|
|
|
|
|
|
%files -n nettle
|
2018-12-11 15:44:35 +01:00
|
|
|
%license COPYING*
|
2019-08-01 13:34:20 +02:00
|
|
|
%doc AUTHORS ChangeLog NEWS README
|
2011-08-18 09:36:14 +02:00
|
|
|
%{_bindir}/nettle-lfib-stream
|
2015-04-18 10:38:24 +02:00
|
|
|
%{_bindir}/nettle-pbkdf2
|
2011-08-18 09:36:14 +02:00
|
|
|
%{_bindir}/pkcs1-conv
|
|
|
|
%{_bindir}/sexp-conv
|
|
|
|
%{_bindir}/nettle-hash
|
2011-08-18 09:36:29 +02:00
|
|
|
|
|
|
|
%changelog
|