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

Contents of /trunk/ascend.spec

Parent Directory Parent Directory | Revision Log Revision Log


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

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