]> git.pld-linux.org Git - packages/gap.git/blob - gap.spec
- 4.4.12
[packages/gap.git] / gap.spec
1 Summary:        Groups, Algorithms and Programming
2 Summary(pl.UTF-8):      Grupy, Algorytmy i Programowanie
3 Name:           gap
4 Version:        4.4.12
5 Release:        1
6 License:        distributable
7 Group:          Applications/Math
8 Source0:        ftp://ftp.gap-system.org/pub/gap/gap4/tar.bz2/%{name}4r4p12.tar.bz2
9 # Source0-md5:  2808c00e85e98843bb0e1a62c33ad5f0
10 Source1:        %{name}.desktop
11 Patch0:         %{name}-gac.patch
12 URL:            http://www.gap-system.org/
13 BuildRequires:  autoconf
14 BuildRequires:  ghostscript
15 BuildRequires:  texlive-dvips
16 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
17
18 %description
19 GAP is a free, open and extensible software package for computation in
20 discrete abstract algebra.
21
22 %description -l pl.UTF-8
23 GAP jest darmowym, otwartym i rozszerzalnym pakietem oprogramowania do
24 obliczeĹ„ dyskretnej abstrakcyjnej algebry.
25
26 %prep
27 %setup -q -c
28 %patch0 -p1
29
30 %build
31 cd gap4r4
32 sed -i -e 's/GP_CFLAGS//g' cnf/configure.in
33 %{__make} -C cnf configure.out
34 %configure
35
36 mkdir -p bin/%{_target_platform}
37 cp -f cnf/configure.out bin/%{_target_platform}/configure
38 cd bin/%{_target_platform}
39 %configure
40 %{__make}
41
42 %install
43 rm -rf $RPM_BUILD_ROOT
44 install -d $RPM_BUILD_ROOT{%{_bindir},%{_datadir}/gap,%{_desktopdir}}
45
46 cd gap4r4
47
48 cp -a sysinfo.gap grp lib pkg prim small src trans tst $RPM_BUILD_ROOT%{_datadir}/gap/
49
50 install bin/%{_target_platform}/gap $RPM_BUILD_ROOT%{_bindir}/%{_target_platform}-gap
51 sed -e 's|^gap_bin=.*|gap_bin=|' bin/%{_target_platform}/gac > \
52                 $RPM_BUILD_ROOT%{_bindir}/gac
53
54 cat <<EOF > $RPM_BUILD_ROOT%{_bindir}/gap
55 #!/bin/sh
56 [ -z "\$GAP_MEM" ] && GAP_MEM=32m
57 exec %{_bindir}/%{_target_platform}-gap -m \$GAP_MEM -l %{_datadir}/gap \$*
58 EOF
59
60 cd doc
61 dvipdf new/manual.dvi new.pdf
62 dvipdf ext/manual.pdf extending.pdf
63 dvipdf prg/manual.pdf programming.pdf
64 dvipdf ref/manual.pdf refman.pdf
65 dvipdf tut/manual.pdf tutorial.pdf
66
67 install %{SOURCE1} $RPM_BUILD_ROOT%{_desktopdir}
68
69 %clean
70 rm -rf $RPM_BUILD_ROOT
71
72 %files
73 %defattr(644,root,root,755)
74 %doc gap4r4/doc/*.pdf gap4r4/doc/htm
75 %attr(755,root,root) %{_bindir}/*
76 %{_datadir}/gap
77 %{_desktopdir}/%{name}.desktop
This page took 0.09967 seconds and 4 git commands to generate.