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

Contents of /trunk/ascend.spec

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1441 - (show annotations) (download)
Sat May 26 04:27:44 2007 UTC (17 years, 1 month ago) by jpye
File size: 6308 byte(s)
Fixed changelog for debian release
1 Name: ascend
2 Summary: ASCEND modelling environment
3 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
9
10 License: GPL
11 Group: Applications/Engineering
12 Source: ascend-0.9.5.110.tar.bz2
13 URL: http://ascend.cheme.cmu.edu/
14
15 Prefix: %{_prefix}
16 Packager: John Pye
17 Vendor: Carnegie Mellon University
18 BuildRoot: %{_tmppath}/%{name}-%{version}-root
19
20 %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 BuildRequires: bison >= 2.0
33 BuildRequires: flex >= 2.5.4
34 BuildRequires: swig >= 1.3.24
35 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 BuildRequires: tk-devel >= 8.3, tcl-devel >= 8.3
46 BuildRequires: tktable < 2.10, tktable >= 2.8
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
66 Requires: pygtk2 >= 2.6
67 Requires: pygtk2-libglade
68 Requires: python-matplotlib
69 Requires: numpy
70 Requires: ipython
71
72 # ...tcl/tk
73 Requires: xgraph >= 11
74 Requires: tcl >= 8.3
75 Requires: tk >= 8.3
76 Requires: tktable < 2.10, tktable >= 2.8
77
78 #------------------------------------------
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
86 #Version: 0.9.5.110
87 #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 #Version: 0.9.5.110
97 #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 %prep
107 %setup -q -n ascend-0.9.5.110
108
109 %build
110 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 ABSOLUTE_PATHS=1 \
118 pygtk tcltk
119
120 %install
121 rm -rf %{buildroot}
122 scons %{_smp_mflags} install
123
124 # Install menu entry for PyGTK interface, gtksourceview syntax highlighting, and MIME definition
125 pushd pygtk/gnome
126 install -m 644 -D ascend.desktop %{buildroot}/%{_datadir}/applications/ascend.desktop
127 install -m 644 -D ascend.png %{buildroot}/%{_datadir}/icons/ascend-app.png
128 install -m 644 -D ascend.png %{buildroot}/%{_datadir}/icons/hicolor/64x64/ascend.png
129 install -m 644 -D ascend.xml %{buildroot}/%{_datadir}/mime/packages/ascend.xml
130 popd
131 pushd tools/gedit
132 install -m 644 -D ascend.lang %{buildroot}/%{_datadir}/gtksourceview-1.0/language-specs/ascend.lang
133 popd
134
135 # Install menu entry for Tcl/Tk interface
136 pushd tcltk/gnome
137 install -m 644 -D ascend4.desktop %{buildroot}/%{_datadir}/applications/ascend4.desktop
138 install -m 644 -D ascend4.png %{buildroot}/%{_datadir}/icons/ascend4-app.png
139 install -m 644 -D ascend4.png %{buildroot}/%{_datadir}/icons/hicolor/64x64/ascend4.png
140 popd
141
142 %clean
143 rm -rf %{buildroot}
144
145 %post
146 update-desktop-database
147 update-mime-database /usr/share/mime
148
149 %postun
150 update-desktop-database
151 update-mime-database /usr/share/mime
152
153 %files
154 %defattr(-, root, root)
155 %doc INSTALL.txt LICENSE.txt
156 %{_datadir}/ascend/book.pdf
157
158 %{_bindir}/ascend-config
159 %{_datadir}/ascend/models
160 %{_libdir}/libascend.so
161 %{_datadir}/mime/packages/ascend.xml
162 %{_datadir}/gtksourceview-1.0/language-specs/ascend.lang
163
164 # %package -n ascend-python
165 %{_bindir}/ascend
166 %{_datadir}/ascend/*.py
167 %{_datadir}/ascend/*.pyc
168 %{_datadir}/ascend/*.pyo
169 %{_datadir}/ascend/glade
170 %{_datadir}/ascend/_ascpy.so
171 %{_datadir}/applications/ascend.desktop
172 %{_datadir}/icons/ascend-app.png
173 %{_datadir}/icons/hicolor/64x64/ascend.png
174
175 # %package -n ascend-tcltk
176 %{_bindir}/ascend4
177 %{_datadir}/ascend/tcltk
178 %{_libdir}/libascendtcl.so
179 %{_datadir}/applications/ascend4.desktop
180 %{_datadir}/icons/ascend4-app.png
181 %{_datadir}/icons/hicolor/64x64/ascend4.png
182
183 # %package -b ascend-devel
184 %{_includedir}/compiler
185 %{_includedir}/general
186 %{_includedir}/utilities
187 %{_includedir}/solver
188 %{_includedir}/linear
189 %{_includedir}/integrator
190 %{_includedir}/system
191
192 %changelog
193 * Mon Apr 23 2007 John Pye <john.pye@student.unsw.edu.au> 0.9.5.108
194 - File ascend.lang has moved.
195 - book.pdf is included in package.
196 - some header files have been moved.
197
198 * Fri Jul 28 2006 John Pye <john.pye@student.unsw.edu.au>
199 - Added CONOPT support
200
201 * Wed Jul 12 2006 John Pye <john.pye@student.unsw.edu.au>
202 - Fixed fortran linking
203 - Removed ccache dependency
204 - Added xgraph dependency
205 - Added 'include' files plus 'ascend-config' script
206
207 * Thu Jun 01 2006 John Pye <john.pye@student.unsw.edu.au>
208 - Add Tcl/Tk interface to GNOME menu
209
210 * Tue May 02 2006 John Pye <john.pye@student.unsw.edu.au>
211 - Break out ascend-core, ascend-python and ascend-tcltk packages.
212
213 * Mon Apr 24 2006 John Pye <john.pye@student.unsw.edu.au>
214 - Modified for removed dir in pygtk source hierachy
215
216 * Thu Apr 04 2006 John Pye <john.pye@student.unsw.edu.au>
217 - First RPM package for new SCons build

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