4 Summary: Cryptographic Library
5 License: LGPL-2.1+ and GPL-2.0+
6 Group: Security/Crypto Libraries
7 Source0: https://ftp.gnu.org/gnu/nettle/nettle-%{version}.tar.gz
9 Source1001: nettle.manifest
10 BuildRequires: gmp-devel
11 BuildRequires: pkgconfig
14 Nettle is a cryptographic library that is designed to fit easily in more or
15 less any context: In crypto toolkits for object-oriented languages (C++,
16 Python, Pike, ...), in applications like LSH or GNUPG, or even in kernel space.
18 %package -n libhogweed
20 Summary: Cryptographic Library for Public Key Algorithms
22 Group: Security/Crypto Libraries
24 %description -n libhogweed
25 Nettle is a cryptographic library that is designed to fit easily in more or
26 less any context: In crypto toolkits for object-oriented languages (C++,
27 Python, Pike, ...), in applications like LSH or GNUPG, or even in kernel space.
29 The libhogweed library contains public key algorithms to use with libnettle.
31 %package -n libnettle-devel
32 Summary: Cryptographic Library
34 Group: Development/Libraries
37 Requires: libhogweed = %{version}
38 Requires: libnettle = %{version}
40 %description -n libnettle-devel
41 Nettle is a cryptographic library that is designed to fit easily in more or
42 less any context: In crypto toolkits for object-oriented languages (C++,
43 Python, Pike, ...), in applications like LSH or GNUPG, or even in kernel space.
47 Summary: Cryptographic Tools
48 License: LGPL-2.1+ and GPL-2.0+
49 Group: Security/Crypto Libraries
51 %description -n libnettle
52 Nettle is a cryptographic library that is designed to fit easily in more or
53 less any context: In crypto toolkits for object-oriented languages (C++,
54 Python, Pike, ...), in applications like LSH or GNUPG, or even in kernel space.
56 This package contains a few command-line tools to perform cryptographic
57 operations using the nettle library.
64 #configure --disable-static
65 %configure --enable-shared
75 %post -n libnettle -p /sbin/ldconfig
77 %postun -n libnettle -p /sbin/ldconfig
79 %post -n libhogweed -p /sbin/ldconfig
81 %postun -n libhogweed -p /sbin/ldconfig
85 %manifest %{name}.manifest
88 %{_libdir}/libnettle.so.*
91 %manifest %{name}.manifest
93 %{_libdir}/libhogweed.so.*
95 %files -n libnettle-devel
96 %manifest %{name}.manifest
99 %{_libdir}/libnettle.so
100 %{_libdir}/libhogweed.so
101 %{_libdir}/pkgconfig/hogweed.pc
102 %{_libdir}/pkgconfig/nettle.pc
105 %manifest %{name}.manifest
106 %defattr(-,root,root)
107 %{_bindir}/nettle-lfib-stream
108 %{_bindir}/pkcs1-conv
110 %{_bindir}/nettle-hash
111 %{_bindir}/nettle-pbkdf2