]> git.ipfire.org Git - people/amarx/ipfire-3.x.git/blame - nettle/nettle.nm
sip: update to 4.18.1
[people/amarx/ipfire-3.x.git] / nettle / nettle.nm
CommitLineData
bc9614d0 1###############################################################################
802ea3af
MT
2# IPFire.org - An Open Source Firewall Solution #
3# Copyright (C) - IPFire Development Team <info@ipfire.org> #
bc9614d0
MT
4###############################################################################
5
802ea3af 6name = nettle
493752cb 7version = 3.2
70cde306 8release = 1
bc9614d0 9
802ea3af
MT
10groups = System/Libraries
11url = http://www.lysator.liu.se/~nisse/nettle/
12license = LGPL
13summary = A low-level cryptographic library.
bc9614d0 14
802ea3af 15description
bc9614d0
MT
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.
802ea3af
MT
20end
21
1a5b6555 22source_dl = http://www.lysator.liu.se/~nisse/archive/
802ea3af
MT
23
24build
25 requires
26 gmp-devel
27 m4
802ea3af
MT
28 end
29
30 configure_options += \
31 --enable-shared
32
70e4c145
MT
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
802ea3af
MT
49 test
50 make check
51 end
5924dccf
MT
52
53 install_cmds
54 # Fix library permissions.
55 chmod 755 %{BUILDROOT}%{libdir}/libhogweed.so.*
56 chmod 755 %{BUILDROOT}%{libdir}/libnettle.so.*
57 end
802ea3af
MT
58end
59
60packages
61 package %{name}
62
63 package %{name}-devel
b284b82f
MT
64 template DEVEL
65
66 requires += gmp-devel
802ea3af 67 end
1f9bc2f0
MT
68
69 package %{name}-debuginfo
70 template DEBUGINFO
71 end
802ea3af 72end