1 |
|
%define pyver %(python -c 'import sys ; print sys.version[:3]') |
2 |
|
%{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} |
3 |
|
%{!?python_sitearch: %define python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")} |
4 |
|
|
5 |
Name: ascend |
Name: ascend |
6 |
Summary: ASCEND modelling environment |
Summary: ASCEND modelling environment |
7 |
Version: 0.9.5.110 |
Version: 0.9.5.110 |
10 |
# and still have the update occur automatically. |
# and still have the update occur automatically. |
11 |
Release: 0%{?dist} |
Release: 0%{?dist} |
12 |
|
|
|
|
|
13 |
License: GPL |
License: GPL |
14 |
Group: Applications/Engineering |
Group: Applications/Engineering |
15 |
Source: ascend-0.9.5.110.tar.bz2 |
Source: ascend-0.9.5.110.tar.bz2 |
18 |
Prefix: %{_prefix} |
Prefix: %{_prefix} |
19 |
Packager: John Pye |
Packager: John Pye |
20 |
Vendor: Carnegie Mellon University |
Vendor: Carnegie Mellon University |
21 |
BuildRoot: %{_tmppath}/%{name}-%{version}-root |
|
22 |
|
Buildroot: /var/tmp/%{name}-buildroot |
23 |
|
|
24 |
%description |
%description |
25 |
ASCEND IV is both a large-scale object-oriented mathematical |
ASCEND IV is both a large-scale object-oriented mathematical |
118 |
INSTALL_BIN=%{_bindir} \ |
INSTALL_BIN=%{_bindir} \ |
119 |
INSTALL_INCLUDE=%{_includedir} \ |
INSTALL_INCLUDE=%{_includedir} \ |
120 |
WITH_SOLVERS=QRSLV,LSOD,CMSLV,IDA,LRSLV,CONOPT \ |
WITH_SOLVERS=QRSLV,LSOD,CMSLV,IDA,LRSLV,CONOPT \ |
121 |
WITH_LOCAL_DOC=1 \ |
INSTALL_DOC=%{_docdir}/%{name}-%{version} \ |
122 |
INSTALL_DOC=%{_datadir}/doc/%{name}-%{version} \ |
WITH_DOC_BUILD=0 \ |
123 |
|
WITH_DOC_INSTALL=0 \ |
124 |
ABSOLUTE_PATHS=1 \ |
ABSOLUTE_PATHS=1 \ |
125 |
|
CC="%{?ccache} gcc" \ |
126 |
|
CXX="%{?ccache} g++" \ |
127 |
pygtk tcltk |
pygtk tcltk |
128 |
|
|
129 |
%install |
%install |
141 |
install -m 644 -D ascend.lang %{buildroot}/%{_datadir}/gtksourceview-1.0/language-specs/ascend.lang |
install -m 644 -D ascend.lang %{buildroot}/%{_datadir}/gtksourceview-1.0/language-specs/ascend.lang |
142 |
popd |
popd |
143 |
|
|
144 |
|
# TODO... |
145 |
|
#%__python -c 'from compileall import *; compile_dir("'$RPM_BUILD_ROOT'/%{python_sitelib}",10,"%{python_sitelib}")' |
146 |
|
#%__python -O -c 'from compileall import *; compile_dir("'$RPM_BUILD_ROOT'/%{python_sitelib}",10,"%{python_sitelib}")' |
147 |
|
|
148 |
# Install menu entry for Tcl/Tk interface |
# Install menu entry for Tcl/Tk interface |
149 |
pushd tcltk/gnome |
pushd tcltk/gnome |
150 |
install -m 644 -D ascend4.desktop %{buildroot}/%{_datadir}/applications/ascend4.desktop |
install -m 644 -D ascend4.desktop %{buildroot}/%{_datadir}/applications/ascend4.desktop |
166 |
%files |
%files |
167 |
%defattr(-, root, root) |
%defattr(-, root, root) |
168 |
%doc INSTALL.txt LICENSE.txt |
%doc INSTALL.txt LICENSE.txt |
169 |
%{_datadir}/doc/%{name}-%{version}/book.pdf |
%doc doc/book.pdf |
170 |
|
|
171 |
%{_bindir}/ascend-config |
%{_bindir}/ascend-config |
172 |
%{_datadir}/ascend/models |
%{_datadir}/ascend/models |