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

Annotation of /trunk/ascend.spec

Parent Directory Parent Directory | Revision Log Revision Log


Revision 3258 - (hide annotations) (download)
Wed Nov 15 04:57:56 2017 UTC (2 years, 4 months ago) by jpye
File size: 8402 byte(s)
Merged relerrorlist branch back to trunk.

1 jpye 2786 # prevent filtering for 'provides' tagging of ASCEND models/solvers
2     %{?filter_setup:
3     %filter_provides_in %{_libdir}/ascend/models/.*\.so$
4     %filter_provides_in %{_libdir}/ascend/solvers/.*\.so$
5     %filter_setup
6     }
7     %{!?python2_sitearch: %global python2_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(pat_specific=1)")}
8     %global gtksourceview_lang_file %{_datadir}/gtksourceview-3.0/language-specs/ascend.lang
9    
10 johnpye 439 Name: ascend
11 johnpye 601 Summary: ASCEND modelling environment
12 jpye 3258 Version: 0.9.10
13 jpye 2701 Release: 0%{?dist}
14 jpye 1596 License: GPLv2+
15 jpye 2785 URL: http://ascend4.org/
16 jpye 3258 Source: http://ascend4.org/ascend-0.9.10.tar.bz2
17 johnpye 439
18 jpye 2650 #------ build dependencies -------
19 jpye 1412 BuildRequires: scons >= 0.96.92
20 jpye 1529 BuildRequires: bison
21 johnpye 794 BuildRequires: flex >= 2.5.4
22 johnpye 446 BuildRequires: swig >= 1.3.24
23 jpye 2785 BuildRequires: gcc-gfortran >= 4
24 jpye 1412 BuildRequires: blas-devel
25 jpye 2647 BuildRequires: sundials-devel >= 2.4.0
26 jpye 2785 #BuildRequires: tk-devel, tk, tcl-devel, tcl, tktable
27 jpye 1712 BuildRequires: graphviz-devel
28 jpye 2701 BuildRequires: desktop-file-utils
29 jpye 2785 %if 0%{?fedora}
30     BuildRequires: python2-devel
31     BuildRequires: coin-or-Ipopt-devel >= 3.10
32     BuildRequires: MUMPS-devel
33     BuildRequires: lapack-devel
34 jpye 2786 BuildRequires: CUnit-devel
35 jpye 2785 %else
36     BuildRequires: python-devel >= 2.4
37     BuildRequires: gcc-c++ >= 4
38     BuildRequires: ipopt-devel >= 3.10 or
39     %endif
40 jpye 1412
41 jpye 1441 # ... documentation
42     # There are no dependencies for documentation as the tarball
43     # will always contain documentation in compiled form. Only
44     # when building from subversion are targets formats of the
45     # documentation files not available.
46    
47 jpye 2650 #------ runtime dependencies --------
48     Requires: blas%{?_isa}
49     Requires: sundials%{?_isa}
50 jpye 2785 Requires: coin-or-Ipopt%{?_isa}
51 johnpye 446
52 jpye 2786 # ... pygtk
53 jpye 2650 Requires: python%{?_isa} >= 2.4
54 johnpye 562 Requires: pygtk2 >= 2.6
55 jpye 2786 # ^...libglade is no longer required; we use gtk.Builder
56    
57 johnpye 562 Requires: python-matplotlib
58 jpye 1412 Requires: numpy
59     Requires: ipython
60 jpye 2786 # ... syntax highlighting for gedit
61 jpye 2785 Requires: gtksourceview3
62 jpye 1412
63 jpye 1601 # ... file association
64 jpye 2785 #Requires(post): desktop-file-utils shared-mime-info
65     #Requires(postun): desktop-file-utils shared-mime-info
66 jpye 1601
67 jpye 2650 %description
68     ASCEND IV is both a large-scale object-oriented mathematical
69     modeling environment and a strongly typed mathematical modeling
70     language. Although ASCEND has primarily been developed by Chemical
71     Engineers, great care has been exercised to assure that it is
72     domain independent. ASCEND can support modeling activities in
73     fields from Architecture to (computational) Zoology.
74    
75     %package devel
76 jpye 2786 Summary: ASCEND developer files
77     Requires: %{name} = %{version}-%{release}
78 jpye 2650 %description devel
79     Developer files for ASCEND, in the form for C header files for the core
80     ASCEND library, 'libascend'.
81    
82     %package doc
83 jpye 2786 Summary: ASCEND documentation
84     Requires: %{name} = %{version}-%{release}
85 jpye 2650 %description doc
86     Documentation for ASCEND, in the form of a PDF User's Manual.
87    
88 johnpye 439 %prep
89 jpye 2786 %setup -q -n %{name}-%{version}
90     # note Antonio Trande had some sed actions to insert directories into SConstruct, not sure that's needed actually.
91 johnpye 439
92     %build
93 jpye 2030 scons %{_smp_mflags} \
94 johnpye 676 INSTALL_ROOT=%{buildroot} \
95     INSTALL_PREFIX=%{_prefix} \
96     INSTALL_SHARE=%{_datadir} \
97     INSTALL_BIN=%{_bindir} \
98     INSTALL_INCLUDE=%{_includedir} \
99 jpye 1514 INSTALL_LIB=%{_libdir} \
100 jpye 2701 INSTALL_DOC=%{_docdir}/%{name}-doc-%{version} \
101 jpye 2650 DEBUG=1 \
102 jpye 2701 WITH_DOC_BUILD=0 \
103     WITH_DOC_INSTALL=0 \
104 jpye 2786 WITH_TCLTK=0 \
105 jpye 2652 WITH_SOLVERS=QRSLV,LSODE,CMSLV,IDA,LRSLV,CONOPT,DOPRI5,IPOPT \
106 jpye 2701 ABSOLUTE_PATHS=1 \
107 jpye 2786 %{?__cc:CC="%{?ccache} %__cc"} %{?__cxx:CXX="%{?ccache} %__cxx"} \
108 jpye 2650 ascend ascxx pygtk tcltk models solvers
109 johnpye 439
110     %install
111 jpye 2785 scons install
112 johnpye 439
113 johnpye 651 # Install menu entry for PyGTK interface, gtksourceview syntax highlighting, and MIME definition
114 johnpye 532 pushd pygtk/gnome
115 jpye 2701 install -m 644 -D ascend.desktop %{buildroot}/%{_datadir}/applications/ascend.desktop
116     install -m 644 -D ascend.png %{buildroot}/%{_datadir}/icons/ascend-app.png
117     install -m 644 -D ascend.png %{buildroot}/%{_datadir}/icons/hicolor/64x64/ascend.png
118     install -m 644 -D ascend.xml %{buildroot}/%{_datadir}/mime/packages/ascend.xml
119 jpye 1407 popd
120 jpye 1525
121     # file-type icon for ascend models (double click should open in ASCEND)
122     pushd pygtk/glade
123 jpye 2701 install -m 644 -D ascend-doc-48x48.svg %{buildroot}/%{_datadir}/icons/text-x-ascend-model.svg
124 jpye 1525 popd
125    
126 jpye 1691 # language file for use with gedit
127 jpye 2785 pushd tools/gtksourceview-3.0
128 jpye 2701 install -m 644 -D ascend.lang %{buildroot}/%{gtksourceview_lang_file}
129 jpye 1691 popd
130    
131 jpye 2701 #/usr/lib/rpm/redhat/brp-strip-shared /usr/bin/strip
132 jpye 2650
133 jpye 2785 ##Tricks
134     # Fix .desktop files entries
135 jpye 2786 desktop-file-install \
136     --set-icon=ascend-app \
137     --remove-key=Encoding \
138     %{buildroot}/%{_datadir}/applications/%{name}.desktop
139 johnpye 439
140 jpye 2785 # Fixed execute permission
141     pushd %{buildroot}/%{_libdir}
142     for i in `find . -perm /644 -type f \( -name "*.so" -o -name "*.sh" -o -name "*.py" \)`; do
143     chmod a+x $i
144     done
145     popd
146    
147     pushd %{buildroot}%{python2_sitearch}
148     for i in `find . -perm /644 -type f \( -name "*.so" -o -name "*.py" \)`; do
149     chmod a+x $i
150     done
151     popd
152    
153     chmod a+x %{buildroot}/%{_libdir}/libascend.so.1.0
154    
155 jpye 2786 #for file in %{buildroot}%{johnpye}/fprops/test/{ph,sat,sat1,ideal}; do
156     # chmod a+x $file
157     #done
158 jpye 2785
159 johnpye 448 %post
160 jpye 2650 /sbin/ldconfig
161 jpye 2785 update-desktop-database &> /dev/null || :
162 jpye 1523 update-mime-database /usr/share/mime &> /dev/null || :
163 jpye 2785 touch --no-create %{_datadir}/icons/hicolor &>/dev/null || :
164 johnpye 448
165     %postun
166 jpye 2650 /sbin/ldconfig
167 jpye 2785 update-desktop-database &> /dev/null || :
168 jpye 1523 update-mime-database /usr/share/mime &> /dev/null || :
169 jpye 2785 touch --no-create %{_datadir}/icons/hicolor &>/dev/null
170     gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
171 johnpye 448
172 jpye 2785 %posttrans
173     gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
174    
175 johnpye 439 %files
176 jpye 2701 %defattr(644,root,root)
177 johnpye 561 %doc INSTALL.txt LICENSE.txt
178 jpye 2701
179     %defattr(644,root,root)
180     %{_libdir}/ascend/models
181     %{_libdir}/ascend/solvers
182     %{_datadir}/mime/packages/ascend.xml
183 jpye 1691 %{gtksourceview_lang_file}
184 jpye 2701 %{_datadir}/icons/text-x-ascend-model.svg
185    
186     %defattr(755,root,root)
187 jpye 2650 %{_libdir}/libascend.so.*
188 jpye 2701
189     %defattr(755,root,root)
190     %{_bindir}/ascend
191     %{python_sitearch}/ascend/_ascpy.so
192     %defattr(644,root,root)
193     %{python_sitearch}/ascend/*.py
194     %{python_sitearch}/ascend/*.py[oc]
195     %{_datadir}/ascend/glade
196     %{_datadir}/applications/ascend.desktop
197     %{_datadir}/icons/ascend-app.png
198     %{_datadir}/icons/hicolor/64x64/ascend.png
199    
200 jpye 2786 # ...files python-fprops
201 jpye 2701 %defattr(755,root,root)
202 jpye 2650 %{python_sitearch}/_fprops.so
203 jpye 2701 %defattr(644,root,root)
204 jpye 2650 %{python_sitearch}/fprops.py
205     %{python_sitearch}/fprops.py[oc]
206    
207 jpye 1514 %files devel
208 jpye 2701 %defattr(755,root,root)
209     %{_bindir}/ascend-config
210     %{_includedir}/ascend
211 jpye 2018 %{_libdir}/lib*.so
212 johnpye 794
213 jpye 1514 %files doc
214 jpye 2701 %defattr(644,root,root)
215 jpye 1514 %doc doc/book.pdf
216    
217 johnpye 439 %changelog
218 jpye 2785 * Mon Jun 23 2014 John Pye <john.pye@anu.edu.au> 0.9.8
219     - Incorporating changes from Antonio Trande's official Fedora packaging
220     - See: http://pkgs.fedoraproject.org/cgit/ascend.git/tree/
221    
222 jpye 2650 * Wed Dec 12 2012 John Pye <john.pye@anu.edu.au> 0.9.8
223     - New version
224    
225 jpye 2029 * Thu Apr 30 2009 John Pye <john.pye@anu.edu.au> 0.9.6
226     - New version
227    
228 jpye 1815 * Wed Jun 25 2008 John Pye <john.pye@anu.edu.au> 0.9.5.115
229     - New version
230     - Moved ascend-config to -devel pkg.
231    
232 jpye 1691 * Wed Dec 26 2007 John Pye <john.pye@anu.edu.au> 0.9.5.114
233 jpye 1609 - Minor fixes: error output.
234     - New 'air properties' model.
235 jpye 1691 - GtkSourceView installed by Scons now.
236     - Added 'Incidence Graph' feature.
237 jpye 1609
238 jpye 1604 * Sun Aug 19 2007 John Pye <john.pye@anu.edu.au> 0.9.5.113
239     - External libraries renamed to 'lib<name>_ascend.so' for clarity
240     and to solve a Windows-based naming problem.
241     - Links in Help menu fixed (problem with call to Python webbrowser component).
242     - License re-tagged according to Fedora requirements.
243    
244 jpye 2785 * Sun Jul 22 2007 John Pye <john.pye@anu.edu.au> 0.9.5.112
245 jpye 1514 - solvers are now all built as separate shared libraries
246 jpye 1526 - mime-type icon added
247 jpye 1545 - RPM now builds on Fedora 5,6,7 and SUSE 10.0 and newer. Not Mandriva though.
248 jpye 1514
249 jpye 1412 * Mon Apr 23 2007 John Pye <john.pye@student.unsw.edu.au> 0.9.5.108
250 jpye 1410 - File ascend.lang has moved.
251     - book.pdf is included in package.
252     - some header files have been moved.
253 jpye 1407
254 johnpye 795 * Fri Jul 28 2006 John Pye <john.pye@student.unsw.edu.au>
255     - Added CONOPT support
256    
257 johnpye 794 * Wed Jul 12 2006 John Pye <john.pye@student.unsw.edu.au>
258     - Fixed fortran linking
259     - Removed ccache dependency
260     - Added xgraph dependency
261     - Added 'include' files plus 'ascend-config' script
262    
263 johnpye 652 * Thu Jun 01 2006 John Pye <john.pye@student.unsw.edu.au>
264     - Add Tcl/Tk interface to GNOME menu
265    
266 johnpye 554 * Tue May 02 2006 John Pye <john.pye@student.unsw.edu.au>
267     - Break out ascend-core, ascend-python and ascend-tcltk packages.
268    
269 johnpye 532 * Mon Apr 24 2006 John Pye <john.pye@student.unsw.edu.au>
270     - Modified for removed dir in pygtk source hierachy
271    
272 jpye 2785 * Thu Apr 06 2006 John Pye <john.pye@student.unsw.edu.au>
273 johnpye 439 - First RPM package for new SCons build

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