]>
Commit | Line | Data |
---|---|---|
f4cc1bd1 | 1 | Summary: C++ library for number theoretical computations |
2 | Name: LiDIA | |
3 | Version: 2.2.0 | |
4 | Release: 0.1 | |
5 | License: noncommercial | |
6 | Group: Development/Libraries | |
7 | Source0: ftp://ftp.informatik.tu-darmstadt.de/pub/TI/systems/LiDIA/current/lidia-%{version}.tar.gz | |
8 | # Source0-md5: d9e012bb666e7a7ba1b45283aa3bfe03 | |
9 | URL: http://www.informatik.tu-darmstadt.de/TI/LiDIA/ | |
10 | BuildRequires: gmp-devel | |
11 | BuildRequires: libstdc++-devel | |
12 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
13 | ||
14 | %description | |
15 | LiDIA is a C++ library for number-theoretical computations. | |
16 | ||
17 | LiDIA provides parameterized as well as specialized classes together | |
18 | with advanced methods for computing in a large variety of mathematical | |
19 | groups, rings, and fields, ranging from arbitrary-length integers, | |
20 | fractions, and floating-point approximations, over vectors and | |
21 | matrices, to high-level constructs of finite fields, lattices, | |
22 | quadratic and higher-order number fields, polynomial rings, and | |
23 | elliptic curves. In addition to a rich set of methods for basic | |
24 | structural operations, I/O, arithmetic, and common number-theoretical | |
25 | primitives, there are functions for computationally intensive tasks: | |
26 | reducing lattice bases; factoring polynomials, integers, or algebraic | |
27 | ideals; computing discrete logarithms; determining group orders on | |
28 | elliptic curves; and more... | |
29 | ||
30 | LiDIA is free for non-commercial use. See the copyright notice in the | |
31 | file COPYING. Contributors are welcome. | |
32 | ||
33 | %prep | |
34 | %setup -q -n lidia-%{version} | |
35 | ||
36 | %build | |
37 | %configure \ | |
38 | --enable-shared | |
39 | %{__make} | |
40 | %{__make} examples | |
41 | #%{__make} pdf | |
42 | ||
43 | %install | |
44 | rm -rf $RPM_BUILD_ROOT | |
45 | %{__make} install \ | |
46 | DESTDIR=$RPM_BUILD_ROOT # install-examples | |
47 | ||
48 | %clean | |
49 | rm -rf "$RPM_BUILD_ROOT" | |
50 | ||
51 | %files | |
52 | %defattr(644,root,root,755) | |
53 | %doc COPYING NEWS README TODO | |
54 | #%doc doc/LiDIA.pdf | |
55 | %attr(755,root,root) %{_libdir}/lib*.so* | |
56 | %{_libdir}/lib*.la | |
57 | %{_includedir}/lidia | |
58 | %{_includedir}/%{name} | |
59 | %{_datadir}/lidia |