commit 9b363aa2fbe44a3085afcb252499d9545a74b0af
Author: Elan Ruusamäe <[email protected]>
Date:   Sun Jan 25 19:55:49 2015 +0200

    build with LibTomMath (notes/tech0007.txt)

 libtomcrypt.spec | 10 ++++++++--
 1 file changed, 8 insertions(+), 2 deletions(-)
---
diff --git a/libtomcrypt.spec b/libtomcrypt.spec
index 31ad51b..25c9520 100644
--- a/libtomcrypt.spec
+++ b/libtomcrypt.spec
@@ -1,14 +1,19 @@
+#
+# Conditional build:
+%bcond_without ltm             # use LibTomMath for Math provider
+
 Summary:       LibTomCrypt - fairly comprehensive, modular and portable 
cryptographic toolkit
 Summary(pl.UTF-8):     LibTomCrypt - dość obszerna, modularna i przenośna 
biblioteka kryptograficzna
 Name:          libtomcrypt
 Version:       1.17
-Release:       1
+Release:       1.1
 License:       Public Domain
 Group:         Libraries
 Source0:       http://libtom.org/files/crypt-%{version}.tar.bz2
 # Source0-md5: cea7e5347979909f458fe7ebb5a44f85
 Patch0:                %{name}-link.patch
 URL:           https://github.com/libtom/libtomcrypt
+%{?with_ltm:BuildRequires:     libtommath-devel}
 BuildRequires: libtool >= 2:1.5
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
@@ -55,7 +60,8 @@ Statyczna biblioteka LibTomCrypt.
 %patch0 -p1
 
 %build
-CFLAGS="%{rpmcflags}" \
+CFLAGS="%{rpmcflags} %{?with_ltm:-DLTC_NO_ASM -DUSE_LTM -DLTM_DESC}" \
+%{?with_ltm:EXTRALIBS=-ltommath} \
 %{__make} -f makefile.shared \
        CC="libtool --mode=compile --tag=CC %{__cc}" \
        CCLD="libtool --mode=link --tag=CC %{__cc}" \
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/libtomcrypt.git/commitdiff/b7e928289b45dad28a9ed7821794abe1a324cdac

_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to