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 # Source0-md5: e8c4e3fa38efc582f980a0d377112057
10 Source1: %{name}.desktop
11 Patch0: %{name}-gac.patch
12 URL: http://www-gap.dcs.st-and.ac.uk/gap.html
14 BuildRequires: tetex-dvips
15 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
18 GAP is a free, open and extensible software package for computation in
19 discrete abstract algebra.
22 GAP jest darmowym, otwartym i rozszerzalnym pakietem oprogramowania do
23 obliczeñ dyskretnej abstrakcyjnej algebry.
25 %package share_package_demo
26 Summary: Example share package for GAP
27 Summary(pl): ¬ród³a przyk³adowego pakietu wspó³dzielonego dla GAP
28 Group: Applications/Math
31 %description share_package_demo
32 This is an example how to add a share package to GAP (version 4).
34 %description share_package_demo -l pl
35 Przyk³ad, jak dodaæ wspó³dzielony pakiet do GAP (wersja 4).
44 mv -f cnf/configure.in cnf/configure.bak
45 sed -e 's/GP_CFLAGS//g' cnf/configure.bak > cnf/configure.in
46 %{__make} -C cnf configure.out
49 mkdir -p bin/%{_target_platform}
50 cp -f cnf/configure.out bin/%{_target_platform}/configure
51 cd bin/%{_target_platform}
56 rm -rf $RPM_BUILD_ROOT
57 install -d $RPM_BUILD_ROOT{%{_bindir},%{_datadir}/gap/pkg,%{_examplesdir}/gap,%{_desktopdir}}
61 cp -a sysinfo.gap grp lib prim small src tbl tom trans tst $RPM_BUILD_ROOT%{_datadir}/gap/
62 cp -a pkg/example/* $RPM_BUILD_ROOT%{_examplesdir}/gap
64 install bin/%{_target_platform}/gap $RPM_BUILD_ROOT%{_bindir}/%{_target_platform}-gap
65 install bin/%{_target_platform}/gac $RPM_BUILD_ROOT%{_bindir}
67 cat <<EOF > $RPM_BUILD_ROOT%{_bindir}/gap
69 [ -z "\$GAP_MEM" ] && GAP_MEM=12m
70 exec %{_bindir}/%{_target_platform}-gap -m \$GAP_MEM -l %{_datadir}/gap \$*
74 for i in ext new prg ref tut ; do
75 (cd $i ; dvips manual.dvi -o )
77 dvips fullindex.dvi -o
78 mv -f new/manual.ps supplement.ps
79 mv -f ext/manual.ps prgmanual.ps
80 mv -f prg/manual.ps prgtutorial.ps
81 mv -f ref/manual.ps refman.ps
82 mv -f tut/manual.ps tutorial.ps
84 install %{SOURCE1} $RPM_BUILD_ROOT%{_desktopdir}
87 rm -rf $RPM_BUILD_ROOT
90 %defattr(644,root,root,755)
91 %doc gap4r2/doc/*.ps gap4r2/doc/htm/*
92 %attr(755,root,root) %{_bindir}/*
94 %{_desktopdir}/%{name}.desktop
96 %files share_package_demo
97 %defattr(644,root,root,755)