]> git.ipfire.org Git - ipfire-3.x.git/blob - compat-nettle/compat-nettle.nm
liboping: Fix build with GCC 9
[ipfire-3.x.git] / compat-nettle / compat-nettle.nm
1 ###############################################################################
2 # IPFire.org - An Open Source Firewall Solution #
3 # Copyright (C) - IPFire Development Team <info@ipfire.org> #
4 ###############################################################################
5
6 name = compat-nettle
7 version = 2.7.1
8 release = 1
9 thisapp = nettle-%{version}
10
11 groups = System/Libraries
12 url = http://www.lysator.liu.se/~nisse/nettle/
13 license = LGPL
14 summary = A low-level cryptographic library.
15
16 description
17 Nettle is a cryptographic library that is designed to fit easily in
18 more or less any context: In crypto toolkits for object-oriented
19 languages (C++, Python, Pike, ...), in applications like LSH or GNUPG,
20 or even in kernel space.
21 end
22
23 source_dl = http://www.lysator.liu.se/~nisse/archive/
24
25 build
26 requires
27 gmp-devel
28 m4
29 end
30
31 configure_options += \
32 --enable-shared
33
34 test
35 make check
36 end
37
38 install
39 # Install just the library and no headers.
40 mkdir -pv %{BUILDROOT}%{libdir}
41
42 install -m 755 libhogweed.so %{BUILDROOT}%{libdir}/libhogweed.so.2.5
43 ln -svf libhogweed.so.2.5 %{BUILDROOT}%{libdir}/libhogweed.so.2
44
45 install -m 755 libnettle.so %{BUILDROOT}%{libdir}/libnettle.so.4.7
46 ln -svf libnettle.so.4.7 %{BUILDROOT}%{libdir}/libnettle.so.4
47 end
48 end
49
50 packages
51 package %{name}
52 provides
53 nettle = %{thisver}
54 end
55
56 obsoletes
57 nettle <= %{thisver}
58 end
59 end
60
61 package %{name}-debuginfo
62 template DEBUGINFO
63 end
64 end