]> git.ipfire.org Git - people/ms/ipfire-3.x.git/blob - nettle/nettle.nm
kernel: Add support for aarch64
[people/ms/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 = 2.7.1
8 release = 2
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 = http://www.lysator.liu.se/~nisse/archive/
23
24 build
25 requires
26 automake
27 gmp-devel
28 m4
29 end
30
31 prepare_cmds
32 # for aarch64
33 for i in $(find . -name config.guess -or -name config.sub); do
34 cp -vf %{datadir}/automake-*/config.{guess,sub} $(dirname ${i})
35 done
36 end
37
38 configure_options += \
39 --enable-shared
40
41 test
42 make check
43 end
44
45 install_cmds
46 # Fix library permissions.
47 chmod 755 %{BUILDROOT}%{libdir}/libhogweed.so.*
48 chmod 755 %{BUILDROOT}%{libdir}/libnettle.so.*
49 end
50 end
51
52 packages
53 package %{name}
54
55 package %{name}-devel
56 template DEVEL
57
58 requires += gmp-devel
59 end
60
61 package %{name}-debuginfo
62 template DEBUGINFO
63 end
64 end