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

Annotation of /trunk/ascend.spec.in

Parent Directory Parent Directory | Revision Log Revision Log


Revision 677 - (hide annotations) (download)
Wed Jun 21 10:02:54 2006 UTC (18 years, 3 months ago) by johnpye
File size: 4780 byte(s)
Removing reference to Lsode.o in tcl/tk makefile.
1 johnpye 438 Name: ascend
2 johnpye 601 Summary: ASCEND modelling environment
3 johnpye 438 Version: @VERSION@
4    
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: @RELEASE@
8 johnpye 438
9     License: GPL
10 johnpye 555 Group: Applications/Engineering
11 johnpye 601 Source: @DISTTAR_NAME@.tar.bz2
12     URL: http://ascend.cheme.cmu.edu/
13 johnpye 438
14     Prefix: %{_prefix}
15 johnpye 546 Packager: John Pye
16     Vendor: Carnegie Mellon University
17 johnpye 438 BuildRoot: %{_tmppath}/%{name}-%{version}-root
18    
19 johnpye 446 BuildRequires: python >= 2.4, python-devel
20 johnpye 546 BuildRequires: scons >= 0.96.1
21 johnpye 446 BuildRequires: bison, flex
22     BuildRequires: swig >= 1.3.24
23     BuildRequires: desktop-file-utils
24 johnpye 561 BuildRequires: tk-devel < 8.5
25     BuildRequires: tcl-devel < 8.5
26     BuildRequires: tktable < 2.10, tktable >= 2.8
27 johnpye 676 BuildRequires: compat-gcc-32-g77 == 3.2.3
28 johnpye 446
29 johnpye 440 Requires: python >= 2.4
30 johnpye 562 Requires: pygtk2 >= 2.6
31     Requires: pygtk2-libglade
32     Requires: python-matplotlib
33     Requires: python-numeric
34 johnpye 446 Requires: gtksourceview
35 johnpye 655 Requires: xgraph >= 11
36 johnpye 440
37 johnpye 438 %description
38     ASCEND IV is both a large-scale object-oriented mathematical
39     modeling environment and a strongly typed mathematical modeling
40     language. Although ASCEND has primarily been developed by Chemical
41     Engineers, great care has been exercised to assure that it is
42     domain independent. ASCEND can support modeling activities in
43     fields from Architecture to (computational) Zoology.
44    
45 johnpye 555 #%package -n ascend-python
46     #Version: @VERSION@
47     #Summary: PyGTK user interface for ASCEND
48     #Group: Applications/Engineering
49     #
50     #%description -n ascend-python
51     #PyGTK user interface for ASCEND. This is a new interface that follows GNOME
52     #human interface guidelines as closely as possible. It does not as yet provide
53     #access to all of the ASCEND functionality provided by the Tcl/Tk interface.
54     #
55     #%package -n ascend-tcltk
56     #Version: @VERSION@
57     #Summary: Tcl/Tk user interface for ASCEND
58     #Group: Applications/Engineering
59     #
60     #%description -n ascend-tcltk
61     #Tcl/Tk user interface for ASCEND. This is the original ASCEND IV interface
62     #and is a more complete and mature interface than the alternative PyGTK
63     #interface. Use this interface if you need to use ASCEND *.a4s files or other
64     #functionality not provided by the PyGTK interface.
65    
66 johnpye 438 %prep
67 johnpye 602 %setup -q -n @DISTTAR_NAME@
68 johnpye 438
69     %build
70 johnpye 676 scons %{?_smp_mflags} DEFAULT_ASCENDLIBRARY=%{_datadir}/ascend/models \
71     INSTALL_ROOT=%{buildroot} \
72     INSTALL_PREFIX=%{_prefix} \
73     INSTALL_SHARE=%{_datadir} \
74     INSTALL_BIN=%{_bindir} \
75     INSTALL_INCLUDE=%{_includedir} \
76 johnpye 677 F2C_LIBPATH=/usr/lib/gcc-lib/i386-redhat-linux/3.2.3/ \
77 johnpye 676 WITH_SOLVERS=QRSLV,LSOD,CMSLV \
78     pygtk tcltk
79 johnpye 438
80     %install
81     rm -rf %{buildroot}
82 johnpye 653 scons %{?_smp_mflags} install
83 johnpye 438
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 446 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 438 %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 438 %files
112     %defattr(-, root, root)
113 johnpye 560 %doc INSTALL.txt LICENSE.txt
114 johnpye 557 %{_datadir}/ascend/models
115 johnpye 554 %{_libdir}/libascend.so
116 johnpye 652 %{_datadir}/mime/packages/ascend.xml
117     %{_datadir}/gtksourceview-1.0/language-specs/ascend.lang
118 johnpye 554
119 johnpye 555 # %package -n ascend-python
120 johnpye 438 %{_bindir}/ascend
121 johnpye 557 %{_datadir}/ascend/*.py
122 johnpye 562 %{_datadir}/ascend/*.pyc
123     %{_datadir}/ascend/*.pyo
124 johnpye 557 %{_datadir}/ascend/glade
125 johnpye 562 %{_datadir}/ascend/_ascpy.so
126 johnpye 652 %{_datadir}/applications/ascend.desktop
127     %{_datadir}/icons/ascend-app.png
128     %{_datadir}/icons/hicolor/64x64/ascend.png
129 johnpye 438
130 johnpye 555 # %package -n ascend-tcltk
131 johnpye 554 %{_bindir}/ascend4
132     %{_datadir}/ascend/tcltk
133     %{_libdir}/libascendtcl.so
134 johnpye 652 %{_datadir}/applications/ascend4.desktop
135     %{_datadir}/icons/ascend4-app.png
136     %{_datadir}/icons/hicolor/64x64/ascend4.png
137 johnpye 448
138 johnpye 438 %changelog
139 johnpye 652 * Thu Jun 01 2006 John Pye <john.pye@student.unsw.edu.au>
140     - Add Tcl/Tk interface to GNOME menu
141    
142 johnpye 554 * Tue May 02 2006 John Pye <john.pye@student.unsw.edu.au>
143     - Break out ascend-core, ascend-python and ascend-tcltk packages.
144    
145 johnpye 532 * Mon Apr 24 2006 John Pye <john.pye@student.unsw.edu.au>
146     - Modified for removed dir in pygtk source hierachy
147    
148 johnpye 438 * Thu Apr 04 2006 John Pye <john.pye@student.unsw.edu.au>
149     - First RPM package for new SCons build

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