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

Annotation of /trunk/ascend.spec

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1514 - (hide annotations) (download)
Wed Jun 27 14:39:43 2007 UTC (13 years ago) by jpye
File size: 8589 byte(s)
Bumped version to 112.
1 johnpye 439 Name: ascend
2 johnpye 601 Summary: ASCEND modelling environment
3 jpye 1514 Version: 0.9.5.112
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 1514 %define disttar_name ascend-0.9.5.112
10    
11 johnpye 439 License: GPL
12 johnpye 555 Group: Applications/Engineering
13 jpye 1514 Source: %{disttar_name}.tar.bz2
14 johnpye 601 URL: http://ascend.cheme.cmu.edu/
15 johnpye 439
16     Prefix: %{_prefix}
17 johnpye 547 Packager: John Pye
18     Vendor: Carnegie Mellon University
19 johnpye 439
20 jpye 1443 Buildroot: /var/tmp/%{name}-buildroot
21    
22 jpye 1412 %description
23     ASCEND IV is both a large-scale object-oriented mathematical
24     modeling environment and a strongly typed mathematical modeling
25     language. Although ASCEND has primarily been developed by Chemical
26     Engineers, great care has been exercised to assure that it is
27     domain independent. ASCEND can support modeling activities in
28     fields from Architecture to (computational) Zoology.
29    
30     #----------build dependencies------------
31    
32     # ...general
33     BuildRequires: scons >= 0.96.92
34 johnpye 804 BuildRequires: bison >= 2.0
35 johnpye 794 BuildRequires: flex >= 2.5.4
36 johnpye 446 BuildRequires: swig >= 1.3.24
37 jpye 1514
38     %if %{defined fedora_version}
39     BuildRequires: gcc-gfortran gcc-c++ >= 4
40 jpye 1412 BuildRequires: blas-devel
41     BuildRequires: sundials >= 2.2.0
42     BuildRequires: python-devel >= 2.4
43 johnpye 987 BuildRequires: tk-devel >= 8.3, tcl-devel >= 8.3
44 johnpye 794 BuildRequires: tktable < 2.10, tktable >= 2.8
45 jpye 1514 %else
46     %if %{defined suse_version}
47     BuildRequires: gcc-fortran gcc-c++
48     BuildRequires: sundials >= 2.2.0
49     BuildRequires: blas
50     BuildRequires: python-devel >= 2.4
51     BuildRequires: tk-devel >= 8.3, tcl-devel >= 8.3
52     BuildRequires: tktable < 2.10, tktable >= 2.8
53     %else
54     %if %{defined mandriva_version}
55     BuildRequires: gcc-gfortran gcc-c++
56     BuildRequires: sundials >= 2.2.0
57     BuildRequires: blas-devel python-devel tk tcl
58     %else
59     # xubuntu version is the fallback...
60     BuildRequires: g++-4.1 gfortran-4.1 libsundials-serial-dev python-dev tk8.3-dev tcl8.3-dev tktable
61     %endif
62     %endif
63     %endif
64 jpye 1412
65 jpye 1514 #BuildRequires: conopt >= 3.14
66    
67 jpye 1412 # ... GNOME
68 johnpye 446 BuildRequires: desktop-file-utils
69 johnpye 680
70 jpye 1514 %define pyver %(python -c 'import sys ; print sys.version[:3]')
71     %{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
72     %{!?python_sitearch: %define python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")}
73    
74     Buildroot: /var/tmp/%{name}-buildroot
75    
76     %description
77     ASCEND IV is both a large-scale object-oriented mathematical
78     modeling environment and a strongly typed mathematical modeling
79     language. Although ASCEND has primarily been developed by Chemical
80     Engineers, great care has been exercised to assure that it is
81     domain independent. ASCEND can support modeling activities in
82     fields from Architecture to (computational) Zoology.
83    
84 jpye 1441 # ... documentation
85     # There are no dependencies for documentation as the tarball
86     # will always contain documentation in compiled form. Only
87     # when building from subversion are targets formats of the
88     # documentation files not available.
89    
90 jpye 1412 #-----------runtime dependencies-----------
91 johnpye 446
92 jpye 1412 # ...general
93     Requires: gtksourceview
94     Requires: blas
95     # sundials will be statically linked
96 jpye 1514 Requires: desktop-file-utils shared-mime-info
97 jpye 1412
98     # ...pygtk
99 johnpye 440 Requires: python >= 2.4
100 johnpye 562 Requires: pygtk2 >= 2.6
101     Requires: pygtk2-libglade
102     Requires: python-matplotlib
103 jpye 1412 Requires: numpy
104     Requires: ipython
105    
106     # ...tcl/tk
107 johnpye 655 Requires: xgraph >= 11
108 jpye 1412 Requires: tcl >= 8.3
109     Requires: tk >= 8.3
110     Requires: tktable < 2.10, tktable >= 2.8
111 johnpye 440
112 jpye 1412 #------------------------------------------
113 johnpye 439
114 jpye 1412 Provides: ascend-gui
115    
116     # for the moment we'll just make one big super-package, to keep things
117     # simple for end-users.
118    
119 johnpye 555 #%package -n ascend-python
120 jpye 1514 #Version: %{version}
121 johnpye 555 #Summary: PyGTK user interface for ASCEND
122     #Group: Applications/Engineering
123     #
124     #%description -n ascend-python
125     #PyGTK user interface for ASCEND. This is a new interface that follows GNOME
126     #human interface guidelines as closely as possible. It does not as yet provide
127     #access to all of the ASCEND functionality provided by the Tcl/Tk interface.
128     #
129     #%package -n ascend-tcltk
130 jpye 1514 #Version: %{version}
131 johnpye 555 #Summary: Tcl/Tk user interface for ASCEND
132     #Group: Applications/Engineering
133     #
134     #%description -n ascend-tcltk
135     #Tcl/Tk user interface for ASCEND. This is the original ASCEND IV interface
136     #and is a more complete and mature interface than the alternative PyGTK
137     #interface. Use this interface if you need to use ASCEND *.a4s files or other
138     #functionality not provided by the PyGTK interface.
139    
140 jpye 1514 %package doc
141     Summary: Documentation for ASCEND
142     Group: Applications/Engineering
143     %description doc
144     Documentation for ASCEND, in the form of a PDF User's Manual.
145    
146     %package devel
147     Summary: Developer files ASCEND
148     Group: Applications/Engineering
149     %description devel
150     Developer files for ASCEND, in the form for C header files for the core
151     ASCEND library, 'libascend'.
152    
153 johnpye 439 %prep
154 jpye 1514 %setup -q -n %{disttar_name}
155 johnpye 439
156     %build
157 johnpye 795 scons %{_smp_mflags} DEFAULT_ASCENDLIBRARY=%{_datadir}/ascend/models \
158 johnpye 676 INSTALL_ROOT=%{buildroot} \
159     INSTALL_PREFIX=%{_prefix} \
160     INSTALL_SHARE=%{_datadir} \
161     INSTALL_BIN=%{_bindir} \
162     INSTALL_INCLUDE=%{_includedir} \
163 jpye 1514 INSTALL_LIB=%{_libdir} \
164 jpye 1443 INSTALL_DOC=%{_docdir}/%{name}-%{version} \
165     WITH_DOC_BUILD=0 \
166     WITH_DOC_INSTALL=0 \
167 jpye 1514 WITH_SOLVERS=QRSLV,LSODE,CMSLV,IDA,LRSLV,CONOPT \
168 jpye 1412 ABSOLUTE_PATHS=1 \
169 jpye 1443 CC="%{?ccache} gcc" \
170     CXX="%{?ccache} g++" \
171 jpye 1514 pygtk tcltk models
172 johnpye 439
173     %install
174     rm -rf %{buildroot}
175 johnpye 795 scons %{_smp_mflags} install
176 johnpye 439
177 johnpye 651 # Install menu entry for PyGTK interface, gtksourceview syntax highlighting, and MIME definition
178 johnpye 532 pushd pygtk/gnome
179 johnpye 564 install -m 644 -D ascend.desktop %{buildroot}/%{_datadir}/applications/ascend.desktop
180     install -m 644 -D ascend.png %{buildroot}/%{_datadir}/icons/ascend-app.png
181     install -m 644 -D ascend.png %{buildroot}/%{_datadir}/icons/hicolor/64x64/ascend.png
182     install -m 644 -D ascend.xml %{buildroot}/%{_datadir}/mime/packages/ascend.xml
183 jpye 1407 popd
184     pushd tools/gedit
185 johnpye 564 install -m 644 -D ascend.lang %{buildroot}/%{_datadir}/gtksourceview-1.0/language-specs/ascend.lang
186 johnpye 447 popd
187    
188 jpye 1443 # TODO...
189     #%__python -c 'from compileall import *; compile_dir("'$RPM_BUILD_ROOT'/%{python_sitelib}",10,"%{python_sitelib}")'
190     #%__python -O -c 'from compileall import *; compile_dir("'$RPM_BUILD_ROOT'/%{python_sitelib}",10,"%{python_sitelib}")'
191    
192 johnpye 651 # Install menu entry for Tcl/Tk interface
193     pushd tcltk/gnome
194     install -m 644 -D ascend4.desktop %{buildroot}/%{_datadir}/applications/ascend4.desktop
195     install -m 644 -D ascend4.png %{buildroot}/%{_datadir}/icons/ascend4-app.png
196     install -m 644 -D ascend4.png %{buildroot}/%{_datadir}/icons/hicolor/64x64/ascend4.png
197     popd
198    
199 johnpye 439 %clean
200     rm -rf %{buildroot}
201    
202 johnpye 448 %post
203     update-desktop-database
204     update-mime-database /usr/share/mime
205    
206     %postun
207     update-desktop-database
208     update-mime-database /usr/share/mime
209    
210 johnpye 439 %files
211     %defattr(-, root, root)
212 johnpye 561 %doc INSTALL.txt LICENSE.txt
213 jpye 1411
214 johnpye 685 %{_bindir}/ascend-config
215 johnpye 557 %{_datadir}/ascend/models
216 jpye 1514 %{_datadir}/ascend/solvers
217 johnpye 554 %{_libdir}/libascend.so
218 johnpye 652 %{_datadir}/mime/packages/ascend.xml
219     %{_datadir}/gtksourceview-1.0/language-specs/ascend.lang
220 johnpye 554
221 johnpye 555 # %package -n ascend-python
222 johnpye 439 %{_bindir}/ascend
223 johnpye 557 %{_datadir}/ascend/*.py
224 jpye 1449 %{_datadir}/ascend/*.py[co]
225    
226 johnpye 557 %{_datadir}/ascend/glade
227 johnpye 562 %{_datadir}/ascend/_ascpy.so
228 johnpye 652 %{_datadir}/applications/ascend.desktop
229     %{_datadir}/icons/ascend-app.png
230     %{_datadir}/icons/hicolor/64x64/ascend.png
231 johnpye 439
232 johnpye 555 # %package -n ascend-tcltk
233 johnpye 554 %{_bindir}/ascend4
234     %{_datadir}/ascend/tcltk
235     %{_libdir}/libascendtcl.so
236 johnpye 652 %{_datadir}/applications/ascend4.desktop
237     %{_datadir}/icons/ascend4-app.png
238     %{_datadir}/icons/hicolor/64x64/ascend4.png
239 johnpye 448
240 jpye 1514 %files devel
241 johnpye 794 %{_includedir}/compiler
242     %{_includedir}/general
243     %{_includedir}/utilities
244     %{_includedir}/solver
245 jpye 1410 %{_includedir}/linear
246     %{_includedir}/integrator
247 jpye 1411 %{_includedir}/system
248 johnpye 794
249 jpye 1514 %files doc
250     %doc doc/book.pdf
251    
252 johnpye 439 %changelog
253 jpye 1514 * Mon Apr 23 2007 John Pye <john.pye@anu.edu.au> 0.9.5.112
254     - solvers are now all built as separate shared libraries
255    
256 jpye 1412 * Mon Apr 23 2007 John Pye <john.pye@student.unsw.edu.au> 0.9.5.108
257 jpye 1410 - File ascend.lang has moved.
258     - book.pdf is included in package.
259     - some header files have been moved.
260 jpye 1407
261 johnpye 795 * Fri Jul 28 2006 John Pye <john.pye@student.unsw.edu.au>
262     - Added CONOPT support
263    
264 johnpye 794 * Wed Jul 12 2006 John Pye <john.pye@student.unsw.edu.au>
265     - Fixed fortran linking
266     - Removed ccache dependency
267     - Added xgraph dependency
268     - Added 'include' files plus 'ascend-config' script
269    
270 johnpye 652 * Thu Jun 01 2006 John Pye <john.pye@student.unsw.edu.au>
271     - Add Tcl/Tk interface to GNOME menu
272    
273 johnpye 554 * Tue May 02 2006 John Pye <john.pye@student.unsw.edu.au>
274     - Break out ascend-core, ascend-python and ascend-tcltk packages.
275    
276 johnpye 532 * Mon Apr 24 2006 John Pye <john.pye@student.unsw.edu.au>
277     - Modified for removed dir in pygtk source hierachy
278    
279 johnpye 439 * Thu Apr 04 2006 John Pye <john.pye@student.unsw.edu.au>
280     - First RPM package for new SCons build

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