X-Git-Url: http://git.ipfire.org/?a=blobdiff_plain;f=nettle%2Fnettle.nm;h=3306894137fdeb741bca30f2fc2c97e8b01c8da5;hb=988db099886b1800c5d2da96bba37b366ed4156d;hp=af0a929e4e40f831354de09c64984f05d864efd7;hpb=9507da1155fc38b123e29da356e41f630f6ebf29;p=people%2Fstevee%2Fipfire-3.x.git diff --git a/nettle/nettle.nm b/nettle/nettle.nm index af0a929e4..330689413 100644 --- a/nettle/nettle.nm +++ b/nettle/nettle.nm @@ -4,7 +4,7 @@ ############################################################################### name = nettle -version = 2.4 +version = 3.4.1 release = 1 groups = System/Libraries @@ -19,21 +19,42 @@ description or even in kernel space. end -source_dl = http://www.lysator.liu.se/~nisse/archive/ +source_dl = https://ftp.gnu.org/gnu/nettle/ build requires - gmp-devel + gmp-devel >= 5.0.0 m4 - openssl-devel end configure_options += \ --enable-shared + enable_fat = 0 + + # Does not work. Binaries are immediately crashing + #if "%{DISTRO_ARCH}" == "x86_64" + # enable_fat = 1 + #end + + if "%{DISTRO_PLATFORM}" == "arm" + enable_fat = 1 + end + + if "%{enable_fat}" == "1" + configure_options += \ + --enable-fat + end + test make check end + + install_cmds + # Fix library permissions. + chmod 755 %{BUILDROOT}%{libdir}/libhogweed.so.* + chmod 755 %{BUILDROOT}%{libdir}/libnettle.so.* + end end packages @@ -42,7 +63,7 @@ packages package %{name}-devel template DEVEL - requires += gmp-devel + requires += gmp-devel >= 5.0.0 end package %{name}-debuginfo