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

Contents of /trunk/ascend.spec

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2652 - (show annotations) (download)
Thu Dec 13 09:03:18 2012 UTC (7 years, 3 months ago) by jpye
File size: 9176 byte(s)
Added support for IPOPT in RPM for Fedora 17.
1 Name: ascend
2 Summary: ASCEND modelling environment
3 Version: 0.9.8
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 Group: Applications/Engineering
10 License: GPLv2+
11 URL: http://ascend.cheme.cmu.edu/
12 Source: ascend-0.9.8.tar.bz2
13
14 Prefix: %{_prefix}
15 Packager: John Pye
16 Vendor: Carnegie Mellon University
17
18 #------ build dependencies -------
19 BuildRequires: scons >= 0.96.92
20 BuildRequires: bison
21 BuildRequires: flex >= 2.5.4
22 BuildRequires: swig >= 1.3.24
23 BuildRequires: gcc-gfortran gcc-c++ >= 4
24 BuildRequires: blas-devel
25 BuildRequires: sundials-devel >= 2.4.0
26 BuildRequires: ipopt >= 3.10
27 BuildRequires: python-devel >= 2.4
28 BuildRequires: tk-devel, tk, tcl-devel, tcl, tktable
29 BuildRequires: graphviz-devel
30
31 # ... documentation
32 # There are no dependencies for documentation as the tarball
33 # will always contain documentation in compiled form. Only
34 # when building from subversion are targets formats of the
35 # documentation files not available.
36
37 #------ runtime dependencies --------
38 Requires: blas%{?_isa}
39 Requires: sundials%{?_isa}
40
41 # ...pygtk
42 Requires: python%{?_isa} >= 2.4
43 Requires: pygtk2 >= 2.6
44 Requires: pygtk2-libglade
45 # does this one get picked up automatically?
46 Requires: python-matplotlib
47 Requires: numpy
48 Requires: ipython
49
50 # ... file association
51 Requires(post): desktop-file-utils shared-mime-info
52 Requires(postun): desktop-file-utils shared-mime-info
53
54 # syntax highlighting for gedit
55 Requires: gtksourceview3
56
57 %define pyver %(python -c 'import sys ; print sys.version[:3]')
58 %{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(plat_specific=0)")}
59 %{!?python_sitearch: %define python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(pat_specific=1)")}
60 %define gtksourceview_lang_file %{_datadir}/gtksourceview-3.0/language-specs/ascend.lang
61
62 %{?filter_setup:
63 %filter_provides_in %{_libdir}/ascend/models/.*\.so$
64 %filter_provides_in %{_libdir}/ascend/solvers/.*\.so$
65 %filter_setup
66 }
67
68 %description
69 ASCEND IV is both a large-scale object-oriented mathematical
70 modeling environment and a strongly typed mathematical modeling
71 language. Although ASCEND has primarily been developed by Chemical
72 Engineers, great care has been exercised to assure that it is
73 domain independent. ASCEND can support modeling activities in
74 fields from Architecture to (computational) Zoology.
75
76 # for the moment we'll just make one big super-package, to keep things
77 # simple for end-users.
78
79 %package devel
80 Summary: Developer files ASCEND
81 Group: Applications/Engineering
82 Requires: %{name}
83 %description devel
84 Developer files for ASCEND, in the form for C header files for the core
85 ASCEND library, 'libascend'.
86
87 %package doc
88 Summary: Documentation for ASCEND
89 Group: Applications/Engineering
90 %description doc
91 Documentation for ASCEND, in the form of a PDF User's Manual.
92
93 #%package -n libascend1
94 #Summary: Shared library for core ASCEND functionality
95 #Group: Applications/Engineering
96 #%description -n libascend1
97 #Shared library for ASCEND, providing core functionality including compiler
98 #and solver API.
99
100 #%package -n ascend-python
101 #Version: %{version}
102 #Summary: PyGTK user interface for ASCEND
103 #Group: Applications/Engineering
104 #
105 #%description -n ascend-python
106 #PyGTK user interface for ASCEND. This is a new interface that follows GNOME
107 #human interface guidelines as closely as possible. It does not as yet provide
108 #access to all of the ASCEND functionality provided by the Tcl/Tk interface.
109 #
110
111 %package tcltk
112 Summary: Tcl/Tk user interface for ASCEND
113 Group: Applications/Engineering
114 Requires: xgraph >= 11
115 Requires: tcl%{?_isa} >= 8.3
116 Requires: tk%{?_isa} >= 8.3
117 Requires: tktable < 2.10, tktable >= 2.8
118
119 %description tcltk
120 Tcl/Tk user interface for ASCEND. This is the original ASCEND IV interface
121 and is a more complete and mature interface than the alternative PyGTK
122 interface. Use this interface if you need to use ASCEND *.a4s files or other
123 functionality not provided by the PyGTK interface.
124
125 %prep
126 %setup -q -n ascend-0.9.8
127
128 %build
129 scons %{_smp_mflags} \
130 INSTALL_ROOT=%{buildroot} \
131 INSTALL_PREFIX=%{_prefix} \
132 INSTALL_SHARE=%{_datadir} \
133 INSTALL_BIN=%{_bindir} \
134 INSTALL_INCLUDE=%{_includedir} \
135 INSTALL_LIB=%{_libdir} \
136 INSTALL_DOC=%{_docdir}/%{name}-doc-%{version} \
137 DEBUG=1 \
138 WITH_DOC_BUILD=0 \
139 WITH_DOC_INSTALL=0 \
140 WITH_SOLVERS=QRSLV,LSODE,CMSLV,IDA,LRSLV,CONOPT,DOPRI5,IPOPT \
141 ABSOLUTE_PATHS=1 \
142 %{?__cc:CC="%__cc"} %{?__cxx:CXX="%__cxx"} \
143 ascend ascxx pygtk tcltk models solvers
144
145 %install
146 scons %{_smp_mflags} install
147
148 # Install menu entry for PyGTK interface, gtksourceview syntax highlighting, and MIME definition
149 pushd pygtk/gnome
150 install -m 644 -D ascend.desktop %{buildroot}/%{_datadir}/applications/ascend.desktop
151 install -m 644 -D ascend.png %{buildroot}/%{_datadir}/icons/ascend-app.png
152 install -m 644 -D ascend.png %{buildroot}/%{_datadir}/icons/hicolor/64x64/ascend.png
153 install -m 644 -D ascend.xml %{buildroot}/%{_datadir}/mime/packages/ascend.xml
154 popd
155
156 # file-type icon for ascend models (double click should open in ASCEND)
157 pushd pygtk/glade
158 install -m 644 -D ascend-doc-48x48.svg %{buildroot}/%{_datadir}/icons/text-x-ascend-model.svg
159 popd
160
161 # language file for use with gedit
162 # FIXME gtksourceview-3.0?
163 pushd tools/gtksourceview-2.0
164 install -m 644 -D ascend.lang %{buildroot}/%{gtksourceview_lang_file}
165 popd
166
167 # Install menu entry for Tcl/Tk interface
168 pushd tcltk/gnome
169 install -m 644 -D ascend4.desktop %{buildroot}/%{_datadir}/applications/ascend4.desktop
170 install -m 644 -D ascend4.png %{buildroot}/%{_datadir}/icons/ascend4-app.png
171 install -m 644 -D ascend4.png %{buildroot}/%{_datadir}/icons/hicolor/64x64/ascend4.png
172 popd
173
174 #/usr/lib/rpm/redhat/brp-strip-shared /usr/bin/strip
175
176 %clean
177 rm -rf %{buildroot}
178
179 %post
180 /sbin/ldconfig
181 update-desktop-database
182 update-mime-database /usr/share/mime &> /dev/null || :
183
184 %postun
185 /sbin/ldconfig
186 update-desktop-database
187 update-mime-database /usr/share/mime &> /dev/null || :
188
189 %files
190 %defattr(644,root,root)
191 %doc INSTALL.txt LICENSE.txt
192
193 %defattr(644,root,root)
194 %{_libdir}/ascend/models
195 %{_libdir}/ascend/solvers
196 %{_datadir}/mime/packages/ascend.xml
197 %{gtksourceview_lang_file}
198 %{_datadir}/icons/text-x-ascend-model.svg
199
200 #%files -n libascend1
201 %defattr(755,root,root)
202 %{_libdir}/libascend.so.*
203
204 # %package python
205 %defattr(755,root,root)
206 %{_bindir}/ascend
207 %{python_sitearch}/ascend/_ascpy.so
208 %defattr(644,root,root)
209 %{python_sitearch}/ascend/*.py
210 %{python_sitearch}/ascend/*.py[oc]
211 %{_datadir}/ascend/glade
212 %{_datadir}/applications/ascend.desktop
213 %{_datadir}/icons/ascend-app.png
214 %{_datadir}/icons/hicolor/64x64/ascend.png
215
216 # %package -n python-fprops
217 %defattr(755,root,root)
218 %{python_sitearch}/_fprops.so
219 %defattr(644,root,root)
220 %{python_sitearch}/fprops.py
221 %{python_sitearch}/fprops.py[oc]
222
223 %files tcltk
224 %defattr(755,root,root)
225 %{_bindir}/ascend4
226 %{_libdir}/libascendtcl.so
227 %defattr(644,root,root)
228 %{_datadir}/ascend/tcltk
229 %{_datadir}/applications/ascend4.desktop
230 %{_datadir}/icons/ascend4-app.png
231 %{_datadir}/icons/hicolor/64x64/ascend4.png
232
233 %files devel
234 %defattr(755,root,root)
235 %{_bindir}/ascend-config
236 %{_includedir}/ascend
237 %{_libdir}/lib*.so
238
239 %files doc
240 %defattr(644,root,root)
241 %doc doc/book.pdf
242
243 %changelog
244 * Wed Dec 12 2012 John Pye <john.pye@anu.edu.au> 0.9.8
245 - New version
246
247 * Thu Apr 30 2009 John Pye <john.pye@anu.edu.au> 0.9.6
248 - New version
249
250 * Wed Jun 25 2008 John Pye <john.pye@anu.edu.au> 0.9.5.115
251 - New version
252 - Moved ascend-config to -devel pkg.
253
254 * Wed Dec 26 2007 John Pye <john.pye@anu.edu.au> 0.9.5.114
255 - Minor fixes: error output.
256 - New 'air properties' model.
257 - GtkSourceView installed by Scons now.
258 - Added 'Incidence Graph' feature.
259
260 * Sun Aug 19 2007 John Pye <john.pye@anu.edu.au> 0.9.5.113
261 - External libraries renamed to 'lib<name>_ascend.so' for clarity
262 and to solve a Windows-based naming problem.
263 - Links in Help menu fixed (problem with call to Python webbrowser component).
264 - License re-tagged according to Fedora requirements.
265
266 * Sun Jul 25 2007 John Pye <john.pye@anu.edu.au> 0.9.5.112
267 - solvers are now all built as separate shared libraries
268 - mime-type icon added
269 - RPM now builds on Fedora 5,6,7 and SUSE 10.0 and newer. Not Mandriva though.
270
271 * Mon Apr 23 2007 John Pye <john.pye@student.unsw.edu.au> 0.9.5.108
272 - File ascend.lang has moved.
273 - book.pdf is included in package.
274 - some header files have been moved.
275
276 * Fri Jul 28 2006 John Pye <john.pye@student.unsw.edu.au>
277 - Added CONOPT support
278
279 * Wed Jul 12 2006 John Pye <john.pye@student.unsw.edu.au>
280 - Fixed fortran linking
281 - Removed ccache dependency
282 - Added xgraph dependency
283 - Added 'include' files plus 'ascend-config' script
284
285 * Thu Jun 01 2006 John Pye <john.pye@student.unsw.edu.au>
286 - Add Tcl/Tk interface to GNOME menu
287
288 * Tue May 02 2006 John Pye <john.pye@student.unsw.edu.au>
289 - Break out ascend-core, ascend-python and ascend-tcltk packages.
290
291 * Mon Apr 24 2006 John Pye <john.pye@student.unsw.edu.au>
292 - Modified for removed dir in pygtk source hierachy
293
294 * Thu Apr 04 2006 John Pye <john.pye@student.unsw.edu.au>
295 - First RPM package for new SCons build
296
297 # vim: set syntax=spec:
298

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