]> git.pld-linux.org Git - packages/libtommath.git/blob - libtommath.spec
804dce37fd86c746daa9341296a4dba2400925bd
[packages/libtommath.git] / libtommath.spec
1 Summary:        LibTomMath - routines for integer based number theoretic applications
2 Summary(pl.UTF-8):      LibTomMath - procedury do zastosowań teorii liczb z zakresu liczb całkowitych
3 Name:           libtommath
4 Version:        0.42.0
5 Release:        2
6 License:        Public Domain
7 Group:          Libraries
8 Source0:        http://libtom.org/files/ltm-%{version}.tar.bz2
9 # Source0-md5:  7380da904b020301be7045cb3a89039b
10 URL:            http://libtom.org/?page=features&whatfile=ltm
11 BuildRequires:  libtool >= 2:1.5
12 BuildRequires:  sed >= 4.0
13 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
14
15 %define         specflags       -fomit-frame-pointer
16
17 %description
18 LibTomMath provides highly optimized and portable routines for a vast
19 majority of integer based number theoretic applications (including
20 public key cryptography). LibTomMath is not a cryptographic toolkit
21 itself but it can be used to write one (is used in LibTomCrypt for
22 RSA, DH and ECC public key routines).
23
24 %description -l pl.UTF-8
25 LibTomMath zawiera wysoko zoptymalizowane i przenośne procedury do
26 większości zastosowań teorii liczb z zakresu liczb całkowitych
27 (włącznie z kryptografią klucza publicznego). LibTomMath jako taka
28 nie jest zestawem procedur kryptograficznych, ale może być użyta do
29 napisania takowego (jest używana w LibTomCrypt do procedur klucza
30 publicznego RSA, DH i ECC).
31
32 %package devel
33 Summary:        Header files for LibTomMath library
34 Summary(pl.UTF-8):      Pliki nagłówkowe biblioteki LibTomMath
35 Group:          Development/Libraries
36 Requires:       %{name} = %{version}-%{release}
37
38 %description devel
39 Header files for LibTomMath library.
40
41 %description devel -l pl.UTF-8
42 Pliki nagłówkowe biblioteki LibTomMath.
43
44 %package static
45 Summary:        Static LibTomMath library
46 Summary(pl.UTF-8):      Statyczna biblioteka LibTomMath
47 Group:          Development/Libraries
48 Requires:       %{name}-devel = %{version}-%{release}
49
50 %description static
51 Static LibTomMath library.
52
53 %description static -l pl.UTF-8
54 Statyczna biblioteka LibTomMath.
55
56 %prep
57 %setup -q
58
59 sed -i -e 's/\<gcc\>/$(GCC)/' makefile.shared
60
61 %build
62 %{__make} -f makefile.shared \
63         GCC="%{__cc}" \
64         CFLAGS="%{rpmcflags} -I. -Wall -W -Wshadow -Wsign-compare" \
65         LIBPATH=%{_libdir}
66
67 %install
68 rm -rf $RPM_BUILD_ROOT
69
70 %{__make} -f makefile.shared install \
71         DESTDIR=$RPM_BUILD_ROOT \
72         LIBPATH=%{_libdir} \
73         INSTALL_GROUP="`id -g`" \
74         INSTALL_USER="`id -u`"
75
76 %clean
77 rm -rf $RPM_BUILD_ROOT
78
79 %post   -p /sbin/ldconfig
80 %postun -p /sbin/ldconfig
81
82 %files
83 %defattr(644,root,root,755)
84 %doc LICENSE changes.txt
85 %attr(755,root,root) %{_libdir}/libtommath.so.*.*.*
86 %attr(755,root,root) %ghost %{_libdir}/libtommath.so.0
87
88 %files devel
89 %defattr(644,root,root,755)
90 %doc bn.pdf tommath.pdf
91 %attr(755,root,root) %{_libdir}/libtommath.so
92 %{_libdir}/libtommath.la
93 %{_includedir}/tommath*.h
94
95 %files static
96 %defattr(644,root,root,755)
97 %{_libdir}/libtommath.a
This page took 0.294177 seconds and 2 git commands to generate.