File: jacal.spec

package info (click to toggle)
jacal 1c7-2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 1,068 kB
  • sloc: lisp: 6,489; sh: 419; makefile: 315
file content (84 lines) | stat: -rw-r--r-- 2,546 bytes parent folder | download
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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
%define name jacal
%define version 1c7
%define release 1

Name:         %{name}
Release:      %{release}
Version:      %{version}
Packager:     Aubrey Jaffer <agj @ alum.mit.edu>

License:      GPL
Vendor:       Aubrey Jaffer <agj @ alum.mit.edu>
Group:        Sciences/Mathematics
Provides:     jacal
BuildArch:    noarch
Requires:     slib

Summary:      The JACAL Symbolic Math System
Source:       http://groups.csail.mit.edu/mac/ftpdir/scm/jacal-%{version}.zip
URL:          http://people.csail.mit.edu/jaffer/JACAL.html
BuildRoot:    %{_tmppath}/%{name}-%{version}
Prefix:       %{_prefix}

%description
JACAL is an interactive symbolic mathematics program. JACAL can
manipulate and simplify equations, scalars, vectors, and matrices of
single and multiple valued algebraic expressions containing numbers,
variables, radicals, and algebraic differential, and holonomic
functions.

#%define __os_install_post /usr/lib/rpm/brp-compress

%prep
%setup -n jacal -c -T
cd ..
unzip ${RPM_SOURCE_DIR}/jacal-%{version}.zip

%build


%install

make	prefix=${RPM_BUILD_ROOT}%{prefix}/ \
	mandir=${RPM_BUILD_ROOT}%{_mandir}/ \
	infodir=${RPM_BUILD_ROOT}%{_infodir}/ \
	install

echo "(use-modules (ice-9 slib))">${RPM_BUILD_ROOT}%{prefix}/lib/jacal/guile.scm
echo "(slib:load \"%{prefix}/lib/jacal/math\")">>${RPM_BUILD_ROOT}%{prefix}/lib/jacal/guile.scm
echo "(math)"			>>${RPM_BUILD_ROOT}%{prefix}/lib/jacal/guile.scm
echo "(slib:load \"%{prefix}/lib/jacal/math\")" >${RPM_BUILD_ROOT}%{prefix}/lib/jacal/go.scm
echo "(math)"			>>${RPM_BUILD_ROOT}%{prefix}/lib/jacal/go.scm
mkdir -p ${RPM_BUILD_ROOT}%{prefix}/bin
echo '#! /bin/sh'		> ${RPM_BUILD_ROOT}%{prefix}/bin/jacal
echo JACALDIR=%{prefix}/lib/jacal/>> ${RPM_BUILD_ROOT}%{prefix}/bin/jacal
echo VERSION=%{version}		>> ${RPM_BUILD_ROOT}%{prefix}/bin/jacal
cat jacal.sh 			>> ${RPM_BUILD_ROOT}%{prefix}/bin/jacal
chmod +x ${RPM_BUILD_ROOT}%{prefix}/bin/jacal

%clean
rm -rf $RPM_BUILD_ROOT

%post
/sbin/install-info %{_infodir}/jacal.info.* %{_infodir}/dir

%files
%defattr(-, root, root)
%{prefix}/bin/jacal
%dir %{prefix}/lib/jacal
%{prefix}/lib/jacal/*.scm
%{prefix}/lib/jacal/jacalcat
%{prefix}/lib/jacal/COPYING
%{prefix}/lib/jacal/HELP
%{prefix}/lib/jacal/Makefile
%{_mandir}/man1/jacal.1.gz
%{_infodir}/jacal.info.gz
%{_infodir}/dir

%doc ANNOUNCE ChangeLog README COPYING demo test.math rw.math DOC/algdenom DOC/grammar DOC/history DOC/lambda DOC/ratint.pdf


%changelog
* Thu Aug 30 2001     Bo Forslund  <bo.forslund @ abc.se>
- Make more use of macros.
- Install COPYING and HELP file.