1 |
johnpye |
438 |
Name: ascend |
2 |
johnpye |
601 |
Summary: ASCEND modelling environment |
3 |
johnpye |
438 |
Version: @VERSION@ |
4 |
|
|
|
5 |
johnpye |
656 |
# Use release 0.* so that other users can do patch releases with a higher number |
6 |
johnpye |
657 |
# and still have the update occur automatically. |
7 |
johnpye |
656 |
Release: @RELEASE@ |
8 |
johnpye |
438 |
|
9 |
|
|
License: GPL |
10 |
johnpye |
555 |
Group: Applications/Engineering |
11 |
johnpye |
601 |
Source: @DISTTAR_NAME@.tar.bz2 |
12 |
|
|
URL: http://ascend.cheme.cmu.edu/ |
13 |
johnpye |
438 |
|
14 |
|
|
Prefix: %{_prefix} |
15 |
johnpye |
546 |
Packager: John Pye |
16 |
|
|
Vendor: Carnegie Mellon University |
17 |
johnpye |
438 |
BuildRoot: %{_tmppath}/%{name}-%{version}-root |
18 |
|
|
|
19 |
johnpye |
446 |
BuildRequires: python >= 2.4, python-devel |
20 |
johnpye |
546 |
BuildRequires: scons >= 0.96.1 |
21 |
johnpye |
446 |
BuildRequires: bison, flex |
22 |
|
|
BuildRequires: swig >= 1.3.24 |
23 |
|
|
BuildRequires: desktop-file-utils |
24 |
johnpye |
561 |
BuildRequires: tk-devel < 8.5 |
25 |
|
|
BuildRequires: tcl-devel < 8.5 |
26 |
|
|
BuildRequires: tktable < 2.10, tktable >= 2.8 |
27 |
johnpye |
446 |
|
28 |
johnpye |
440 |
Requires: python >= 2.4 |
29 |
johnpye |
562 |
Requires: pygtk2 >= 2.6 |
30 |
|
|
Requires: pygtk2-libglade |
31 |
|
|
Requires: python-matplotlib |
32 |
|
|
Requires: python-numeric |
33 |
johnpye |
446 |
Requires: gtksourceview |
34 |
johnpye |
655 |
Requires: xgraph >= 11 |
35 |
johnpye |
440 |
|
36 |
johnpye |
438 |
%description |
37 |
|
|
ASCEND IV is both a large-scale object-oriented mathematical |
38 |
|
|
modeling environment and a strongly typed mathematical modeling |
39 |
|
|
language. Although ASCEND has primarily been developed by Chemical |
40 |
|
|
Engineers, great care has been exercised to assure that it is |
41 |
|
|
domain independent. ASCEND can support modeling activities in |
42 |
|
|
fields from Architecture to (computational) Zoology. |
43 |
|
|
|
44 |
johnpye |
555 |
#%package -n ascend-python |
45 |
|
|
#Version: @VERSION@ |
46 |
|
|
#Summary: PyGTK user interface for ASCEND |
47 |
|
|
#Group: Applications/Engineering |
48 |
|
|
# |
49 |
|
|
#%description -n ascend-python |
50 |
|
|
#PyGTK user interface for ASCEND. This is a new interface that follows GNOME |
51 |
|
|
#human interface guidelines as closely as possible. It does not as yet provide |
52 |
|
|
#access to all of the ASCEND functionality provided by the Tcl/Tk interface. |
53 |
|
|
# |
54 |
|
|
#%package -n ascend-tcltk |
55 |
|
|
#Version: @VERSION@ |
56 |
|
|
#Summary: Tcl/Tk user interface for ASCEND |
57 |
|
|
#Group: Applications/Engineering |
58 |
|
|
# |
59 |
|
|
#%description -n ascend-tcltk |
60 |
|
|
#Tcl/Tk user interface for ASCEND. This is the original ASCEND IV interface |
61 |
|
|
#and is a more complete and mature interface than the alternative PyGTK |
62 |
|
|
#interface. Use this interface if you need to use ASCEND *.a4s files or other |
63 |
|
|
#functionality not provided by the PyGTK interface. |
64 |
|
|
|
65 |
johnpye |
438 |
%prep |
66 |
johnpye |
602 |
%setup -q -n @DISTTAR_NAME@ |
67 |
johnpye |
438 |
|
68 |
|
|
%build |
69 |
johnpye |
656 |
scons %{?_smp_mflags} DEFAULT_ASCENDLIBRARY=%{_datadir}/ascend/models INSTALL_ROOT=%{buildroot} INSTALL_PREFIX=%{_prefix} INSTALL_SHARE=%{_datadir} INSTALL_BIN=%{_bindir} INSTALL_INCLUDE=%{_includedir} TCL=/usr TCL_LIB=tcl8.4 TK_LIB=tk8.4 WITH_SOLVERS=QRSLV,LSOD,CMSLV pygtk tcltk |
70 |
johnpye |
438 |
|
71 |
|
|
%install |
72 |
|
|
rm -rf %{buildroot} |
73 |
johnpye |
653 |
scons %{?_smp_mflags} install |
74 |
johnpye |
438 |
|
75 |
johnpye |
651 |
# Install menu entry for PyGTK interface, gtksourceview syntax highlighting, and MIME definition |
76 |
johnpye |
532 |
pushd pygtk/gnome |
77 |
johnpye |
564 |
install -m 644 -D ascend.desktop %{buildroot}/%{_datadir}/applications/ascend.desktop |
78 |
|
|
install -m 644 -D ascend.png %{buildroot}/%{_datadir}/icons/ascend-app.png |
79 |
|
|
install -m 644 -D ascend.png %{buildroot}/%{_datadir}/icons/hicolor/64x64/ascend.png |
80 |
|
|
install -m 644 -D ascend.xml %{buildroot}/%{_datadir}/mime/packages/ascend.xml |
81 |
|
|
install -m 644 -D ascend.lang %{buildroot}/%{_datadir}/gtksourceview-1.0/language-specs/ascend.lang |
82 |
johnpye |
446 |
popd |
83 |
|
|
|
84 |
johnpye |
651 |
# Install menu entry for Tcl/Tk interface |
85 |
|
|
pushd tcltk/gnome |
86 |
|
|
install -m 644 -D ascend4.desktop %{buildroot}/%{_datadir}/applications/ascend4.desktop |
87 |
|
|
install -m 644 -D ascend4.png %{buildroot}/%{_datadir}/icons/ascend4-app.png |
88 |
|
|
install -m 644 -D ascend4.png %{buildroot}/%{_datadir}/icons/hicolor/64x64/ascend4.png |
89 |
|
|
popd |
90 |
|
|
|
91 |
johnpye |
438 |
%clean |
92 |
|
|
rm -rf %{buildroot} |
93 |
|
|
|
94 |
johnpye |
448 |
%post |
95 |
|
|
update-desktop-database |
96 |
|
|
update-mime-database /usr/share/mime |
97 |
|
|
|
98 |
|
|
%postun |
99 |
|
|
update-desktop-database |
100 |
|
|
update-mime-database /usr/share/mime |
101 |
|
|
|
102 |
johnpye |
438 |
%files |
103 |
|
|
%defattr(-, root, root) |
104 |
johnpye |
560 |
%doc INSTALL.txt LICENSE.txt |
105 |
johnpye |
557 |
%{_datadir}/ascend/models |
106 |
johnpye |
554 |
%{_libdir}/libascend.so |
107 |
johnpye |
652 |
%{_datadir}/mime/packages/ascend.xml |
108 |
|
|
%{_datadir}/gtksourceview-1.0/language-specs/ascend.lang |
109 |
johnpye |
554 |
|
110 |
johnpye |
555 |
# %package -n ascend-python |
111 |
johnpye |
438 |
%{_bindir}/ascend |
112 |
johnpye |
557 |
%{_datadir}/ascend/*.py |
113 |
johnpye |
562 |
%{_datadir}/ascend/*.pyc |
114 |
|
|
%{_datadir}/ascend/*.pyo |
115 |
johnpye |
557 |
%{_datadir}/ascend/glade |
116 |
johnpye |
562 |
%{_datadir}/ascend/_ascpy.so |
117 |
johnpye |
652 |
%{_datadir}/applications/ascend.desktop |
118 |
|
|
%{_datadir}/icons/ascend-app.png |
119 |
|
|
%{_datadir}/icons/hicolor/64x64/ascend.png |
120 |
johnpye |
438 |
|
121 |
johnpye |
555 |
# %package -n ascend-tcltk |
122 |
johnpye |
554 |
%{_bindir}/ascend4 |
123 |
|
|
%{_datadir}/ascend/tcltk |
124 |
|
|
%{_libdir}/libascendtcl.so |
125 |
johnpye |
652 |
%{_datadir}/applications/ascend4.desktop |
126 |
|
|
%{_datadir}/icons/ascend4-app.png |
127 |
|
|
%{_datadir}/icons/hicolor/64x64/ascend4.png |
128 |
johnpye |
448 |
|
129 |
johnpye |
438 |
%changelog |
130 |
johnpye |
652 |
* Thu Jun 01 2006 John Pye <john.pye@student.unsw.edu.au> |
131 |
|
|
- Add Tcl/Tk interface to GNOME menu |
132 |
|
|
|
133 |
johnpye |
554 |
* Tue May 02 2006 John Pye <john.pye@student.unsw.edu.au> |
134 |
|
|
- Break out ascend-core, ascend-python and ascend-tcltk packages. |
135 |
|
|
|
136 |
johnpye |
532 |
* Mon Apr 24 2006 John Pye <john.pye@student.unsw.edu.au> |
137 |
|
|
- Modified for removed dir in pygtk source hierachy |
138 |
|
|
|
139 |
johnpye |
438 |
* Thu Apr 04 2006 John Pye <john.pye@student.unsw.edu.au> |
140 |
|
|
- First RPM package for new SCons build |