]>
Commit | Line | Data |
---|---|---|
1 | # | |
2 | # Conditional build: | |
3 | %bcond_with tests # perform regression test | |
4 | # | |
5 | %define snap 20040509 | |
6 | Summary: Axiom Computer Algebra System | |
7 | Summary(pl.UTF-8): System algebry komputerowej Axiom | |
8 | Summary(ru.UTF-8): Система аналитических вычислений Axiom | |
9 | Name: axiom | |
10 | Version: 3.%{snap} | |
11 | Release: 1 | |
12 | License: Modified BSD License | |
13 | Group: Applications/Science | |
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 | |
19 | URL: http://savannah.nongnu.org/projects/axiom/ | |
20 | BuildRequires: XFree86-devel | |
21 | BuildRequires: gawk | |
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) | |
32 | ||
33 | %description | |
34 | Axiom is a general purpose Computer Algebra system. It is useful for | |
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. | |
38 | ||
39 | Axiom has been in development since 1973 and was sold as a commercial | |
40 | product. It has been released as free software. | |
41 | ||
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 | ||
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. | |
54 | ||
55 | Axiom jest rozwijany od 1973 i był sprzedawany jako produkt | |
56 | komercyjny. Został wypuszczony jako darmowe oprogramowanie. | |
57 | ||
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. | |
63 | ||
64 | %description -l ru.UTF-8 | |
65 | Axiom является универсальной системой аналитических вычислений и может | |
66 | использоваться для научных исследований и развития математических | |
67 | алгоритмов. Axiom является строго типизированной системой с | |
68 | математически корректной иерархией типов. Система имеет собственный | |
69 | язык программирования и встроенный компилятор. | |
70 | ||
71 | Axiom развивается с 1973 года и ранее распространялась как | |
72 | коммерческий продукт. Сейчас система выпущена под свободной програмной | |
73 | лицензией. | |
74 | ||
75 | %package doc | |
76 | Summary: Axiom Book and other documentaion | |
77 | Summary(pl.UTF-8): Axiom Book i inna dokumentacja | |
78 | Summary(ru.UTF-8): Книга и другая документация по Axiom | |
79 | Group: Documentation | |
80 | ||
81 | %description doc | |
82 | Axiom Book and other Documentaion. | |
83 | ||
84 | %description doc -l pl.UTF-8 | |
85 | Axiom Book i inna dokumentacja. | |
86 | ||
87 | %description doc -l ru.UTF-8 | |
88 | Книга и другая документация по Axiom. | |
89 | ||
90 | %prep | |
91 | %setup -q -n %{name} | |
92 | %if !%{with tests} | |
93 | %patch1 -p1 | |
94 | %endif | |
95 | ||
96 | cp %{SOURCE2} zips/gcl-2.6.2a.tgz | |
97 | ||
98 | #%patch2 -p1 | |
99 | ||
100 | %build | |
101 | export AXIOM=%{_builddir}/%{name}/mnt/linux | |
102 | export PATH=$AXIOM/bin:$PATH | |
103 | ||
104 | %{__make} | |
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 | |
109 | ||
110 | %install | |
111 | rm -rf $RPM_BUILD_ROOT | |
112 | install -d $RPM_BUILD_ROOT%{_bindir} | |
113 | ||
114 | %{__make} install \ | |
115 | INSTALL=$RPM_BUILD_ROOT%{_libdir}/%{name} \ | |
116 | COMMAND=$RPM_BUILD_ROOT%{_bindir}/%{name} | |
117 | ||
118 | install -D -m755 %{SOURCE1} $RPM_BUILD_ROOT%{_bindir}/%{name} | |
119 | ||
120 | %clean | |
121 | rm -rf $RPM_BUILD_ROOT | |
122 | ||
123 | %files | |
124 | %defattr(644,root,root,755) | |
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 | |
139 | ||
140 | %files doc | |
141 | %defattr(644,root,root,755) | |
142 | %doc %{_libdir}/%{name}/mnt/linux/doc/*.ps |