1 Summary: Groups, Algorithms and Programming
2 Summary(pl): Grupy, Algorytmy i Programowanie
7 Group: Applications/Math
8 Source0: ftp://ftp-gap.dcs.st-and.ac.uk/pub/gap/gap4/%{name}4r2.zoo
9 Patch0: %{name}-gac.patch
10 URL: http://www-gap.dcs.st-and.ac.uk/gap/
12 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
15 GAP is a free, open and extensible software package for computation in
16 discrete abstract algebra.
19 GAP jest darmowym, otwartym i rozszerzalnym pakietem oprogramowania do
20 obliczeñ dyskretnej abstrakcyjnej algebry.
22 %package share_package_demo
23 Summary: Example share package for GAP
24 Summary(pl): ¬ród³a przyk³adowego pakietu wspó³dzielonego dla GAP
25 Group: Applications/Math
28 %description share_package_demo
29 This is an example how to add a share package to GAP (version 4).
31 %description share_package_demo -l pl
32 Przyk³ad, jak dodaæ wspó³dzielony pakiet do GAP (wersja 4).
41 mv -f cnf/configure.in cnf/configure.bak
42 sed -e 's/GP_CFLAGS//g' cnf/configure.bak > cnf/configure.in
43 %{__make} -C cnf configure.out
46 mkdir -p bin/%{_target_platform}
47 cp -f cnf/configure.out bin/%{_target_platform}/configure
48 cd bin/%{_target_platform}
53 rm -rf $RPM_BUILD_ROOT
54 install -d $RPM_BUILD_ROOT{%{_bindir},%{_datadir}/gap/pkg,%{_examplesdir}/gap}
58 cp -a sysinfo.gap grp lib prim small src tbl tom trans tst $RPM_BUILD_ROOT%{_datadir}/gap/
59 cp -a pkg/example/* $RPM_BUILD_ROOT%{_examplesdir}/gap
61 install bin/%{_target_platform}/gap $RPM_BUILD_ROOT%{_bindir}/%{_target_platform}-gap
62 install bin/%{_target_platform}/gac $RPM_BUILD_ROOT%{_bindir}
64 cat <<EOF > $RPM_BUILD_ROOT%{_bindir}/gap
66 [ -z "\$GAP_MEM" ] && GAP_MEM=12m
67 exec %{_bindir}/%{_target_platform}-gap -m \$GAP_MEM -l %{_datadir}/gap \$*
71 for i in ext new prg ref tut ; do
72 (cd $i ; dvips manual.dvi -o )
74 dvips fullindex.dvi -o
75 mv -f new/manual.ps supplement.ps
76 mv -f ext/manual.ps prgmanual.ps
77 mv -f prg/manual.ps prgtutorial.ps
78 mv -f ref/manual.ps refman.ps
79 mv -f tut/manual.ps tutorial.ps
82 rm -rf $RPM_BUILD_ROOT
85 %defattr(644,root,root,755)
86 %doc gap4r2/doc/*.ps gap4r2/doc/htm/*
87 %attr(755,root,root) %{_bindir}/*
90 %files share_package_demo
91 %defattr(644,root,root,755)