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

Contents of /trunk/ascend.spec.in

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1442 - (show annotations) (download)
Sat May 26 07:31:34 2007 UTC (12 years, 9 months ago) by jpye
File size: 6398 byte(s)
Build documentation by default, but detect when LyX is not available.
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
10 License: GPL
11 Group: Applications/Engineering
12 Source: @DISTTAR_NAME@.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: @VERSION@
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: @VERSION@
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 @DISTTAR_NAME@
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 WITH_LOCAL_DOC=1 \
118 INSTALL_DOC=%{_datadir}/doc/%{name}-%{version} \
119 ABSOLUTE_PATHS=1 \
120 pygtk tcltk
121
122 %install
123 rm -rf %{buildroot}
124 scons %{_smp_mflags} install
125
126 # Install menu entry for PyGTK interface, gtksourceview syntax highlighting, and MIME definition
127 pushd pygtk/gnome
128 install -m 644 -D ascend.desktop %{buildroot}/%{_datadir}/applications/ascend.desktop
129 install -m 644 -D ascend.png %{buildroot}/%{_datadir}/icons/ascend-app.png
130 install -m 644 -D ascend.png %{buildroot}/%{_datadir}/icons/hicolor/64x64/ascend.png
131 install -m 644 -D ascend.xml %{buildroot}/%{_datadir}/mime/packages/ascend.xml
132 popd
133 pushd tools/gedit
134 install -m 644 -D ascend.lang %{buildroot}/%{_datadir}/gtksourceview-1.0/language-specs/ascend.lang
135 popd
136
137 # Install menu entry for Tcl/Tk interface
138 pushd tcltk/gnome
139 install -m 644 -D ascend4.desktop %{buildroot}/%{_datadir}/applications/ascend4.desktop
140 install -m 644 -D ascend4.png %{buildroot}/%{_datadir}/icons/ascend4-app.png
141 install -m 644 -D ascend4.png %{buildroot}/%{_datadir}/icons/hicolor/64x64/ascend4.png
142 popd
143
144 %clean
145 rm -rf %{buildroot}
146
147 %post
148 update-desktop-database
149 update-mime-database /usr/share/mime
150
151 %postun
152 update-desktop-database
153 update-mime-database /usr/share/mime
154
155 %files
156 %defattr(-, root, root)
157 %doc INSTALL.txt LICENSE.txt
158 %{_datadir}/doc/%{name}-%{version}/book.pdf
159
160 %{_bindir}/ascend-config
161 %{_datadir}/ascend/models
162 %{_libdir}/libascend.so
163 %{_datadir}/mime/packages/ascend.xml
164 %{_datadir}/gtksourceview-1.0/language-specs/ascend.lang
165
166 # %package -n ascend-python
167 %{_bindir}/ascend
168 %{_datadir}/ascend/*.py
169 %{_datadir}/ascend/*.pyc
170 %{_datadir}/ascend/*.pyo
171 %{_datadir}/ascend/glade
172 %{_datadir}/ascend/_ascpy.so
173 %{_datadir}/applications/ascend.desktop
174 %{_datadir}/icons/ascend-app.png
175 %{_datadir}/icons/hicolor/64x64/ascend.png
176
177 # %package -n ascend-tcltk
178 %{_bindir}/ascend4
179 %{_datadir}/ascend/tcltk
180 %{_libdir}/libascendtcl.so
181 %{_datadir}/applications/ascend4.desktop
182 %{_datadir}/icons/ascend4-app.png
183 %{_datadir}/icons/hicolor/64x64/ascend4.png
184
185 # %package -b ascend-devel
186 %{_includedir}/compiler
187 %{_includedir}/general
188 %{_includedir}/utilities
189 %{_includedir}/solver
190 %{_includedir}/linear
191 %{_includedir}/integrator
192 %{_includedir}/system
193
194 %changelog
195 * Mon Apr 23 2007 John Pye <john.pye@student.unsw.edu.au> 0.9.5.108
196 - File ascend.lang has moved.
197 - book.pdf is included in package.
198 - some header files have been moved.
199
200 * Fri Jul 28 2006 John Pye <john.pye@student.unsw.edu.au>
201 - Added CONOPT support
202
203 * Wed Jul 12 2006 John Pye <john.pye@student.unsw.edu.au>
204 - Fixed fortran linking
205 - Removed ccache dependency
206 - Added xgraph dependency
207 - Added 'include' files plus 'ascend-config' script
208
209 * Thu Jun 01 2006 John Pye <john.pye@student.unsw.edu.au>
210 - Add Tcl/Tk interface to GNOME menu
211
212 * Tue May 02 2006 John Pye <john.pye@student.unsw.edu.au>
213 - Break out ascend-core, ascend-python and ascend-tcltk packages.
214
215 * Mon Apr 24 2006 John Pye <john.pye@student.unsw.edu.au>
216 - Modified for removed dir in pygtk source hierachy
217
218 * Thu Apr 04 2006 John Pye <john.pye@student.unsw.edu.au>
219 - First RPM package for new SCons build

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