/[ascend]/branches/fprops2/ascend.spec
ViewVC logotype

Diff of /branches/fprops2/ascend.spec

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1608 by jpye, Thu Aug 30 01:31:05 2007 UTC revision 1790 by jpye, Tue Jun 17 08:46:23 2008 UTC
# Line 1  Line 1 
1  Name:       ascend  Name:       ascend
2  Summary:    ASCEND modelling environment  Summary:    ASCEND modelling environment
3  Version:    0.9.5.114  Version:    0.9.5.115
4    
5  # Use release 0.* so that other users can do patch releases with a higher number  # Use release 0.* so that other users can do patch releases with a higher number
6  # and still have the update occur automatically.  # and still have the update occur automatically.
7  Release:    0%{?dist}  Release:    0%{?dist}
8    
9  %define disttar_name ascend-0.9.5.114  %define disttar_name ascend-0.9.5.115
10    
11  License:    GPLv2+  License:    GPLv2+
12  Group:      Applications/Engineering  Group:      Applications/Engineering
# Line 34  BuildRequires: blas-devel Line 34  BuildRequires: blas-devel
34  BuildRequires: sundials-devel >= 2.2.0  BuildRequires: sundials-devel >= 2.2.0
35  BuildRequires: python-devel >= 2.4  BuildRequires: python-devel >= 2.4
36  BuildRequires: tk-devel, tk, tcl-devel, tcl, tktable  BuildRequires: tk-devel, tk, tcl-devel, tcl, tktable
37    BuildRequires: graphviz-devel
38  %else  %else
39  %if 0%{?suse_version}  %if 0%{?suse_version}
40  BuildRequires: gcc-fortran gcc-c++  BuildRequires: gcc-fortran gcc-c++
# Line 41  BuildRequires: sundials-devel >= 2.2.0 Line 42  BuildRequires: sundials-devel >= 2.2.0
42  BuildRequires: blas  BuildRequires: blas
43  BuildRequires: python-devel >= 2.4  BuildRequires: python-devel >= 2.4
44  BuildRequires: tk, tk-devel, tcl, tcl-devel, tktable  BuildRequires: tk, tk-devel, tcl, tcl-devel, tktable
45    BuildRequires: graphviz-devel
46  %if 0%{suse_version} == 1000  %if 0%{suse_version} == 1000
47  BuildRequires: xorg-x11-devel  BuildRequires: xorg-x11-devel
48  %else  %else
# Line 62  BuildRequires: g++-4.1 gfortran-4.1 libs Line 64  BuildRequires: g++-4.1 gfortran-4.1 libs
64  %{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}  %{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
65  %{!?python_sitearch: %define python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")}  %{!?python_sitearch: %define python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")}
66    
67    %{!?gtksourceview2: %define gtksourceview2 %(%{__python} -c 'from glob import glob; print len(glob("/usr/lib/libgtksourceview-2.0*"))')}
68    
69    %if 0%{?gtksourceview2}
70    %define gtksourceview_lang_file %{_datadir}/gtksourceview-2.0/language-specs/ascend.lang
71    %else
72    %define gtksourceview_lang_file %{_datadir}/gtksourceview-1.0/language-specs/ascend.lang
73    %endif
74    
75  Buildroot: /var/tmp/%{name}-buildroot  Buildroot: /var/tmp/%{name}-buildroot
76    
77  %description  %description
# Line 183  pushd pygtk/glade Line 193  pushd pygtk/glade
193  install -m 644 -D ascend-doc-48x48.svg %{buildroot}/%{_datadir}/icons/text-x-ascend-model.svg  install -m 644 -D ascend-doc-48x48.svg %{buildroot}/%{_datadir}/icons/text-x-ascend-model.svg
194  popd  popd
195    
196    # language file for use with gedit
197    %if 0%{?gtksourceview2}
198    pushd tools/gtksourceview-2.0
199    install -m 644 -D ascend.lang %{buildroot}/%{gtksourceview_lang_file}
200    popd
201    %else
202  pushd tools/gedit  pushd tools/gedit
203  install -m 644 -D ascend.lang %{buildroot}/%{_datadir}/gtksourceview-1.0/language-specs/ascend.lang  install -m 644 -D ascend.lang %{buildroot}/%{gtksourceview_lang_file}
204  popd  popd
205    %endif
206    
207  # TODO...  # TODO...
208  #%__python -c 'from compileall import *; compile_dir("'$RPM_BUILD_ROOT'/%{python_sitelib}",10,"%{python_sitelib}")'  #%__python -c 'from compileall import *; compile_dir("'$RPM_BUILD_ROOT'/%{python_sitelib}",10,"%{python_sitelib}")'
# Line 218  update-mime-database /usr/share/mime &> Line 235  update-mime-database /usr/share/mime &>
235  %{_datadir}/ascend/solvers  %{_datadir}/ascend/solvers
236  %{_libdir}/libascend.so  %{_libdir}/libascend.so
237  %{_datadir}/mime/packages/ascend.xml  %{_datadir}/mime/packages/ascend.xml
238  %{_datadir}/gtksourceview-1.0/language-specs/ascend.lang  %{gtksourceview_lang_file}
239  %{_datadir}/icons/text-x-ascend-model.svg  %{_datadir}/icons/text-x-ascend-model.svg
240    
241  # %package -n ascend-python  # %package -n ascend-python
# Line 253  update-mime-database /usr/share/mime &> Line 270  update-mime-database /usr/share/mime &>
270  %doc doc/book.pdf  %doc doc/book.pdf
271    
272  %changelog  %changelog
273    * Wed Dec 26 2007 John Pye <john.pye@anu.edu.au> 0.9.5.114
274    - Minor fixes: error output.
275    - New 'air properties' model.
276    - GtkSourceView installed by Scons now.
277    - Added 'Incidence Graph' feature.
278    
279  * Sun Aug 19 2007 John Pye <john.pye@anu.edu.au> 0.9.5.113  * Sun Aug 19 2007 John Pye <john.pye@anu.edu.au> 0.9.5.113
280  - External libraries renamed to 'lib<name>_ascend.so' for clarity  - External libraries renamed to 'lib<name>_ascend.so' for clarity
281    and to solve a Windows-based naming problem.    and to solve a Windows-based naming problem.
# Line 289  update-mime-database /usr/share/mime &> Line 312  update-mime-database /usr/share/mime &>
312    
313  * Thu Apr 04 2006 John Pye <john.pye@student.unsw.edu.au>  * Thu Apr 04 2006 John Pye <john.pye@student.unsw.edu.au>
314  - First RPM package for new SCons build  - First RPM package for new SCons build
315    
316    # vim: set syntax=spec:
317    

Legend:
Removed from v.1608  
changed lines
  Added in v.1790

john.pye@anu.edu.au
ViewVC Help
Powered by ViewVC 1.1.22