]> git.ipfire.org Git - ipfire-3.x.git/blob - nettle/nettle.nm
nettle: Update to 3.4.1
[ipfire-3.x.git] / nettle / nettle.nm
1 ###############################################################################
2 # IPFire.org - An Open Source Firewall Solution #
3 # Copyright (C) - IPFire Development Team <info@ipfire.org> #
4 ###############################################################################
5
6 name = nettle
7 version = 3.4.1
8 release = 1
9
10 groups = System/Libraries
11 url = http://www.lysator.liu.se/~nisse/nettle/
12 license = LGPL
13 summary = A low-level cryptographic library.
14
15 description
16 Nettle is a cryptographic library that is designed to fit easily in
17 more or less any context: In crypto toolkits for object-oriented
18 languages (C++, Python, Pike, ...), in applications like LSH or GNUPG,
19 or even in kernel space.
20 end
21
22 source_dl = https://ftp.gnu.org/gnu/nettle/
23
24 build
25 requires
26 gmp-devel >= 5.0.0
27 m4
28 end
29
30 configure_options += \
31 --enable-shared
32
33 enable_fat = 0
34
35 # Does not work. Binaries are immediately crashing
36 #if "%{DISTRO_ARCH}" == "x86_64"
37 # enable_fat = 1
38 #end
39
40 if "%{DISTRO_PLATFORM}" == "arm"
41 enable_fat = 1
42 end
43
44 if "%{enable_fat}" == "1"
45 configure_options += \
46 --enable-fat
47 end
48
49 test
50 make check
51 end
52
53 install_cmds
54 # Fix library permissions.
55 chmod 755 %{BUILDROOT}%{libdir}/libhogweed.so.*
56 chmod 755 %{BUILDROOT}%{libdir}/libnettle.so.*
57 end
58 end
59
60 packages
61 package %{name}
62
63 package %{name}-devel
64 template DEVEL
65
66 requires += gmp-devel >= 5.0.0
67 end
68
69 package %{name}-debuginfo
70 template DEBUGINFO
71 end
72 end