1 |
|
2 |
Name: ascend |
3 |
Summary: ASCEND Modelling Environment |
4 |
Version: 0.9-svn.601 |
5 |
|
6 |
# Use release "0" so that distro-released versions will override ours. |
7 |
Release: 0.jdpipe |
8 |
|
9 |
License: GPL |
10 |
Group: Applications/Graphics |
11 |
Source: %{name}-%{version}.tar.bz2 |
12 |
URL: http://inkscape.sourceforge.net/ |
13 |
|
14 |
Prefix: %{_prefix} |
15 |
Packager: John Pye |
16 |
Vendor: Carnegie Mellon University |
17 |
BuildRoot: %{_tmppath}/%{name}-%{version}-root |
18 |
|
19 |
BuildRequires: python >= 2.4, python-devel |
20 |
BuildRequires: scons >= 0.96.1 |
21 |
BuildRequires: bison, flex |
22 |
BuildRequires: swig >= 1.3.24 |
23 |
BuildRequires: desktop-file-utils |
24 |
|
25 |
Requires(post): desktop-file-utils |
26 |
Requires(postun): desktop-file-utils |
27 |
|
28 |
Requires: python >= 2.4 |
29 |
Requires: pygtk2 >= 2.6, pygtk2-libglade |
30 |
Requires: python-matplotlib, python-numeric |
31 |
Requires: gtksourceview |
32 |
Requires: make |
33 |
Requires: gcc |
34 |
|
35 |
%description |
36 |
ASCEND IV is both a large-scale object-oriented mathematical |
37 |
modeling environment and a strongly typed mathematical modeling |
38 |
language. Although ASCEND has primarily been developed by Chemical |
39 |
Engineers, great care has been exercised to assure that it is |
40 |
domain independent. ASCEND can support modeling activities in |
41 |
fields from Architecture to (computational) Zoology. |
42 |
|
43 |
%prep |
44 |
%setup -q |
45 |
|
46 |
%build |
47 |
scons %{?_smp_mflags} DEFAULT_ASCENDLIBRARY=%{_datadir}/ascend/models |
48 |
|
49 |
%install |
50 |
rm -rf %{buildroot} |
51 |
scons DEFAULT_ASCENDLIBRARY=%{_datadir}/ascend/models INSTALL_ROOT=%{buildroot} INSTALL_PREFIX=%{_prefix} INSTALL_DATA=%{_datadir} INSTALL_BIN=%{_bindir} INSTALL_INCLUDE=%{_incdir} install |
52 |
|
53 |
pushd pygtk/gnome |
54 |
install -o root -g root -m 644 -D ascend.desktop %{buildroot}/%{_datadir}/applications/ascend.desktop |
55 |
install -o root -g root -m 644 -D ascend.png %{buildroot}/%{_datadir}/icons/ascend-app.png |
56 |
install -o root -g root -m 644 -D ascend.png %{buildroot}/%{_datadir}/icons/hicolor/64x64/ascend.png |
57 |
install -o root -g root -m 644 -D ascend.xml %{buildroot}/%{_datadir}/mime/packages/ascend.xml |
58 |
install -o root -g root -m 644 -D ascend.lang %{buildroot}/%{_datadir}/gtksourceview-1.0/language-specs/ascend.lang |
59 |
popd |
60 |
|
61 |
%clean |
62 |
rm -rf %{buildroot} |
63 |
|
64 |
%post |
65 |
update-desktop-database |
66 |
update-mime-database /usr/share/mime |
67 |
|
68 |
%postun |
69 |
update-desktop-database |
70 |
update-mime-database /usr/share/mime |
71 |
|
72 |
%files |
73 |
%defattr(-, root, root) |
74 |
%doc INSTALL tcltk98/release_notes/license.txt |
75 |
%{_bindir}/ascend |
76 |
%{_datadir}/applications/ascend.desktop |
77 |
%{_datadir}/ascend/* |
78 |
%{_datadir}/gtksourceview-1.0/language-specs/ascend.lang |
79 |
%{_datadir}/icons/ascend-app.png |
80 |
%{_datadir}/icons/hicolor/64x64/ascend.png |
81 |
%{_datadir}/mime/packages/ascend.xml |
82 |
|
83 |
|
84 |
%changelog |
85 |
* Mon Apr 24 2006 John Pye <john.pye@student.unsw.edu.au> |
86 |
- Modified for removed dir in pygtk source hierachy |
87 |
|
88 |
* Thu Apr 04 2006 John Pye <john.pye@student.unsw.edu.au> |
89 |
- First RPM package for new SCons build |