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

Contents of /trunk/ascend.spec.in

Parent Directory Parent Directory | Revision Log Revision Log


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

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