]> git.ipfire.org Git - ipfire-3.x.git/blobdiff - nettle/nettle.nm
rp-pppoe: Depend on pppd for which this has been compiled for
[ipfire-3.x.git] / nettle / nettle.nm
index 940191e2f0a0161823261f98d4a3428565933aa2..1c0695f441581ccb2f04f2231626ae7767cc9b20 100644 (file)
@@ -4,8 +4,8 @@
 ###############################################################################
 
 name       = nettle
-version    = 2.2
-release    = 2
+version    = 3.3
+release    = 1
 
 groups     = System/Libraries
 url        = http://www.lysator.liu.se/~nisse/nettle/
@@ -19,21 +19,42 @@ description
        or even in kernel space.
 end
 
-source_dl  =
+source_dl  = http://www.lysator.liu.se/~nisse/archive/
 
 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,6 +63,10 @@ packages
        package %{name}-devel
                template DEVEL
 
-               requires += gmp-devel
+               requires += gmp-devel >= 5.0.0
+       end
+
+       package %{name}-debuginfo
+               template DEBUGINFO
        end
 end