File: README.rpms

package info (click to toggle)
maxima 5.27.0-3
  • links: PTS
  • area: main
  • in suites: wheezy
  • size: 120,648 kB
  • sloc: lisp: 322,503; fortran: 14,666; perl: 14,343; tcl: 11,031; sh: 4,146; makefile: 2,047; ansic: 471; awk: 24; sed: 10
file content (63 lines) | stat: -rw-r--r-- 1,755 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
Installing rpms
===============

There are three Maxima binary rpms:
maxima, maxima-exec-cmucl, and maxima-xmaxima.

The maxima and maxima-exec-cmucl rpms must be installed together.

maxima-exec rpms for other Lisp versions can also be installed,
although you'll probably have to build them yourself.

The maxima-xmaxima rpm is optional. Xmaxima is a Maxima GUI.


Building rpms
=============

You can build rpm files from an unpacked tarball or cvs sandbox.

(0) Go to the Maxima directory.

    $ cd sandbox/maxima  # or whatever is your top-level maxima directory

(1) Set the version number.
    
    Open ./configure.in and change the AM_INIT_AUTOMAKE line.
    (This is the only way I know to change the version number.)

    Optionally -- open ./maxima.spec.in and increment the `Release' number.
    (This number is appended to the version number.)

(2) Select Lisp version.

    Open ./maxima.spec.in.

    Change all `%define enable_<whatever>' to `0'
    except for the selected Lisp; make that `1'.

    Change all `%define <whatever>_flags' to `--disable-<whatever>'
    except for the selected Lisp; make that `--enable-<whatever>'.

(3) Generate the rpm spec file.

    $ make maxima.spec

(4) Generate a source tarball.

    $ make dist-gzip

    May need to invoke superuser privileges here (if /usr/src/local not writeable).

    $ mv maxima-<release number>.tar.gz /usr/src/local/SOURCES

(5) Build rpms.

    The maxima.spec file builds three binary rpms:
    maxima, maxima-xmaxima, and maxima-exec-<whatever>.

    May need to invoke superuser privileges here (if /usr/src/local not writeable).

    $ rpmbuild -ba ./maxima.spec  # build source rpm and three binary rpms

    $ rpmbuild -bb ./maxima.spec  # build three binary rpms