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

Diff of /trunk/ascend.spec

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 602 by johnpye, Fri May 12 14:45:41 2006 UTC revision 826 by johnpye, Tue Aug 22 01:34:33 2006 UTC
# Line 1  Line 1 
1  Name:       ascend  Name:       ascend
2  Summary:    ASCEND modelling environment  Summary:    ASCEND modelling environment
3  Version:    0.9.5.91  Version:    0.9.5.97
4    
5  # Use release "0" so that distro-released versions will override ours.  # Use release 0.* so that other users can do patch releases with a higher number
6  Release:    0.jdpipe  # and still have the update occur automatically.
7    Release:    0
8    
9  License:    GPL  License:    GPL
10  Group:      Applications/Engineering  Group:      Applications/Engineering
11  Source:     ascend.tar.bz2  Source:     ascend-0.9.5.97.tar.bz2
12  URL:        http://ascend.cheme.cmu.edu/  URL:        http://ascend.cheme.cmu.edu/
13    
14  Prefix:     %{_prefix}  Prefix:     %{_prefix}
# Line 16  Vendor:        Carnegie Mellon University Line 17  Vendor:        Carnegie Mellon University
17  BuildRoot:  %{_tmppath}/%{name}-%{version}-root  BuildRoot:  %{_tmppath}/%{name}-%{version}-root
18    
19  BuildRequires: python >= 2.4, python-devel  BuildRequires: python >= 2.4, python-devel
20  BuildRequires: scons >= 0.96.1  BuildRequires: scons >= 0.96.91
21  BuildRequires: bison, flex  BuildRequires: bison >= 2.0
22    BuildRequires: flex >= 2.5.4
23  BuildRequires: swig >= 1.3.24  BuildRequires: swig >= 1.3.24
24  BuildRequires: desktop-file-utils  BuildRequires: tk-devel < 8.5, tcl-devel < 8.5
 BuildRequires: tk-devel < 8.5  
 BuildRequires: tcl-devel < 8.5  
25  BuildRequires: tktable < 2.10, tktable >= 2.8  BuildRequires: tktable < 2.10, tktable >= 2.8
26  BuildRequires: ccache  BuildRequires: desktop-file-utils
27    BuildRequires: sundials >= 2.3.0
28    BuildRequires: conopt >= 3.14
29    
30    # This contains the libg2c library; which on FC5 is not in the path, unfort.
31    BuildRequires: compat-gcc-32-g77 == 3.2.3
32    
33  Requires: python >= 2.4  Requires: python >= 2.4
34  Requires: pygtk2 >= 2.6  Requires: pygtk2 >= 2.6
# Line 31  Requires: pygtk2-libglade Line 36  Requires: pygtk2-libglade
36  Requires: python-matplotlib  Requires: python-matplotlib
37  Requires: python-numeric  Requires: python-numeric
38  Requires: gtksourceview  Requires: gtksourceview
39    Requires: xgraph >= 11
40    Requires: sundials >= 2.3.0
41    
42  %description  %description
43  ASCEND IV is both a large-scale object-oriented mathematical  ASCEND IV is both a large-scale object-oriented mathematical
# Line 41  domain independent. ASCEND can support m Line 48  domain independent. ASCEND can support m
48  fields from Architecture to (computational) Zoology.  fields from Architecture to (computational) Zoology.
49    
50  #%package -n ascend-python  #%package -n ascend-python
51  #Version:    0.9.5.91  #Version:    0.9.5.97
52  #Summary:    PyGTK user interface for ASCEND  #Summary:    PyGTK user interface for ASCEND
53  #Group:     Applications/Engineering  #Group:     Applications/Engineering
54  #  #
# Line 51  fields from Architecture to (computation Line 58  fields from Architecture to (computation
58  #access to all of the ASCEND functionality provided by the Tcl/Tk interface.  #access to all of the ASCEND functionality provided by the Tcl/Tk interface.
59  #  #
60  #%package -n ascend-tcltk  #%package -n ascend-tcltk
61  #Version:    0.9.5.91  #Version:    0.9.5.97
62  #Summary:    Tcl/Tk user interface for ASCEND  #Summary:    Tcl/Tk user interface for ASCEND
63  #Group:     Applications/Engineering  #Group:     Applications/Engineering
64  #  #
# Line 62  fields from Architecture to (computation Line 69  fields from Architecture to (computation
69  #functionality not provided by the PyGTK interface.  #functionality not provided by the PyGTK interface.
70    
71  %prep  %prep
72  %setup -q -n ascend  %setup -q -n ascend-0.9.5.97
73    
74  %build  %build
75  scons %{?_smp_mflags} CC="ccache gcc" CXX="ccache g++" DEFAULT_ASCENDLIBRARY=%{_datadir}/ascend/models INSTALL_ROOT=%{buildroot} INSTALL_PREFIX=%{_prefix} INSTALL_DATA=%{_datadir} INSTALL_BIN=%{_bindir} INSTALL_INCLUDE=%{_incdir} WITH_PYTHON=1 WITH_TCLTK=1 TCL=/usr TCL_LIB=tcl8.4 TK_LIB=tk8.4  scons %{_smp_mflags} DEFAULT_ASCENDLIBRARY=%{_datadir}/ascend/models \
76        INSTALL_ROOT=%{buildroot} \
77        INSTALL_PREFIX=%{_prefix} \
78        INSTALL_SHARE=%{_datadir} \
79        INSTALL_BIN=%{_bindir} \
80        INSTALL_INCLUDE=%{_includedir} \
81        F2C_LIBPATH=/usr/lib/gcc-lib/i386-redhat-linux/3.2.3/ \
82        WITH_SOLVERS=QRSLV,LSOD,CMSLV,LRSLV,CONOPT \
83        pygtk tcltk
84    
85  %install  %install
86  rm -rf %{buildroot}  rm -rf %{buildroot}
87  scons %{?_smp_mflags} CC="ccache gcc" CXX="ccache g++" DEFAULT_ASCENDLIBRARY=%{_datadir}/ascend/models INSTALL_ROOT=%{buildroot} INSTALL_PREFIX=%{_prefix} INSTALL_DATA=%{_datadir} INSTALL_BIN=%{_bindir} INSTALL_INCLUDE=%{_incdir} WITH_PYTHON=1 WITH_TCLTK=1 install  scons %{_smp_mflags} install
88    
89    # Install menu entry for PyGTK interface, gtksourceview syntax highlighting, and MIME definition
90  pushd pygtk/gnome  pushd pygtk/gnome
91  install -m 644 -D ascend.desktop %{buildroot}/%{_datadir}/applications/ascend.desktop  install -m 644 -D ascend.desktop %{buildroot}/%{_datadir}/applications/ascend.desktop
92  install -m 644 -D ascend.png %{buildroot}/%{_datadir}/icons/ascend-app.png  install -m 644 -D ascend.png %{buildroot}/%{_datadir}/icons/ascend-app.png
# Line 79  install -m 644 -D ascend.xml %{buildroot Line 95  install -m 644 -D ascend.xml %{buildroot
95  install -m 644 -D ascend.lang %{buildroot}/%{_datadir}/gtksourceview-1.0/language-specs/ascend.lang  install -m 644 -D ascend.lang %{buildroot}/%{_datadir}/gtksourceview-1.0/language-specs/ascend.lang
96  popd  popd
97    
98    # Install menu entry for Tcl/Tk interface
99    pushd tcltk/gnome
100    install -m 644 -D ascend4.desktop %{buildroot}/%{_datadir}/applications/ascend4.desktop
101    install -m 644 -D ascend4.png %{buildroot}/%{_datadir}/icons/ascend4-app.png
102    install -m 644 -D ascend4.png %{buildroot}/%{_datadir}/icons/hicolor/64x64/ascend4.png
103    popd
104    
105  %clean  %clean
106  rm -rf %{buildroot}  rm -rf %{buildroot}
107    
# Line 93  update-mime-database /usr/share/mime Line 116  update-mime-database /usr/share/mime
116  %files  %files
117  %defattr(-, root, root)  %defattr(-, root, root)
118  %doc INSTALL.txt LICENSE.txt  %doc INSTALL.txt LICENSE.txt
119  %{_datadir}/applications/ascend.desktop  %{_bindir}/ascend-config
120  %{_datadir}/ascend/models  %{_datadir}/ascend/models
121  %{_libdir}/libascend.so  %{_libdir}/libascend.so
122    %{_datadir}/mime/packages/ascend.xml
123    %{_datadir}/gtksourceview-1.0/language-specs/ascend.lang
124    
125  # %package -n ascend-python  # %package -n ascend-python
126  %{_bindir}/ascend  %{_bindir}/ascend
 %{_datadir}/gtksourceview-1.0/language-specs/ascend.lang  
 %{_datadir}/icons/ascend-app.png  
 %{_datadir}/icons/hicolor/64x64/ascend.png  
 %{_datadir}/mime/packages/ascend.xml  
127  %{_datadir}/ascend/*.py  %{_datadir}/ascend/*.py
128  %{_datadir}/ascend/*.pyc  %{_datadir}/ascend/*.pyc
129  %{_datadir}/ascend/*.pyo  %{_datadir}/ascend/*.pyo
130  %{_datadir}/ascend/glade  %{_datadir}/ascend/glade
131  %{_datadir}/ascend/_ascpy.so  %{_datadir}/ascend/_ascpy.so
132    %{_datadir}/applications/ascend.desktop
133    %{_datadir}/icons/ascend-app.png
134    %{_datadir}/icons/hicolor/64x64/ascend.png
135    
136  # %package -n ascend-tcltk  # %package -n ascend-tcltk
137  %{_bindir}/ascend4  %{_bindir}/ascend4
138  %{_datadir}/ascend/tcltk  %{_datadir}/ascend/tcltk
139  %{_libdir}/libascendtcl.so  %{_libdir}/libascendtcl.so
140    %{_datadir}/applications/ascend4.desktop
141    %{_datadir}/icons/ascend4-app.png
142    %{_datadir}/icons/hicolor/64x64/ascend4.png
143    
144    # %package -b ascend-devel
145    %{_includedir}/compiler
146    %{_includedir}/general
147    %{_includedir}/utilities
148    %{_includedir}/solver
149    
150  %changelog  %changelog
151    * Fri Jul 28 2006 John Pye <john.pye@student.unsw.edu.au>
152    - Added CONOPT support
153    
154    * Wed Jul 12 2006 John Pye <john.pye@student.unsw.edu.au>
155    - Fixed fortran linking
156    - Removed ccache dependency
157    - Added xgraph dependency
158    - Added 'include' files plus 'ascend-config' script
159    
160    * Thu Jun 01 2006 John Pye <john.pye@student.unsw.edu.au>
161    - Add Tcl/Tk interface to GNOME menu
162    
163  * Tue May 02 2006 John Pye <john.pye@student.unsw.edu.au>  * Tue May 02 2006 John Pye <john.pye@student.unsw.edu.au>
164  - Break out ascend-core, ascend-python and ascend-tcltk packages.  - Break out ascend-core, ascend-python and ascend-tcltk packages.
165    

Legend:
Removed from v.602  
changed lines
  Added in v.826

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