]> git.pld-linux.org Git - packages/libtomcrypt.git/commitdiff
build with LibTomMath (notes/tech0007.txt)
authorElan Ruusamäe <glen@delfi.ee>
Sun, 25 Jan 2015 17:55:49 +0000 (19:55 +0200)
committerElan Ruusamäe <glen@delfi.ee>
Sun, 25 Jan 2015 17:55:58 +0000 (19:55 +0200)
libtomcrypt.spec

index 31ad51bb07bfb545c15a407348188792836d42d4..25c9520a56803a733f76320ee860bb9b02a37594 100644 (file)
@@ -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}" \
This page took 0.076324 seconds and 4 git commands to generate.