]>
Commit | Line | Data |
---|---|---|
7105ebd7 JB |
1 | # |
2 | # Conditional build: | |
3 | %bcond_with tests # perform regression test | |
4 | # | |
32bb3fbc | 5 | %define snap 20040509 |
32bb3fbc | 6 | Summary: Axiom Computer Algebra System |
cecde5fc ER |
7 | Summary(pl.UTF-8): System algebry komputerowej Axiom |
8 | Summary(ru.UTF-8): Система аналитических вычислений Axiom | |
7105ebd7 JB |
9 | Name: axiom |
10 | Version: 3.%{snap} | |
11 | Release: 1 | |
32bb3fbc | 12 | License: Modified BSD License |
13 | Group: Applications/Science | |
32bb3fbc | 14 | Source0: %{name}-cvs-%{snap}.tar.bz2 |
15 | Source1: %{name} | |
16 | Source2: gcl-2.6.2-%{name}.tar.gz | |
17 | Patch1: %{name}-no-test.patch | |
18 | Patch2: %{name}-external-gcl.patch | |
7105ebd7 JB |
19 | URL: http://savannah.nongnu.org/projects/axiom/ |
20 | BuildRequires: XFree86-devel | |
3fcfd293 | 21 | BuildRequires: gawk |
7105ebd7 JB |
22 | BuildRequires: lynx |
23 | BuildRequires: ncurses-devel | |
24 | BuildRequires: readline-devel | |
25 | BuildRequires: tcl-devel | |
26 | BuildRequires: tetex | |
27 | BuildRequires: tetex-dvips | |
28 | BuildRequires: tetex-latex | |
29 | BuildRequires: texinfo | |
30 | BuildRequires: tk-devel | |
31 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
08f2916a | 32 | |
33 | %description | |
34 | Axiom is a general purpose Computer Algebra system. It is useful for | |
32bb3fbc | 35 | research and development of mathematical algorithms. It defines a |
36 | strongly typed, mathematically correct type hierarchy. It has a | |
37 | programming language and a built-in compiler. | |
08f2916a | 38 | |
32bb3fbc | 39 | Axiom has been in development since 1973 and was sold as a commercial |
40 | product. It has been released as free software. | |
08f2916a | 41 | |
32bb3fbc | 42 | Efforts are underway to extend this software to (a) develop a better |
43 | user interface (b) make it useful as a teaching tool (c) develop an | |
44 | algebra server protocol (d) integrate additional mathematics (e) | |
45 | rebuild the algebra in a literate programming style (f) integrate | |
46 | logic programming (g) develop an Axiom Journal with refereed | |
47 | submissions. | |
48 | ||
e0dd05e3 JR |
49 | %description -l pl.UTF-8 |
50 | Axiom to system algebry komputerowej ogólnego przeznaczenia. Jest | |
51 | przydatny przy badaniach i rozwoju algorytmów matematycznych. | |
52 | Definiuje silnie typowaną, poprawną matematycznie hierarchię typów. Ma | |
53 | język programowania i wbudowany kompilator. | |
7105ebd7 | 54 | |
e0dd05e3 JR |
55 | Axiom jest rozwijany od 1973 i był sprzedawany jako produkt |
56 | komercyjny. Został wypuszczony jako darmowe oprogramowanie. | |
7105ebd7 | 57 | |
e0dd05e3 JR |
58 | Są czynione starania rozszerzenia tego oprogramowania, aby: stworzyć |
59 | lepszy interfejs użytkownika, uczynić je przydatne jako narzędzie do | |
60 | nauczania, stworzyć protokół serwera algebry, zintegrować dodatkową | |
61 | matematykę, przebudować algebrę w czytelnym stylu programowania, | |
62 | zintegrować programowanie logiczne, stworzyć Axiom Journal. | |
7105ebd7 | 63 | |
e0dd05e3 JR |
64 | %description -l ru.UTF-8 |
65 | Axiom является универсальной системой аналитических вычислений и может | |
66 | использоваться для научных исследований и развития математических | |
67 | алгоритмов. Axiom является строго типизированной системой с | |
68 | математически корректной иерархией типов. Система имеет собственный | |
69 | язык программирования и встроенный компилятор. | |
c50e3791 | 70 | |
e0dd05e3 JR |
71 | Axiom развивается с 1973 года и ранее распространялась как |
72 | коммерческий продукт. Сейчас система выпущена под свободной програмной | |
73 | лицензией. | |
08f2916a | 74 | |
75 | %package doc | |
7105ebd7 | 76 | Summary: Axiom Book and other documentaion |
cecde5fc ER |
77 | Summary(pl.UTF-8): Axiom Book i inna dokumentacja |
78 | Summary(ru.UTF-8): Книга и другая документация по Axiom | |
0e7ce757 | 79 | Group: Documentation |
08f2916a | 80 | |
81 | %description doc | |
82 | Axiom Book and other Documentaion. | |
83 | ||
e0dd05e3 | 84 | %description doc -l pl.UTF-8 |
7105ebd7 JB |
85 | Axiom Book i inna dokumentacja. |
86 | ||
e0dd05e3 JR |
87 | %description doc -l ru.UTF-8 |
88 | Книга и другая документация по Axiom. | |
08f2916a | 89 | |
32bb3fbc | 90 | %prep |
7105ebd7 JB |
91 | %setup -q -n %{name} |
92 | %if !%{with tests} | |
08f2916a | 93 | %patch1 -p1 |
94 | %endif | |
95 | ||
7105ebd7 | 96 | cp %{SOURCE2} zips/gcl-2.6.2a.tgz |
08f2916a | 97 | |
98 | #%patch2 -p1 | |
99 | ||
08f2916a | 100 | %build |
7105ebd7 | 101 | export AXIOM=%{_builddir}/%{name}/mnt/linux |
08f2916a | 102 | export PATH=$AXIOM/bin:$PATH |
103 | ||
32bb3fbc | 104 | %{__make} |
08f2916a | 105 | cd mnt/linux/doc |
106 | dvips -o book.ps book.dvi | |
107 | dvips -o Rosetta.ps Rosetta.dvi | |
108 | dvips -o DeveloperNotes.ps DeveloperNotes.dvi | |
08f2916a | 109 | |
110 | %install | |
32bb3fbc | 111 | rm -rf $RPM_BUILD_ROOT |
7105ebd7 | 112 | install -d $RPM_BUILD_ROOT%{_bindir} |
08f2916a | 113 | |
7105ebd7 JB |
114 | %{__make} install \ |
115 | INSTALL=$RPM_BUILD_ROOT%{_libdir}/%{name} \ | |
116 | COMMAND=$RPM_BUILD_ROOT%{_bindir}/%{name} | |
08f2916a | 117 | |
7105ebd7 | 118 | install -D -m755 %{SOURCE1} $RPM_BUILD_ROOT%{_bindir}/%{name} |
08f2916a | 119 | |
32bb3fbc | 120 | %clean |
121 | rm -rf $RPM_BUILD_ROOT | |
08f2916a | 122 | |
123 | %files | |
32bb3fbc | 124 | %defattr(644,root,root,755) |
7105ebd7 JB |
125 | %attr(755,root,root) %{_bindir}/%{name} |
126 | %dir%{_libdir}/%{name} | |
127 | %dir%{_libdir}/%{name}/mnt | |
128 | %dir%{_libdir}/%{name}/mnt/linux | |
129 | %{_libdir}/%{name}/mnt/linux/algebra | |
130 | %{_libdir}/%{name}/mnt/linux/autoload | |
131 | %{_libdir}/%{name}/mnt/linux/bin | |
132 | %{_libdir}/%{name}/mnt/linux/input | |
133 | %{_libdir}/%{name}/mnt/linux/lib | |
134 | %{_libdir}/%{name}/mnt/linux/src | |
135 | %{_libdir}/%{name}/mnt/linux/timestamp | |
136 | %dir%{_libdir}/%{name}/mnt/linux/doc | |
137 | %{_libdir}/%{name}/mnt/linux/doc/hypertex | |
138 | %{_libdir}/%{name}/mnt/linux/doc/msgs | |
08f2916a | 139 | |
140 | %files doc | |
32bb3fbc | 141 | %defattr(644,root,root,755) |
7105ebd7 | 142 | %doc %{_libdir}/%{name}/mnt/linux/doc/*.ps |