]>
Commit | Line | Data |
---|---|---|
31a112dc SS |
1 | ############################################################################### |
2 | # IPFire.org - An Open Source Firewall Solution # | |
3 | # Copyright (C) - IPFire Development Team <info@ipfire.org> # | |
4 | ############################################################################### | |
5 | ||
6 | name = compat-gnutls | |
7 | version = %{ver_maj}.%{ver_min} | |
8 | ver_maj = 3.3 | |
9 | ver_min = 25 | |
10 | release = 1 | |
11 | thisapp = gnutls-%{version} | |
12 | ||
13 | groups = System/Libraries | |
14 | url = http://www.gnu.org/software/gnutls/ | |
15 | license = LGPLv2.1+ | |
16 | summary = A general-purpose cryptography library. | |
17 | ||
18 | description | |
19 | GnuTLS is a project that aims to develop a library which provides | |
20 | a secure layer, over a reliable transport layer. Currently the | |
21 | GnuTLS library implements the proposed standards by the IETF's | |
22 | TLS working group. | |
23 | end | |
24 | ||
25 | source_dl = ftp://ftp.gnutls.org/gcrypt/gnutls/v%{ver_maj}/ | |
26 | sources = %{thisapp}.tar.xz | |
27 | ||
28 | build | |
29 | requires | |
30 | datefudge | |
31 | gettext | |
32 | libgcrypt-devel | |
33 | libidn-devel | |
34 | libtasn1-devel >= 3.2 | |
35 | lzo-devel | |
36 | net-tools | |
37 | nettle-devel >= 3.2 | |
38 | perl | |
39 | p11-kit-devel >= 0.23.1 | |
40 | readline-devel | |
41 | texinfo | |
42 | zlib-devel | |
43 | end | |
44 | ||
45 | # Build library without an executable stack. | |
46 | CFLAGS += -Wa,--noexecstack | |
47 | ||
48 | configure_options += \ | |
49 | --with-included-libcfg \ | |
50 | --disable-openssl-compatibility \ | |
51 | --disable-srp-authentication \ | |
52 | --disable-non-suiteb-curves \ | |
53 | --disable-guile | |
54 | ||
55 | # Test suite does not work when srp is disabled. | |
56 | test | |
57 | export LD_LIBRARY_PATH=$(pwd)/lib/.libs | |
58 | make check | |
59 | end | |
60 | ||
61 | install | |
62 | # Install just the library and no headers. | |
63 | mkdir -pv %{BUILDROOT}%{libdir} | |
64 | cp -avf lib/.libs/libgnutls.so.* %{BUILDROOT}%{libdir} | |
65 | cp -avf lib/.libs/libgnutlsxx.so.* %{BUILDROOT}%{libdir} | |
66 | end | |
67 | end | |
68 | ||
69 | packages | |
70 | package %{name} | |
71 | provides | |
72 | gnutls = %{thisver} | |
73 | end | |
74 | ||
75 | obsoletes | |
76 | gnutls <= %{thisver} | |
77 | end | |
78 | end | |
79 | ||
80 | package %{name}-debuginfo | |
81 | template DEBUGINFO | |
82 | end | |
83 | end |