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

Diff of /trunk/ascend.spec.in

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

revision 1442 by jpye, Sat May 26 07:31:34 2007 UTC revision 1443 by jpye, Sat May 26 09:00:53 2007 UTC
# Line 1  Line 1 
1    %define pyver %(python -c 'import sys ; print sys.version[:3]')
2    %{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
3    %{!?python_sitearch: %define python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")}
4    
5  Name:       ascend  Name:       ascend
6  Summary:    ASCEND modelling environment  Summary:    ASCEND modelling environment
7  Version:    @VERSION@  Version:    @VERSION@
# Line 6  Version:   @VERSION@ Line 10  Version:   @VERSION@
10  # and still have the update occur automatically.  # and still have the update occur automatically.
11  Release:    @RELEASE@%{?dist}  Release:    @RELEASE@%{?dist}
12    
   
13  License:    GPL  License:    GPL
14  Group:      Applications/Engineering  Group:      Applications/Engineering
15  Source:     @DISTTAR_NAME@.tar.bz2  Source:     @DISTTAR_NAME@.tar.bz2
# Line 15  URL:       http://ascend.cheme.cmu.edu/ Line 18  URL:       http://ascend.cheme.cmu.edu/
18  Prefix:     %{_prefix}  Prefix:     %{_prefix}
19  Packager:   John Pye  Packager:   John Pye
20  Vendor:     Carnegie Mellon University  Vendor:     Carnegie Mellon University
21  BuildRoot:  %{_tmppath}/%{name}-%{version}-root  
22    Buildroot: /var/tmp/%{name}-buildroot
23    
24  %description  %description
25  ASCEND IV is both a large-scale object-oriented mathematical  ASCEND IV is both a large-scale object-oriented mathematical
# Line 114  scons %{_smp_mflags} DEFAULT_ASCENDLIBRA Line 118  scons %{_smp_mflags} DEFAULT_ASCENDLIBRA
118      INSTALL_BIN=%{_bindir} \      INSTALL_BIN=%{_bindir} \
119      INSTALL_INCLUDE=%{_includedir} \      INSTALL_INCLUDE=%{_includedir} \
120      WITH_SOLVERS=QRSLV,LSOD,CMSLV,IDA,LRSLV,CONOPT \      WITH_SOLVERS=QRSLV,LSOD,CMSLV,IDA,LRSLV,CONOPT \
121      WITH_LOCAL_DOC=1 \      INSTALL_DOC=%{_docdir}/%{name}-%{version} \
122      INSTALL_DOC=%{_datadir}/doc/%{name}-%{version} \      WITH_DOC_BUILD=0 \
123        WITH_DOC_INSTALL=0 \
124      ABSOLUTE_PATHS=1 \      ABSOLUTE_PATHS=1 \
125        CC="%{?ccache} gcc" \
126        CXX="%{?ccache} g++" \
127      pygtk tcltk      pygtk tcltk
128    
129  %install  %install
# Line 134  pushd tools/gedit Line 141  pushd tools/gedit
141  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
142  popd  popd
143    
144    # TODO...
145    #%__python -c 'from compileall import *; compile_dir("'$RPM_BUILD_ROOT'/%{python_sitelib}",10,"%{python_sitelib}")'
146    #%__python -O -c 'from compileall import *; compile_dir("'$RPM_BUILD_ROOT'/%{python_sitelib}",10,"%{python_sitelib}")'
147    
148  # Install menu entry for Tcl/Tk interface  # Install menu entry for Tcl/Tk interface
149  pushd tcltk/gnome  pushd tcltk/gnome
150  install -m 644 -D ascend4.desktop %{buildroot}/%{_datadir}/applications/ascend4.desktop  install -m 644 -D ascend4.desktop %{buildroot}/%{_datadir}/applications/ascend4.desktop
# Line 155  update-mime-database /usr/share/mime Line 166  update-mime-database /usr/share/mime
166  %files  %files
167  %defattr(-, root, root)  %defattr(-, root, root)
168  %doc INSTALL.txt LICENSE.txt  %doc INSTALL.txt LICENSE.txt
169  %{_datadir}/doc/%{name}-%{version}/book.pdf  %doc doc/book.pdf
170    
171  %{_bindir}/ascend-config  %{_bindir}/ascend-config
172  %{_datadir}/ascend/models  %{_datadir}/ascend/models

Legend:
Removed from v.1442  
changed lines
  Added in v.1443

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