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

Annotation of /trunk/ascend.spec

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1411 - (hide annotations) (download)
Mon Apr 23 05:13:20 2007 UTC (12 years, 7 months ago) by jpye
File size: 5666 byte(s)
Woops, added book.pdf to ascend.spec.in.
Also include/system dir.
1 johnpye 439 Name: ascend
2 johnpye 601 Summary: ASCEND modelling environment
3 jpye 1395 Version: 0.9.5.108
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 johnpye 984 Release: 0
8 johnpye 439
9     License: GPL
10 johnpye 555 Group: Applications/Engineering
11 jpye 1395 Source: ascend-0.9.5.108.tar.bz2
12 johnpye 601 URL: http://ascend.cheme.cmu.edu/
13 johnpye 439
14     Prefix: %{_prefix}
15 johnpye 547 Packager: John Pye
16     Vendor: Carnegie Mellon University
17 johnpye 439 BuildRoot: %{_tmppath}/%{name}-%{version}-root
18    
19 johnpye 446 BuildRequires: python >= 2.4, python-devel
20 johnpye 794 BuildRequires: scons >= 0.96.91
21 johnpye 804 BuildRequires: bison >= 2.0
22 johnpye 794 BuildRequires: flex >= 2.5.4
23 johnpye 446 BuildRequires: swig >= 1.3.24
24 johnpye 987 BuildRequires: tk-devel >= 8.3, tcl-devel >= 8.3
25 johnpye 794 BuildRequires: tktable < 2.10, tktable >= 2.8
26 johnpye 446 BuildRequires: desktop-file-utils
27 johnpye 987 BuildRequires: sundials >= 2.2.1
28 johnpye 795 BuildRequires: conopt >= 3.14
29 johnpye 680
30     # This contains the libg2c library; which on FC5 is not in the path, unfort.
31 johnpye 676 BuildRequires: compat-gcc-32-g77 == 3.2.3
32 johnpye 446
33 johnpye 440 Requires: python >= 2.4
34 johnpye 562 Requires: pygtk2 >= 2.6
35     Requires: pygtk2-libglade
36     Requires: python-matplotlib
37     Requires: python-numeric
38 johnpye 446 Requires: gtksourceview
39 johnpye 655 Requires: xgraph >= 11
40 johnpye 987 # sundials is statically linked (hopefully)
41 johnpye 440
42 johnpye 439 %description
43     ASCEND IV is both a large-scale object-oriented mathematical
44     modeling environment and a strongly typed mathematical modeling
45     language. Although ASCEND has primarily been developed by Chemical
46     Engineers, great care has been exercised to assure that it is
47     domain independent. ASCEND can support modeling activities in
48     fields from Architecture to (computational) Zoology.
49    
50 johnpye 555 #%package -n ascend-python
51 jpye 1395 #Version: 0.9.5.108
52 johnpye 555 #Summary: PyGTK user interface for ASCEND
53     #Group: Applications/Engineering
54     #
55     #%description -n ascend-python
56     #PyGTK user interface for ASCEND. This is a new interface that follows GNOME
57     #human interface guidelines as closely as possible. It does not as yet provide
58     #access to all of the ASCEND functionality provided by the Tcl/Tk interface.
59     #
60     #%package -n ascend-tcltk
61 jpye 1395 #Version: 0.9.5.108
62 johnpye 555 #Summary: Tcl/Tk user interface for ASCEND
63     #Group: Applications/Engineering
64     #
65     #%description -n ascend-tcltk
66     #Tcl/Tk user interface for ASCEND. This is the original ASCEND IV interface
67     #and is a more complete and mature interface than the alternative PyGTK
68     #interface. Use this interface if you need to use ASCEND *.a4s files or other
69     #functionality not provided by the PyGTK interface.
70    
71 johnpye 439 %prep
72 jpye 1395 %setup -q -n ascend-0.9.5.108
73 johnpye 439
74     %build
75 johnpye 795 scons %{_smp_mflags} DEFAULT_ASCENDLIBRARY=%{_datadir}/ascend/models \
76 johnpye 676 INSTALL_ROOT=%{buildroot} \
77     INSTALL_PREFIX=%{_prefix} \
78     INSTALL_SHARE=%{_datadir} \
79     INSTALL_BIN=%{_bindir} \
80     INSTALL_INCLUDE=%{_includedir} \
81 johnpye 795 F2C_LIBPATH=/usr/lib/gcc-lib/i386-redhat-linux/3.2.3/ \
82 johnpye 796 WITH_SOLVERS=QRSLV,LSOD,CMSLV,LRSLV,CONOPT \
83 johnpye 795 pygtk tcltk
84 johnpye 439
85     %install
86     rm -rf %{buildroot}
87 johnpye 795 scons %{_smp_mflags} install
88 johnpye 439
89 johnpye 651 # Install menu entry for PyGTK interface, gtksourceview syntax highlighting, and MIME definition
90 johnpye 532 pushd pygtk/gnome
91 johnpye 564 install -m 644 -D ascend.desktop %{buildroot}/%{_datadir}/applications/ascend.desktop
92     install -m 644 -D ascend.png %{buildroot}/%{_datadir}/icons/ascend-app.png
93     install -m 644 -D ascend.png %{buildroot}/%{_datadir}/icons/hicolor/64x64/ascend.png
94     install -m 644 -D ascend.xml %{buildroot}/%{_datadir}/mime/packages/ascend.xml
95 jpye 1407 popd
96     pushd tools/gedit
97 johnpye 564 install -m 644 -D ascend.lang %{buildroot}/%{_datadir}/gtksourceview-1.0/language-specs/ascend.lang
98 johnpye 447 popd
99    
100 johnpye 651 # Install menu entry for Tcl/Tk interface
101     pushd tcltk/gnome
102     install -m 644 -D ascend4.desktop %{buildroot}/%{_datadir}/applications/ascend4.desktop
103     install -m 644 -D ascend4.png %{buildroot}/%{_datadir}/icons/ascend4-app.png
104     install -m 644 -D ascend4.png %{buildroot}/%{_datadir}/icons/hicolor/64x64/ascend4.png
105     popd
106    
107 johnpye 439 %clean
108     rm -rf %{buildroot}
109    
110 johnpye 448 %post
111     update-desktop-database
112     update-mime-database /usr/share/mime
113    
114     %postun
115     update-desktop-database
116     update-mime-database /usr/share/mime
117    
118 johnpye 439 %files
119     %defattr(-, root, root)
120 johnpye 561 %doc INSTALL.txt LICENSE.txt
121 jpye 1411 %{_datadir}/ascend/book.pdf
122    
123 johnpye 685 %{_bindir}/ascend-config
124 johnpye 557 %{_datadir}/ascend/models
125 johnpye 554 %{_libdir}/libascend.so
126 johnpye 652 %{_datadir}/mime/packages/ascend.xml
127     %{_datadir}/gtksourceview-1.0/language-specs/ascend.lang
128 johnpye 554
129 johnpye 555 # %package -n ascend-python
130 johnpye 439 %{_bindir}/ascend
131 johnpye 557 %{_datadir}/ascend/*.py
132 johnpye 562 %{_datadir}/ascend/*.pyc
133 johnpye 557 %{_datadir}/ascend/glade
134 johnpye 562 %{_datadir}/ascend/_ascpy.so
135 johnpye 652 %{_datadir}/applications/ascend.desktop
136     %{_datadir}/icons/ascend-app.png
137     %{_datadir}/icons/hicolor/64x64/ascend.png
138 johnpye 439
139 johnpye 555 # %package -n ascend-tcltk
140 johnpye 554 %{_bindir}/ascend4
141     %{_datadir}/ascend/tcltk
142     %{_libdir}/libascendtcl.so
143 johnpye 652 %{_datadir}/applications/ascend4.desktop
144     %{_datadir}/icons/ascend4-app.png
145     %{_datadir}/icons/hicolor/64x64/ascend4.png
146 johnpye 448
147 johnpye 794 # %package -b ascend-devel
148     %{_includedir}/compiler
149     %{_includedir}/general
150     %{_includedir}/utilities
151     %{_includedir}/solver
152 jpye 1410 %{_includedir}/linear
153     %{_includedir}/integrator
154 jpye 1411 %{_includedir}/system
155 johnpye 794
156 johnpye 439 %changelog
157 jpye 1407 * Mon Apr 23 2007 John Pye <john.pye@student.unsw.edu.au>
158 jpye 1410 - File ascend.lang has moved.
159     - book.pdf is included in package.
160     - some header files have been moved.
161 jpye 1407
162 johnpye 795 * Fri Jul 28 2006 John Pye <john.pye@student.unsw.edu.au>
163     - Added CONOPT support
164    
165 johnpye 794 * Wed Jul 12 2006 John Pye <john.pye@student.unsw.edu.au>
166     - Fixed fortran linking
167     - Removed ccache dependency
168     - Added xgraph dependency
169     - Added 'include' files plus 'ascend-config' script
170    
171 johnpye 652 * Thu Jun 01 2006 John Pye <john.pye@student.unsw.edu.au>
172     - Add Tcl/Tk interface to GNOME menu
173    
174 johnpye 554 * Tue May 02 2006 John Pye <john.pye@student.unsw.edu.au>
175     - Break out ascend-core, ascend-python and ascend-tcltk packages.
176    
177 johnpye 532 * Mon Apr 24 2006 John Pye <john.pye@student.unsw.edu.au>
178     - Modified for removed dir in pygtk source hierachy
179    
180 johnpye 439 * Thu Apr 04 2006 John Pye <john.pye@student.unsw.edu.au>
181     - First RPM package for new SCons build

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