| 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@ |
| 8 |
|
| 9 |
License: GPL |
| 10 |
Group: Applications/Engineering |
| 11 |
Source: @DISTTAR_NAME@.tar.bz2 |
| 12 |
URL: http://ascend.cheme.cmu.edu/ |
| 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.91 |
| 21 |
BuildRequires: bison >= 2.0 |
| 22 |
BuildRequires: flex >= 2.5.4 |
| 23 |
BuildRequires: swig >= 1.3.24 |
| 24 |
BuildRequires: tk-devel >= 8.3, tcl-devel >= 8.3 |
| 25 |
BuildRequires: tktable < 2.10, tktable >= 2.8 |
| 26 |
BuildRequires: desktop-file-utils |
| 27 |
BuildRequires: sundials >= 2.2.1 |
| 28 |
BuildRequires: conopt >= 3.14 |
| 29 |
|
| 30 |
# This contains the libg2c library; which on FC5 is not in the path, unfort. |
| 31 |
BuildRequires: compat-gcc-32-g77 == 3.2.3 |
| 32 |
|
| 33 |
Requires: python >= 2.4 |
| 34 |
Requires: pygtk2 >= 2.6 |
| 35 |
Requires: pygtk2-libglade |
| 36 |
Requires: python-matplotlib |
| 37 |
Requires: python-numeric |
| 38 |
Requires: gtksourceview |
| 39 |
Requires: xgraph >= 11 |
| 40 |
# sundials is statically linked (hopefully) |
| 41 |
|
| 42 |
%description |
| 43 |
ASCEND IV is both a large-scale object-oriented mathematical |
| 44 |
modeling environment and a strongly typed mathematical modeling |
| 45 |
language. Although ASCEND has primarily been developed by Chemical |
| 46 |
Engineers, great care has been exercised to assure that it is |
| 47 |
domain independent. ASCEND can support modeling activities in |
| 48 |
fields from Architecture to (computational) Zoology. |
| 49 |
|
| 50 |
#%package -n ascend-python |
| 51 |
#Version: @VERSION@ |
| 52 |
#Summary: PyGTK user interface for ASCEND |
| 53 |
#Group: Applications/Engineering |
| 54 |
# |
| 55 |
#%description -n ascend-python |
| 56 |
#PyGTK user interface for ASCEND. This is a new interface that follows GNOME |
| 57 |
#human interface guidelines as closely as possible. It does not as yet provide |
| 58 |
#access to all of the ASCEND functionality provided by the Tcl/Tk interface. |
| 59 |
# |
| 60 |
#%package -n ascend-tcltk |
| 61 |
#Version: @VERSION@ |
| 62 |
#Summary: Tcl/Tk user interface for ASCEND |
| 63 |
#Group: Applications/Engineering |
| 64 |
# |
| 65 |
#%description -n ascend-tcltk |
| 66 |
#Tcl/Tk user interface for ASCEND. This is the original ASCEND IV interface |
| 67 |
#and is a more complete and mature interface than the alternative PyGTK |
| 68 |
#interface. Use this interface if you need to use ASCEND *.a4s files or other |
| 69 |
#functionality not provided by the PyGTK interface. |
| 70 |
|
| 71 |
%prep |
| 72 |
%setup -q -n @DISTTAR_NAME@ |
| 73 |
|
| 74 |
%build |
| 75 |
scons %{_smp_mflags} DEFAULT_ASCENDLIBRARY=%{_datadir}/ascend/models \ |
| 76 |
INSTALL_ROOT=%{buildroot} \ |
| 77 |
INSTALL_PREFIX=%{_prefix} \ |
| 78 |
INSTALL_SHARE=%{_datadir} \ |
| 79 |
INSTALL_BIN=%{_bindir} \ |
| 80 |
INSTALL_INCLUDE=%{_includedir} \ |
| 81 |
F2C_LIBPATH=/usr/lib/gcc-lib/i386-redhat-linux/3.2.3/ \ |
| 82 |
WITH_SOLVERS=QRSLV,LSOD,CMSLV,LRSLV,CONOPT \ |
| 83 |
pygtk tcltk |
| 84 |
|
| 85 |
%install |
| 86 |
rm -rf %{buildroot} |
| 87 |
scons %{_smp_mflags} install |
| 88 |
|
| 89 |
# Install menu entry for PyGTK interface, gtksourceview syntax highlighting, and MIME definition |
| 90 |
pushd pygtk/gnome |
| 91 |
install -m 644 -D ascend.desktop %{buildroot}/%{_datadir}/applications/ascend.desktop |
| 92 |
install -m 644 -D ascend.png %{buildroot}/%{_datadir}/icons/ascend-app.png |
| 93 |
install -m 644 -D ascend.png %{buildroot}/%{_datadir}/icons/hicolor/64x64/ascend.png |
| 94 |
install -m 644 -D ascend.xml %{buildroot}/%{_datadir}/mime/packages/ascend.xml |
| 95 |
install -m 644 -D ascend.lang %{buildroot}/%{_datadir}/gtksourceview-1.0/language-specs/ascend.lang |
| 96 |
popd |
| 97 |
|
| 98 |
# Install menu entry for Tcl/Tk interface |
| 99 |
pushd tcltk/gnome |
| 100 |
install -m 644 -D ascend4.desktop %{buildroot}/%{_datadir}/applications/ascend4.desktop |
| 101 |
install -m 644 -D ascend4.png %{buildroot}/%{_datadir}/icons/ascend4-app.png |
| 102 |
install -m 644 -D ascend4.png %{buildroot}/%{_datadir}/icons/hicolor/64x64/ascend4.png |
| 103 |
popd |
| 104 |
|
| 105 |
%clean |
| 106 |
rm -rf %{buildroot} |
| 107 |
|
| 108 |
%post |
| 109 |
update-desktop-database |
| 110 |
update-mime-database /usr/share/mime |
| 111 |
|
| 112 |
%postun |
| 113 |
update-desktop-database |
| 114 |
update-mime-database /usr/share/mime |
| 115 |
|
| 116 |
%files |
| 117 |
%defattr(-, root, root) |
| 118 |
%doc INSTALL.txt LICENSE.txt |
| 119 |
%{_bindir}/ascend-config |
| 120 |
%{_datadir}/ascend/models |
| 121 |
%{_libdir}/libascend.so |
| 122 |
%{_datadir}/mime/packages/ascend.xml |
| 123 |
%{_datadir}/gtksourceview-1.0/language-specs/ascend.lang |
| 124 |
|
| 125 |
# %package -n ascend-python |
| 126 |
%{_bindir}/ascend |
| 127 |
%{_datadir}/ascend/*.py |
| 128 |
%{_datadir}/ascend/*.pyc |
| 129 |
%{_datadir}/ascend/*.pyo |
| 130 |
%{_datadir}/ascend/glade |
| 131 |
%{_datadir}/ascend/_ascpy.so |
| 132 |
%{_datadir}/applications/ascend.desktop |
| 133 |
%{_datadir}/icons/ascend-app.png |
| 134 |
%{_datadir}/icons/hicolor/64x64/ascend.png |
| 135 |
|
| 136 |
# %package -n ascend-tcltk |
| 137 |
%{_bindir}/ascend4 |
| 138 |
%{_datadir}/ascend/tcltk |
| 139 |
%{_libdir}/libascendtcl.so |
| 140 |
%{_datadir}/applications/ascend4.desktop |
| 141 |
%{_datadir}/icons/ascend4-app.png |
| 142 |
%{_datadir}/icons/hicolor/64x64/ascend4.png |
| 143 |
|
| 144 |
# %package -b ascend-devel |
| 145 |
%{_includedir}/compiler |
| 146 |
%{_includedir}/general |
| 147 |
%{_includedir}/utilities |
| 148 |
%{_includedir}/solver |
| 149 |
|
| 150 |
%changelog |
| 151 |
* Fri Jul 28 2006 John Pye <john.pye@student.unsw.edu.au> |
| 152 |
- Added CONOPT support |
| 153 |
|
| 154 |
* Wed Jul 12 2006 John Pye <john.pye@student.unsw.edu.au> |
| 155 |
- Fixed fortran linking |
| 156 |
- Removed ccache dependency |
| 157 |
- Added xgraph dependency |
| 158 |
- Added 'include' files plus 'ascend-config' script |
| 159 |
|
| 160 |
* Thu Jun 01 2006 John Pye <john.pye@student.unsw.edu.au> |
| 161 |
- Add Tcl/Tk interface to GNOME menu |
| 162 |
|
| 163 |
* Tue May 02 2006 John Pye <john.pye@student.unsw.edu.au> |
| 164 |
- Break out ascend-core, ascend-python and ascend-tcltk packages. |
| 165 |
|
| 166 |
* Mon Apr 24 2006 John Pye <john.pye@student.unsw.edu.au> |
| 167 |
- Modified for removed dir in pygtk source hierachy |
| 168 |
|
| 169 |
* Thu Apr 04 2006 John Pye <john.pye@student.unsw.edu.au> |
| 170 |
- First RPM package for new SCons build |