1 |
Name: ascend |
2 |
Summary: ASCEND modelling environment |
3 |
Version: @VERSION@ |
4 |
|
5 |
# Use release 0.* so that other users can do patch releases with a higher number |
6 |
# and still have the update occur automatically. |
7 |
Release: @RELEASE@%{?dist} |
8 |
|
9 |
|
10 |
License: GPL |
11 |
Group: Applications/Engineering |
12 |
Source: @DISTTAR_NAME@.tar.bz2 |
13 |
URL: http://ascend.cheme.cmu.edu/ |
14 |
|
15 |
Prefix: %{_prefix} |
16 |
Packager: John Pye |
17 |
Vendor: Carnegie Mellon University |
18 |
BuildRoot: %{_tmppath}/%{name}-%{version}-root |
19 |
|
20 |
%description |
21 |
ASCEND IV is both a large-scale object-oriented mathematical |
22 |
modeling environment and a strongly typed mathematical modeling |
23 |
language. Although ASCEND has primarily been developed by Chemical |
24 |
Engineers, great care has been exercised to assure that it is |
25 |
domain independent. ASCEND can support modeling activities in |
26 |
fields from Architecture to (computational) Zoology. |
27 |
|
28 |
#----------build dependencies------------ |
29 |
|
30 |
# ...general |
31 |
BuildRequires: scons >= 0.96.92 |
32 |
BuildRequires: bison >= 2.0 |
33 |
BuildRequires: flex >= 2.5.4 |
34 |
BuildRequires: swig >= 1.3.24 |
35 |
BuildRequires: gcc-gfortran |
36 |
BuildRequires: libgfortran |
37 |
BuildRequires: blas-devel |
38 |
BuildRequires: sundials >= 2.2.0 |
39 |
BuildRequires: conopt >= 3.14 |
40 |
|
41 |
# ...pygtk |
42 |
BuildRequires: python-devel >= 2.4 |
43 |
|
44 |
# ... tcl/tk |
45 |
BuildRequires: tk-devel >= 8.3, tcl-devel >= 8.3 |
46 |
BuildRequires: tktable < 2.10, tktable >= 2.8 |
47 |
|
48 |
# ... GNOME |
49 |
BuildRequires: desktop-file-utils |
50 |
|
51 |
# ... documentation |
52 |
#BuildRequires: lyx |
53 |
#BuildRequires: tetex lmodern |
54 |
|
55 |
#-----------runtime dependencies----------- |
56 |
|
57 |
# ...general |
58 |
Requires: gtksourceview |
59 |
Requires: blas |
60 |
# sundials will be statically linked |
61 |
|
62 |
# ...pygtk |
63 |
Requires: python >= 2.4 |
64 |
Requires: pygtk2 >= 2.6 |
65 |
Requires: pygtk2-libglade |
66 |
Requires: python-matplotlib |
67 |
Requires: numpy |
68 |
Requires: ipython |
69 |
|
70 |
# ...tcl/tk |
71 |
Requires: xgraph >= 11 |
72 |
Requires: tcl >= 8.3 |
73 |
Requires: tk >= 8.3 |
74 |
Requires: tktable < 2.10, tktable >= 2.8 |
75 |
|
76 |
#------------------------------------------ |
77 |
|
78 |
Provides: ascend-gui |
79 |
|
80 |
# for the moment we'll just make one big super-package, to keep things |
81 |
# simple for end-users. |
82 |
|
83 |
#%package -n ascend-python |
84 |
#Version: @VERSION@ |
85 |
#Summary: PyGTK user interface for ASCEND |
86 |
#Group: Applications/Engineering |
87 |
# |
88 |
#%description -n ascend-python |
89 |
#PyGTK user interface for ASCEND. This is a new interface that follows GNOME |
90 |
#human interface guidelines as closely as possible. It does not as yet provide |
91 |
#access to all of the ASCEND functionality provided by the Tcl/Tk interface. |
92 |
# |
93 |
#%package -n ascend-tcltk |
94 |
#Version: @VERSION@ |
95 |
#Summary: Tcl/Tk user interface for ASCEND |
96 |
#Group: Applications/Engineering |
97 |
# |
98 |
#%description -n ascend-tcltk |
99 |
#Tcl/Tk user interface for ASCEND. This is the original ASCEND IV interface |
100 |
#and is a more complete and mature interface than the alternative PyGTK |
101 |
#interface. Use this interface if you need to use ASCEND *.a4s files or other |
102 |
#functionality not provided by the PyGTK interface. |
103 |
|
104 |
%prep |
105 |
%setup -q -n @DISTTAR_NAME@ |
106 |
|
107 |
%build |
108 |
scons %{_smp_mflags} DEFAULT_ASCENDLIBRARY=%{_datadir}/ascend/models \ |
109 |
INSTALL_ROOT=%{buildroot} \ |
110 |
INSTALL_PREFIX=%{_prefix} \ |
111 |
INSTALL_SHARE=%{_datadir} \ |
112 |
INSTALL_BIN=%{_bindir} \ |
113 |
INSTALL_INCLUDE=%{_includedir} \ |
114 |
WITH_SOLVERS=QRSLV,LSOD,CMSLV,IDA,LRSLV,CONOPT \ |
115 |
ABSOLUTE_PATHS=1 \ |
116 |
pygtk tcltk |
117 |
|
118 |
%install |
119 |
rm -rf %{buildroot} |
120 |
scons %{_smp_mflags} install |
121 |
|
122 |
# Install menu entry for PyGTK interface, gtksourceview syntax highlighting, and MIME definition |
123 |
pushd pygtk/gnome |
124 |
install -m 644 -D ascend.desktop %{buildroot}/%{_datadir}/applications/ascend.desktop |
125 |
install -m 644 -D ascend.png %{buildroot}/%{_datadir}/icons/ascend-app.png |
126 |
install -m 644 -D ascend.png %{buildroot}/%{_datadir}/icons/hicolor/64x64/ascend.png |
127 |
install -m 644 -D ascend.xml %{buildroot}/%{_datadir}/mime/packages/ascend.xml |
128 |
popd |
129 |
pushd tools/gedit |
130 |
install -m 644 -D ascend.lang %{buildroot}/%{_datadir}/gtksourceview-1.0/language-specs/ascend.lang |
131 |
popd |
132 |
|
133 |
# Install menu entry for Tcl/Tk interface |
134 |
pushd tcltk/gnome |
135 |
install -m 644 -D ascend4.desktop %{buildroot}/%{_datadir}/applications/ascend4.desktop |
136 |
install -m 644 -D ascend4.png %{buildroot}/%{_datadir}/icons/ascend4-app.png |
137 |
install -m 644 -D ascend4.png %{buildroot}/%{_datadir}/icons/hicolor/64x64/ascend4.png |
138 |
popd |
139 |
|
140 |
%clean |
141 |
rm -rf %{buildroot} |
142 |
|
143 |
%post |
144 |
update-desktop-database |
145 |
update-mime-database /usr/share/mime |
146 |
|
147 |
%postun |
148 |
update-desktop-database |
149 |
update-mime-database /usr/share/mime |
150 |
|
151 |
%files |
152 |
%defattr(-, root, root) |
153 |
%doc INSTALL.txt LICENSE.txt |
154 |
%{_datadir}/ascend/book.pdf |
155 |
|
156 |
%{_bindir}/ascend-config |
157 |
%{_datadir}/ascend/models |
158 |
%{_libdir}/libascend.so |
159 |
%{_datadir}/mime/packages/ascend.xml |
160 |
%{_datadir}/gtksourceview-1.0/language-specs/ascend.lang |
161 |
|
162 |
# %package -n ascend-python |
163 |
%{_bindir}/ascend |
164 |
%{_datadir}/ascend/*.py |
165 |
%{_datadir}/ascend/*.pyc |
166 |
%{_datadir}/ascend/*.pyo |
167 |
%{_datadir}/ascend/glade |
168 |
%{_datadir}/ascend/_ascpy.so |
169 |
%{_datadir}/applications/ascend.desktop |
170 |
%{_datadir}/icons/ascend-app.png |
171 |
%{_datadir}/icons/hicolor/64x64/ascend.png |
172 |
|
173 |
# %package -n ascend-tcltk |
174 |
%{_bindir}/ascend4 |
175 |
%{_datadir}/ascend/tcltk |
176 |
%{_libdir}/libascendtcl.so |
177 |
%{_datadir}/applications/ascend4.desktop |
178 |
%{_datadir}/icons/ascend4-app.png |
179 |
%{_datadir}/icons/hicolor/64x64/ascend4.png |
180 |
|
181 |
# %package -b ascend-devel |
182 |
%{_includedir}/compiler |
183 |
%{_includedir}/general |
184 |
%{_includedir}/utilities |
185 |
%{_includedir}/solver |
186 |
%{_includedir}/linear |
187 |
%{_includedir}/integrator |
188 |
%{_includedir}/system |
189 |
|
190 |
%changelog |
191 |
* Mon Apr 23 2007 John Pye <john.pye@student.unsw.edu.au> 0.9.5.108 |
192 |
- File ascend.lang has moved. |
193 |
- book.pdf is included in package. |
194 |
- some header files have been moved. |
195 |
|
196 |
* Fri Jul 28 2006 John Pye <john.pye@student.unsw.edu.au> |
197 |
- Added CONOPT support |
198 |
|
199 |
* Wed Jul 12 2006 John Pye <john.pye@student.unsw.edu.au> |
200 |
- Fixed fortran linking |
201 |
- Removed ccache dependency |
202 |
- Added xgraph dependency |
203 |
- Added 'include' files plus 'ascend-config' script |
204 |
|
205 |
* Thu Jun 01 2006 John Pye <john.pye@student.unsw.edu.au> |
206 |
- Add Tcl/Tk interface to GNOME menu |
207 |
|
208 |
* Tue May 02 2006 John Pye <john.pye@student.unsw.edu.au> |
209 |
- Break out ascend-core, ascend-python and ascend-tcltk packages. |
210 |
|
211 |
* Mon Apr 24 2006 John Pye <john.pye@student.unsw.edu.au> |
212 |
- Modified for removed dir in pygtk source hierachy |
213 |
|
214 |
* Thu Apr 04 2006 John Pye <john.pye@student.unsw.edu.au> |
215 |
- First RPM package for new SCons build |