/[ascend]/trunk/ascend.spec
ViewVC logotype

Diff of /trunk/ascend.spec

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

revision 602 by johnpye, Fri May 12 14:45:41 2006 UTC revision 1442 by jpye, Sat May 26 07:31:34 2007 UTC
# Line 1  Line 1 
1  Name:       ascend  Name:       ascend
2  Summary:    ASCEND modelling environment  Summary:    ASCEND modelling environment
3  Version:    0.9.5.91  Version:    0.9.5.110
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:    0%{?dist}
8    
 # Use release "0" so that distro-released versions will override ours.  
 Release:    0.jdpipe  
9    
10  License:    GPL  License:    GPL
11  Group:      Applications/Engineering  Group:      Applications/Engineering
12  Source:     ascend.tar.bz2  Source:     ascend-0.9.5.110.tar.bz2
13  URL:        http://ascend.cheme.cmu.edu/  URL:        http://ascend.cheme.cmu.edu/
14    
15  Prefix:     %{_prefix}  Prefix:     %{_prefix}
# Line 15  Packager:  John Pye Line 17  Packager:  John Pye
17  Vendor:     Carnegie Mellon University  Vendor:     Carnegie Mellon University
18  BuildRoot:  %{_tmppath}/%{name}-%{version}-root  BuildRoot:  %{_tmppath}/%{name}-%{version}-root
19    
20  BuildRequires: python >= 2.4, python-devel  %description
21  BuildRequires: scons >= 0.96.1  ASCEND IV is both a large-scale object-oriented mathematical
22  BuildRequires: bison, flex  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  BuildRequires: swig >= 1.3.24
35  BuildRequires: desktop-file-utils  BuildRequires: gcc-gfortran
36  BuildRequires: tk-devel < 8.5  BuildRequires: libgfortran
37  BuildRequires: tcl-devel < 8.5  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  BuildRequires: tktable < 2.10, tktable >= 2.8
 BuildRequires: ccache  
47    
48    # ... GNOME
49    BuildRequires: desktop-file-utils
50    
51    # ... documentation
52    # There are no dependencies for documentation as the tarball
53    # will always contain documentation in compiled form. Only
54    # when building from subversion are targets formats of the
55    # documentation files not available.
56    
57    #-----------runtime dependencies-----------
58    
59    # ...general
60    Requires: gtksourceview
61    Requires: blas
62    # sundials will be statically linked
63    
64    # ...pygtk
65  Requires: python >= 2.4  Requires: python >= 2.4
66  Requires: pygtk2 >= 2.6  Requires: pygtk2 >= 2.6
67  Requires: pygtk2-libglade  Requires: pygtk2-libglade
68  Requires: python-matplotlib  Requires: python-matplotlib
69  Requires: python-numeric  Requires: numpy
70  Requires: gtksourceview  Requires: ipython
71    
72  %description  # ...tcl/tk
73  ASCEND IV is both a large-scale object-oriented mathematical  Requires: xgraph >= 11
74  modeling environment and a strongly typed mathematical modeling  Requires: tcl >= 8.3
75  language. Although ASCEND has primarily been developed by Chemical  Requires: tk >= 8.3
76  Engineers, great care has been exercised to assure that it is  Requires: tktable < 2.10, tktable >= 2.8
77  domain independent. ASCEND can support modeling activities in  
78  fields from Architecture to (computational) Zoology.  #------------------------------------------
79    
80    Provides: ascend-gui
81    
82    # for the moment we'll just make one big super-package, to keep things
83    # simple for end-users.
84    
85  #%package -n ascend-python  #%package -n ascend-python
86  #Version:    0.9.5.91  #Version:    0.9.5.110
87  #Summary:    PyGTK user interface for ASCEND  #Summary:    PyGTK user interface for ASCEND
88  #Group:     Applications/Engineering  #Group:     Applications/Engineering
89  #  #
# Line 51  fields from Architecture to (computation Line 93  fields from Architecture to (computation
93  #access to all of the ASCEND functionality provided by the Tcl/Tk interface.  #access to all of the ASCEND functionality provided by the Tcl/Tk interface.
94  #  #
95  #%package -n ascend-tcltk  #%package -n ascend-tcltk
96  #Version:    0.9.5.91  #Version:    0.9.5.110
97  #Summary:    Tcl/Tk user interface for ASCEND  #Summary:    Tcl/Tk user interface for ASCEND
98  #Group:     Applications/Engineering  #Group:     Applications/Engineering
99  #  #
# Line 62  fields from Architecture to (computation Line 104  fields from Architecture to (computation
104  #functionality not provided by the PyGTK interface.  #functionality not provided by the PyGTK interface.
105    
106  %prep  %prep
107  %setup -q -n ascend  %setup -q -n ascend-0.9.5.110
108    
109  %build  %build
110  scons %{?_smp_mflags} CC="ccache gcc" CXX="ccache g++" DEFAULT_ASCENDLIBRARY=%{_datadir}/ascend/models INSTALL_ROOT=%{buildroot} INSTALL_PREFIX=%{_prefix} INSTALL_DATA=%{_datadir} INSTALL_BIN=%{_bindir} INSTALL_INCLUDE=%{_incdir} WITH_PYTHON=1 WITH_TCLTK=1 TCL=/usr TCL_LIB=tcl8.4 TK_LIB=tk8.4  scons %{_smp_mflags} DEFAULT_ASCENDLIBRARY=%{_datadir}/ascend/models \
111        INSTALL_ROOT=%{buildroot} \
112        INSTALL_PREFIX=%{_prefix} \
113        INSTALL_SHARE=%{_datadir} \
114        INSTALL_BIN=%{_bindir} \
115        INSTALL_INCLUDE=%{_includedir} \
116        WITH_SOLVERS=QRSLV,LSOD,CMSLV,IDA,LRSLV,CONOPT \
117        WITH_LOCAL_DOC=1 \
118        INSTALL_DOC=%{_datadir}/doc/%{name}-%{version} \
119        ABSOLUTE_PATHS=1 \
120        pygtk tcltk
121    
122  %install  %install
123  rm -rf %{buildroot}  rm -rf %{buildroot}
124  scons %{?_smp_mflags} CC="ccache gcc" CXX="ccache g++" DEFAULT_ASCENDLIBRARY=%{_datadir}/ascend/models INSTALL_ROOT=%{buildroot} INSTALL_PREFIX=%{_prefix} INSTALL_DATA=%{_datadir} INSTALL_BIN=%{_bindir} INSTALL_INCLUDE=%{_incdir} WITH_PYTHON=1 WITH_TCLTK=1 install  scons %{_smp_mflags} install
125    
126    # Install menu entry for PyGTK interface, gtksourceview syntax highlighting, and MIME definition
127  pushd pygtk/gnome  pushd pygtk/gnome
128  install -m 644 -D ascend.desktop %{buildroot}/%{_datadir}/applications/ascend.desktop  install -m 644 -D ascend.desktop %{buildroot}/%{_datadir}/applications/ascend.desktop
129  install -m 644 -D ascend.png %{buildroot}/%{_datadir}/icons/ascend-app.png  install -m 644 -D ascend.png %{buildroot}/%{_datadir}/icons/ascend-app.png
130  install -m 644 -D ascend.png %{buildroot}/%{_datadir}/icons/hicolor/64x64/ascend.png  install -m 644 -D ascend.png %{buildroot}/%{_datadir}/icons/hicolor/64x64/ascend.png
131  install -m 644 -D ascend.xml %{buildroot}/%{_datadir}/mime/packages/ascend.xml  install -m 644 -D ascend.xml %{buildroot}/%{_datadir}/mime/packages/ascend.xml
132    popd
133    pushd tools/gedit
134  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
135  popd  popd
136    
137    # Install menu entry for Tcl/Tk interface
138    pushd tcltk/gnome
139    install -m 644 -D ascend4.desktop %{buildroot}/%{_datadir}/applications/ascend4.desktop
140    install -m 644 -D ascend4.png %{buildroot}/%{_datadir}/icons/ascend4-app.png
141    install -m 644 -D ascend4.png %{buildroot}/%{_datadir}/icons/hicolor/64x64/ascend4.png
142    popd
143    
144  %clean  %clean
145  rm -rf %{buildroot}  rm -rf %{buildroot}
146    
# Line 93  update-mime-database /usr/share/mime Line 155  update-mime-database /usr/share/mime
155  %files  %files
156  %defattr(-, root, root)  %defattr(-, root, root)
157  %doc INSTALL.txt LICENSE.txt  %doc INSTALL.txt LICENSE.txt
158  %{_datadir}/applications/ascend.desktop  %{_datadir}/doc/%{name}-%{version}/book.pdf
159    
160    %{_bindir}/ascend-config
161  %{_datadir}/ascend/models  %{_datadir}/ascend/models
162  %{_libdir}/libascend.so  %{_libdir}/libascend.so
163    %{_datadir}/mime/packages/ascend.xml
164    %{_datadir}/gtksourceview-1.0/language-specs/ascend.lang
165    
166  # %package -n ascend-python  # %package -n ascend-python
167  %{_bindir}/ascend  %{_bindir}/ascend
 %{_datadir}/gtksourceview-1.0/language-specs/ascend.lang  
 %{_datadir}/icons/ascend-app.png  
 %{_datadir}/icons/hicolor/64x64/ascend.png  
 %{_datadir}/mime/packages/ascend.xml  
168  %{_datadir}/ascend/*.py  %{_datadir}/ascend/*.py
169  %{_datadir}/ascend/*.pyc  %{_datadir}/ascend/*.pyc
170  %{_datadir}/ascend/*.pyo  %{_datadir}/ascend/*.pyo
171  %{_datadir}/ascend/glade  %{_datadir}/ascend/glade
172  %{_datadir}/ascend/_ascpy.so  %{_datadir}/ascend/_ascpy.so
173    %{_datadir}/applications/ascend.desktop
174    %{_datadir}/icons/ascend-app.png
175    %{_datadir}/icons/hicolor/64x64/ascend.png
176    
177  # %package -n ascend-tcltk  # %package -n ascend-tcltk
178  %{_bindir}/ascend4  %{_bindir}/ascend4
179  %{_datadir}/ascend/tcltk  %{_datadir}/ascend/tcltk
180  %{_libdir}/libascendtcl.so  %{_libdir}/libascendtcl.so
181    %{_datadir}/applications/ascend4.desktop
182    %{_datadir}/icons/ascend4-app.png
183    %{_datadir}/icons/hicolor/64x64/ascend4.png
184    
185    # %package -b ascend-devel
186    %{_includedir}/compiler
187    %{_includedir}/general
188    %{_includedir}/utilities
189    %{_includedir}/solver
190    %{_includedir}/linear
191    %{_includedir}/integrator
192    %{_includedir}/system
193    
194  %changelog  %changelog
195    * Mon Apr 23 2007 John Pye <john.pye@student.unsw.edu.au> 0.9.5.108
196    - File ascend.lang has moved.
197    - book.pdf is included in package.
198    - some header files have been moved.
199    
200    * Fri Jul 28 2006 John Pye <john.pye@student.unsw.edu.au>
201    - Added CONOPT support
202    
203    * Wed Jul 12 2006 John Pye <john.pye@student.unsw.edu.au>
204    - Fixed fortran linking
205    - Removed ccache dependency
206    - Added xgraph dependency
207    - Added 'include' files plus 'ascend-config' script
208    
209    * Thu Jun 01 2006 John Pye <john.pye@student.unsw.edu.au>
210    - Add Tcl/Tk interface to GNOME menu
211    
212  * Tue May 02 2006 John Pye <john.pye@student.unsw.edu.au>  * Tue May 02 2006 John Pye <john.pye@student.unsw.edu.au>
213  - Break out ascend-core, ascend-python and ascend-tcltk packages.  - Break out ascend-core, ascend-python and ascend-tcltk packages.
214    

Legend:
Removed from v.602  
changed lines
  Added in v.1442

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