]>
Commit | Line | Data |
---|---|---|
815dc7dc | 1 | Summary: LibTomMath - routines for integer based number theoretic applications |
d930d8d8 | 2 | Summary(pl.UTF-8): LibTomMath - procedury do zastosowań teorii liczb z zakresu liczb całkowitych |
815dc7dc | 3 | Name: libtommath |
fdf935a7 | 4 | Version: 1.0.1 |
afe28285 JB |
5 | Release: 1 |
6 | License: Public Domain or WTFPL v2 | |
815dc7dc | 7 | Group: Libraries |
afe28285 JB |
8 | #Source0Download: https://github.com/libtom/libtommath/releases |
9 | Source0: https://github.com/libtom/libtommath/releases/download/v%{version}/ltm-%{version}.tar.xz | |
fdf935a7 JB |
10 | # Source0-md5: 72f4dd9dcde8338e5e3507f7bbea7582 |
11 | Patch0: %{name}-pc.patch | |
12 | URL: http://www.libtom.net/LibTomMath/ | |
b7fc886e | 13 | BuildRequires: libtool >= 2:1.5 |
815dc7dc JB |
14 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
15 | ||
16 | %define specflags -fomit-frame-pointer | |
17 | ||
18 | %description | |
19 | LibTomMath provides highly optimized and portable routines for a vast | |
20 | majority of integer based number theoretic applications (including | |
21 | public key cryptography). LibTomMath is not a cryptographic toolkit | |
22 | itself but it can be used to write one (is used in LibTomCrypt for | |
23 | RSA, DH and ECC public key routines). | |
24 | ||
0a1b2338 JR |
25 | %description -l pl.UTF-8 |
26 | LibTomMath zawiera wysoko zoptymalizowane i przenośne procedury do | |
27 | większości zastosowań teorii liczb z zakresu liczb całkowitych | |
28 | (włącznie z kryptografią klucza publicznego). LibTomMath jako taka | |
29 | nie jest zestawem procedur kryptograficznych, ale może być użyta do | |
30 | napisania takowego (jest używana w LibTomCrypt do procedur klucza | |
815dc7dc JB |
31 | publicznego RSA, DH i ECC). |
32 | ||
33 | %package devel | |
34 | Summary: Header files for LibTomMath library | |
d930d8d8 | 35 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki LibTomMath |
815dc7dc JB |
36 | Group: Development/Libraries |
37 | Requires: %{name} = %{version}-%{release} | |
38 | ||
39 | %description devel | |
40 | Header files for LibTomMath library. | |
41 | ||
0a1b2338 JR |
42 | %description devel -l pl.UTF-8 |
43 | Pliki nagłówkowe biblioteki LibTomMath. | |
815dc7dc JB |
44 | |
45 | %package static | |
46 | Summary: Static LibTomMath library | |
d930d8d8 | 47 | Summary(pl.UTF-8): Statyczna biblioteka LibTomMath |
815dc7dc JB |
48 | Group: Development/Libraries |
49 | Requires: %{name}-devel = %{version}-%{release} | |
50 | ||
51 | %description static | |
52 | Static LibTomMath library. | |
53 | ||
0a1b2338 | 54 | %description static -l pl.UTF-8 |
815dc7dc JB |
55 | Statyczna biblioteka LibTomMath. |
56 | ||
57 | %prep | |
58 | %setup -q | |
fdf935a7 | 59 | %patch0 -p1 |
815dc7dc | 60 | |
815dc7dc | 61 | %build |
afe28285 JB |
62 | # IGNORE_SPEED avoids overriding rpmcflags |
63 | CFLAGS="%{rpmcflags}" \ | |
815dc7dc | 64 | %{__make} -f makefile.shared \ |
afe28285 JB |
65 | CC="%{__cc}" \ |
66 | IGNORE_SPEED=1 \ | |
815dc7dc JB |
67 | LIBPATH=%{_libdir} |
68 | ||
69 | %install | |
70 | rm -rf $RPM_BUILD_ROOT | |
71 | ||
72 | %{__make} -f makefile.shared install \ | |
73 | DESTDIR=$RPM_BUILD_ROOT \ | |
fdf935a7 | 74 | PREFIX=%{_prefix} \ |
afe28285 | 75 | LIBPATH=%{_libdir} |
815dc7dc JB |
76 | |
77 | %clean | |
78 | rm -rf $RPM_BUILD_ROOT | |
79 | ||
80 | %post -p /sbin/ldconfig | |
81 | %postun -p /sbin/ldconfig | |
82 | ||
83 | %files | |
84 | %defattr(644,root,root,755) | |
afe28285 | 85 | %doc LICENSE README.md changes.txt |
815dc7dc | 86 | %attr(755,root,root) %{_libdir}/libtommath.so.*.*.* |
afe28285 | 87 | %attr(755,root,root) %ghost %{_libdir}/libtommath.so.1 |
815dc7dc JB |
88 | |
89 | %files devel | |
90 | %defattr(644,root,root,755) | |
fdf935a7 | 91 | %doc doc/{bn.pdf,poster.pdf,tommath.pdf} |
815dc7dc JB |
92 | %attr(755,root,root) %{_libdir}/libtommath.so |
93 | %{_libdir}/libtommath.la | |
b7fc886e | 94 | %{_includedir}/tommath*.h |
fdf935a7 | 95 | %{_pkgconfigdir}/libtommath.pc |
815dc7dc JB |
96 | |
97 | %files static | |
98 | %defattr(644,root,root,755) | |
99 | %{_libdir}/libtommath.a |