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

Annotation of /trunk/ascend.spec

Parent Directory Parent Directory | Revision Log Revision Log


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

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