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

Annotation of /branches/fprops2/ascend.spec

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1442 - (hide annotations) (download)
Sat May 26 07:31:34 2007 UTC (12 years, 6 months ago) by jpye
Original Path: trunk/ascend.spec
File size: 6394 byte(s)
Build documentation by default, but detect when LyX is not available.
1 johnpye 439 Name: ascend
2 johnpye 601 Summary: ASCEND modelling environment
3 jpye 1441 Version: 0.9.5.110
4 johnpye 439
5 johnpye 656 # Use release 0.* so that other users can do patch releases with a higher number
6 johnpye 657 # and still have the update occur automatically.
7 jpye 1412 Release: 0%{?dist}
8 johnpye 439
9 jpye 1412
10 johnpye 439 License: GPL
11 johnpye 555 Group: Applications/Engineering
12 jpye 1441 Source: ascend-0.9.5.110.tar.bz2
13 johnpye 601 URL: http://ascend.cheme.cmu.edu/
14 johnpye 439
15     Prefix: %{_prefix}
16 johnpye 547 Packager: John Pye
17     Vendor: Carnegie Mellon University
18 johnpye 439 BuildRoot: %{_tmppath}/%{name}-%{version}-root
19    
20 jpye 1412 %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 johnpye 804 BuildRequires: bison >= 2.0
33 johnpye 794 BuildRequires: flex >= 2.5.4
34 johnpye 446 BuildRequires: swig >= 1.3.24
35 jpye 1412 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 johnpye 987 BuildRequires: tk-devel >= 8.3, tcl-devel >= 8.3
46 johnpye 794 BuildRequires: tktable < 2.10, tktable >= 2.8
47 jpye 1412
48     # ... GNOME
49 johnpye 446 BuildRequires: desktop-file-utils
50 johnpye 680
51 jpye 1441 # ... 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 jpye 1412 #-----------runtime dependencies-----------
58 johnpye 446
59 jpye 1412 # ...general
60     Requires: gtksourceview
61     Requires: blas
62     # sundials will be statically linked
63    
64     # ...pygtk
65 johnpye 440 Requires: python >= 2.4
66 johnpye 562 Requires: pygtk2 >= 2.6
67     Requires: pygtk2-libglade
68     Requires: python-matplotlib
69 jpye 1412 Requires: numpy
70     Requires: ipython
71    
72     # ...tcl/tk
73 johnpye 655 Requires: xgraph >= 11
74 jpye 1412 Requires: tcl >= 8.3
75     Requires: tk >= 8.3
76     Requires: tktable < 2.10, tktable >= 2.8
77 johnpye 440
78 jpye 1412 #------------------------------------------
79 johnpye 439
80 jpye 1412 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 johnpye 555 #%package -n ascend-python
86 jpye 1441 #Version: 0.9.5.110
87 johnpye 555 #Summary: PyGTK user interface for ASCEND
88     #Group: Applications/Engineering
89     #
90     #%description -n ascend-python
91     #PyGTK user interface for ASCEND. This is a new interface that follows GNOME
92     #human interface guidelines as closely as possible. It does not as yet provide
93     #access to all of the ASCEND functionality provided by the Tcl/Tk interface.
94     #
95     #%package -n ascend-tcltk
96 jpye 1441 #Version: 0.9.5.110
97 johnpye 555 #Summary: Tcl/Tk user interface for ASCEND
98     #Group: Applications/Engineering
99     #
100     #%description -n ascend-tcltk
101     #Tcl/Tk user interface for ASCEND. This is the original ASCEND IV interface
102     #and is a more complete and mature interface than the alternative PyGTK
103     #interface. Use this interface if you need to use ASCEND *.a4s files or other
104     #functionality not provided by the PyGTK interface.
105    
106 johnpye 439 %prep
107 jpye 1441 %setup -q -n ascend-0.9.5.110
108 johnpye 439
109     %build
110 johnpye 795 scons %{_smp_mflags} DEFAULT_ASCENDLIBRARY=%{_datadir}/ascend/models \
111 johnpye 676 INSTALL_ROOT=%{buildroot} \
112     INSTALL_PREFIX=%{_prefix} \
113     INSTALL_SHARE=%{_datadir} \
114     INSTALL_BIN=%{_bindir} \
115     INSTALL_INCLUDE=%{_includedir} \
116 jpye 1412 WITH_SOLVERS=QRSLV,LSOD,CMSLV,IDA,LRSLV,CONOPT \
117 jpye 1442 WITH_LOCAL_DOC=1 \
118     INSTALL_DOC=%{_datadir}/doc/%{name}-%{version} \
119 jpye 1412 ABSOLUTE_PATHS=1 \
120 johnpye 795 pygtk tcltk
121 johnpye 439
122     %install
123     rm -rf %{buildroot}
124 johnpye 795 scons %{_smp_mflags} install
125 johnpye 439
126 johnpye 651 # Install menu entry for PyGTK interface, gtksourceview syntax highlighting, and MIME definition
127 johnpye 532 pushd pygtk/gnome
128 johnpye 564 install -m 644 -D ascend.desktop %{buildroot}/%{_datadir}/applications/ascend.desktop
129     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
131     install -m 644 -D ascend.xml %{buildroot}/%{_datadir}/mime/packages/ascend.xml
132 jpye 1407 popd
133     pushd tools/gedit
134 johnpye 564 install -m 644 -D ascend.lang %{buildroot}/%{_datadir}/gtksourceview-1.0/language-specs/ascend.lang
135 johnpye 447 popd
136    
137 johnpye 651 # 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 johnpye 439 %clean
145     rm -rf %{buildroot}
146    
147 johnpye 448 %post
148     update-desktop-database
149     update-mime-database /usr/share/mime
150    
151     %postun
152     update-desktop-database
153     update-mime-database /usr/share/mime
154    
155 johnpye 439 %files
156     %defattr(-, root, root)
157 johnpye 561 %doc INSTALL.txt LICENSE.txt
158 jpye 1442 %{_datadir}/doc/%{name}-%{version}/book.pdf
159 jpye 1411
160 johnpye 685 %{_bindir}/ascend-config
161 johnpye 557 %{_datadir}/ascend/models
162 johnpye 554 %{_libdir}/libascend.so
163 johnpye 652 %{_datadir}/mime/packages/ascend.xml
164     %{_datadir}/gtksourceview-1.0/language-specs/ascend.lang
165 johnpye 554
166 johnpye 555 # %package -n ascend-python
167 johnpye 439 %{_bindir}/ascend
168 johnpye 557 %{_datadir}/ascend/*.py
169 johnpye 562 %{_datadir}/ascend/*.pyc
170 jpye 1412 %{_datadir}/ascend/*.pyo
171 johnpye 557 %{_datadir}/ascend/glade
172 johnpye 562 %{_datadir}/ascend/_ascpy.so
173 johnpye 652 %{_datadir}/applications/ascend.desktop
174     %{_datadir}/icons/ascend-app.png
175     %{_datadir}/icons/hicolor/64x64/ascend.png
176 johnpye 439
177 johnpye 555 # %package -n ascend-tcltk
178 johnpye 554 %{_bindir}/ascend4
179     %{_datadir}/ascend/tcltk
180     %{_libdir}/libascendtcl.so
181 johnpye 652 %{_datadir}/applications/ascend4.desktop
182     %{_datadir}/icons/ascend4-app.png
183     %{_datadir}/icons/hicolor/64x64/ascend4.png
184 johnpye 448
185 johnpye 794 # %package -b ascend-devel
186     %{_includedir}/compiler
187     %{_includedir}/general
188     %{_includedir}/utilities
189     %{_includedir}/solver
190 jpye 1410 %{_includedir}/linear
191     %{_includedir}/integrator
192 jpye 1411 %{_includedir}/system
193 johnpye 794
194 johnpye 439 %changelog
195 jpye 1412 * Mon Apr 23 2007 John Pye <john.pye@student.unsw.edu.au> 0.9.5.108
196 jpye 1410 - File ascend.lang has moved.
197     - book.pdf is included in package.
198     - some header files have been moved.
199 jpye 1407
200 johnpye 795 * Fri Jul 28 2006 John Pye <john.pye@student.unsw.edu.au>
201     - Added CONOPT support
202    
203 johnpye 794 * 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 johnpye 652 * Thu Jun 01 2006 John Pye <john.pye@student.unsw.edu.au>
210     - Add Tcl/Tk interface to GNOME menu
211    
212 johnpye 554 * Tue May 02 2006 John Pye <john.pye@student.unsw.edu.au>
213     - Break out ascend-core, ascend-python and ascend-tcltk packages.
214    
215 johnpye 532 * Mon Apr 24 2006 John Pye <john.pye@student.unsw.edu.au>
216     - Modified for removed dir in pygtk source hierachy
217    
218 johnpye 439 * Thu Apr 04 2006 John Pye <john.pye@student.unsw.edu.au>
219     - First RPM package for new SCons build

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