/[ascend]/branches/fprops2/ascend.spec
ViewVC logotype

Diff of /branches/fprops2/ascend.spec

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

revision 2785 by jpye, Mon Jun 23 08:17:49 2014 UTC revision 2786 by jpye, Wed Jun 25 05:35:51 2014 UTC
# Line 1  Line 1 
 Name:       ascend  
 Summary:    ASCEND modelling environment  
 Version:    0.9.9  
 Release:    0%{?dist}  
 License:    GPLv2+  
 URL:        http://ascend4.org/  
 Source:     ascend-0.9.9.tar.bz2  
   
1  # prevent filtering for 'provides' tagging of ASCEND models/solvers  # prevent filtering for 'provides' tagging of ASCEND models/solvers
2  %{?filter_setup:  %{?filter_setup:
3  %filter_provides_in %{_libdir}/ascend/models/.*\.so$  %filter_provides_in %{_libdir}/ascend/models/.*\.so$
4  %filter_provides_in %{_libdir}/ascend/solvers/.*\.so$  %filter_provides_in %{_libdir}/ascend/solvers/.*\.so$
5  %filter_setup  %filter_setup
6  }  }
7    %{!?python2_sitearch: %global python2_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(pat_specific=1)")}
8    %global gtksourceview_lang_file %{_datadir}/gtksourceview-3.0/language-specs/ascend.lang
9    
10    Name:       ascend
11    Summary:    ASCEND modelling environment
12    Version:    0.9.9
13    Release:    0%{?dist}
14    License:    GPLv2+
15    URL:        http://ascend4.org/
16    Source:     http://ascend4.org/ascend-0.9.9.tar.bz2
17    
18  #------ build dependencies -------  #------ build dependencies -------
19  BuildRequires: scons >= 0.96.92  BuildRequires: scons >= 0.96.92
# Line 29  BuildRequires: python2-devel Line 31  BuildRequires: python2-devel
31  BuildRequires: coin-or-Ipopt-devel >= 3.10  BuildRequires: coin-or-Ipopt-devel >= 3.10
32  BuildRequires: MUMPS-devel  BuildRequires: MUMPS-devel
33  BuildRequires: lapack-devel  BuildRequires: lapack-devel
34    BuildRequires: CUnit-devel
35  %else  %else
36  BuildRequires: python-devel >= 2.4  BuildRequires: python-devel >= 2.4
37  BuildRequires: gcc-c++ >= 4  BuildRequires: gcc-c++ >= 4
# Line 46  Requires: blas%{?_isa} Line 49  Requires: blas%{?_isa}
49  Requires: sundials%{?_isa}  Requires: sundials%{?_isa}
50  Requires: coin-or-Ipopt%{?_isa}  Requires: coin-or-Ipopt%{?_isa}
51    
52  # ...pygtk  # ... pygtk
53  Requires: python%{?_isa} >= 2.4  Requires: python%{?_isa} >= 2.4
54  Requires: pygtk2 >= 2.6  Requires: pygtk2 >= 2.6
55  #         ^...libglade is no longer required; we use gtk.Builder  #   ^...libglade is no longer required; we use gtk.Builder
56    
57  Requires: python-matplotlib  Requires: python-matplotlib
58  Requires: numpy  Requires: numpy
59  Requires: ipython  Requires: ipython
60  # syntax highlighting for gedit  # ... syntax highlighting for gedit
61  Requires: gtksourceview3  Requires: gtksourceview3
62    
63  # ... file association  # ... file association
64  #Requires(post): desktop-file-utils shared-mime-info  #Requires(post): desktop-file-utils shared-mime-info
65  #Requires(postun): desktop-file-utils shared-mime-info  #Requires(postun): desktop-file-utils shared-mime-info
66    
 %{!?python2_sitearch: %define python2_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(pat_specific=1)")}  
 %define gtksourceview_lang_file %{_datadir}/gtksourceview-3.0/language-specs/ascend.lang  
   
67  %description  %description
68  ASCEND IV is both a large-scale object-oriented mathematical  ASCEND IV is both a large-scale object-oriented mathematical
69  modeling environment and a strongly typed mathematical modeling  modeling environment and a strongly typed mathematical modeling
# Line 71  Engineers, great care has been exercised Line 72  Engineers, great care has been exercised
72  domain independent. ASCEND can support modeling activities in  domain independent. ASCEND can support modeling activities in
73  fields from Architecture to (computational) Zoology.  fields from Architecture to (computational) Zoology.
74    
 # for the moment we'll just make one big super-package, to keep things  
 # simple for end-users.  
   
75  %package devel  %package devel
76  Summary: Developer files ASCEND  Summary: ASCEND developer files
77  Requires: %{name}  Requires: %{name} = %{version}-%{release}
78  %description devel  %description devel
79  Developer files for ASCEND, in the form for C header files for the core  Developer files for ASCEND, in the form for C header files for the core
80  ASCEND library, 'libascend'.  ASCEND library, 'libascend'.
81    
82  %package doc  %package doc
83  Summary: Documentation for ASCEND  Summary: ASCEND documentation
84    Requires: %{name} = %{version}-%{release}
85  %description doc  %description doc
86  Documentation for ASCEND, in the form of a PDF User's Manual.  Documentation for ASCEND, in the form of a PDF User's Manual.
87    
 #%package -n libascend1  
 #Summary: Shared library for core ASCEND functionality  
 #%description -n libascend1  
 #Shared library for ASCEND, providing core functionality including compiler  
 #and solver API.  
   
 #%package -n ascend-python  
 #Version:    %{version}  
 #Summary:    PyGTK user interface for ASCEND  
 #  
 #%description -n ascend-python  
 #PyGTK user interface for ASCEND. This is a new interface that follows GNOME  
 #human interface guidelines as closely as possible. It does not as yet provide  
 #access to all of the ASCEND functionality provided by the Tcl/Tk interface.  
 #  
   
 #%package tcltk  
 #Summary: Tcl/Tk user interface for ASCEND  
 #Requires: xgraph >= 11  
 #Requires: tcl%{?_isa} >= 8.3  
 #Requires: tk%{?_isa} >= 8.3  
 #Requires: tktable < 2.10, tktable >= 2.8  
 #  
 #%description tcltk  
 #Tcl/Tk user interface for ASCEND. This is the original ASCEND IV interface  
 #and is a more complete and mature interface than the alternative PyGTK  
 #interface. Use this interface if you need to use ASCEND *.a4s files or other  
 #functionality not provided by the PyGTK interface.  
   
88  %prep  %prep
89  %setup -q -n ascend-0.9.9  %setup -q -n %{name}-%{version}
90    # note Antonio Trande had some sed actions to insert directories into SConstruct, not sure that's needed actually.
91    
92  %build  %build
93  scons %{_smp_mflags} \  scons %{_smp_mflags} \
# Line 130  scons %{_smp_mflags} \ Line 101  scons %{_smp_mflags} \
101      DEBUG=1 \      DEBUG=1 \
102      WITH_DOC_BUILD=0 \      WITH_DOC_BUILD=0 \
103      WITH_DOC_INSTALL=0 \      WITH_DOC_INSTALL=0 \
104        WITH_TCLTK=0 \
105      WITH_SOLVERS=QRSLV,LSODE,CMSLV,IDA,LRSLV,CONOPT,DOPRI5,IPOPT \      WITH_SOLVERS=QRSLV,LSODE,CMSLV,IDA,LRSLV,CONOPT,DOPRI5,IPOPT \
106      ABSOLUTE_PATHS=1 \      ABSOLUTE_PATHS=1 \
107      %{?__cc:CC="%__cc"} %{?__cxx:CXX="%__cxx"} \      %{?__cc:CC="%{?ccache} %__cc"} %{?__cxx:CXX="%{?ccache} %__cxx"} \
108      ascend ascxx pygtk tcltk models solvers      ascend ascxx pygtk tcltk models solvers
109    
110  %install  %install
# Line 156  pushd tools/gtksourceview-3.0 Line 128  pushd tools/gtksourceview-3.0
128  install -m 644 -D ascend.lang %{buildroot}/%{gtksourceview_lang_file}  install -m 644 -D ascend.lang %{buildroot}/%{gtksourceview_lang_file}
129  popd  popd
130    
 # Install menu entry for Tcl/Tk interface  
 #pushd tcltk/gnome  
 #install -m 644 -D ascend4.desktop %{buildroot}/%{_datadir}/applications/ascend4.desktop  
 #install -m 644 -D ascend4.png %{buildroot}/%{_datadir}/icons/ascend4-app.png  
 #install -m 644 -D ascend4.png %{buildroot}/%{_datadir}/icons/hicolor/64x64/ascend4.png  
 #popd  
   
131  #/usr/lib/rpm/redhat/brp-strip-shared /usr/bin/strip  #/usr/lib/rpm/redhat/brp-strip-shared /usr/bin/strip
132    
133  ##Tricks  ##Tricks
134  # Fix .desktop files entries  # Fix .desktop files entries
135  desktop-file-install                                    \  desktop-file-install \
136   --set-icon=ascend-app                                  \      --set-icon=ascend-app \
137   --remove-key=Encoding                                  \      --remove-key=Encoding \
138  %{buildroot}/%{_datadir}/applications/%{name}.desktop      %{buildroot}/%{_datadir}/applications/%{name}.desktop
   
 #desktop-file-install                                    \  
 # --set-icon=ascend4-app                                  \  
 # --remove-key=Encoding                                  \  
 # --set-key=Exec --set-value="env ASCENDTK=%{_datadir}/%{name}/tcltk %{name}4" \  
 #%{buildroot}/%{_datadir}/applications/%{name}4.desktop  
139    
140  # Fixed execute permission  # Fixed execute permission
141  pushd %{buildroot}/%{_libdir}  pushd %{buildroot}/%{_libdir}
# Line 193  popd Line 152  popd
152    
153  chmod a+x %{buildroot}/%{_libdir}/libascend.so.1.0  chmod a+x %{buildroot}/%{_libdir}/libascend.so.1.0
154    
155  for file in %{buildroot}%{johnpye}/fprops/test/{ph,sat,sat1,ideal}; do  #for file in %{buildroot}%{johnpye}/fprops/test/{ph,sat,sat1,ideal}; do
156     chmod a+x $file  #   chmod a+x $file
157  done  #done
158    
159  %post  %post
160  /sbin/ldconfig  /sbin/ldconfig
# Line 224  gtk-update-icon-cache %{_datadir}/icons/ Line 183  gtk-update-icon-cache %{_datadir}/icons/
183  %{gtksourceview_lang_file}  %{gtksourceview_lang_file}
184  %{_datadir}/icons/text-x-ascend-model.svg  %{_datadir}/icons/text-x-ascend-model.svg
185    
 #%files -n libascend1  
186  %defattr(755,root,root)  %defattr(755,root,root)
187  %{_libdir}/libascend.so.*  %{_libdir}/libascend.so.*
188    
 # %package python  
189  %defattr(755,root,root)  %defattr(755,root,root)
190  %{_bindir}/ascend  %{_bindir}/ascend
191  %{python_sitearch}/ascend/_ascpy.so  %{python_sitearch}/ascend/_ascpy.so
# Line 240  gtk-update-icon-cache %{_datadir}/icons/ Line 197  gtk-update-icon-cache %{_datadir}/icons/
197  %{_datadir}/icons/ascend-app.png  %{_datadir}/icons/ascend-app.png
198  %{_datadir}/icons/hicolor/64x64/ascend.png  %{_datadir}/icons/hicolor/64x64/ascend.png
199    
200  # %package -n python-fprops  # ...files python-fprops
201  %defattr(755,root,root)  %defattr(755,root,root)
202  %{python_sitearch}/_fprops.so  %{python_sitearch}/_fprops.so
203  %defattr(644,root,root)  %defattr(644,root,root)
204  %{python_sitearch}/fprops.py  %{python_sitearch}/fprops.py
205  %{python_sitearch}/fprops.py[oc]  %{python_sitearch}/fprops.py[oc]
206    
 #%files tcltk  
 #%defattr(755,root,root)  
 #%{_bindir}/ascend4  
 #%{_libdir}/libascendtcl.so  
 #%defattr(644,root,root)  
 #%{_datadir}/ascend/tcltk  
 #%{_datadir}/applications/ascend4.desktop  
 #%{_datadir}/icons/ascend4-app.png  
 #%{_datadir}/icons/hicolor/64x64/ascend4.png  
   
207  %files devel  %files devel
208  %defattr(755,root,root)  %defattr(755,root,root)
209  %{_bindir}/ascend-config  %{_bindir}/ascend-config
# Line 324  gtk-update-icon-cache %{_datadir}/icons/ Line 271  gtk-update-icon-cache %{_datadir}/icons/
271    
272  * Thu Apr 06 2006 John Pye <john.pye@student.unsw.edu.au>  * Thu Apr 06 2006 John Pye <john.pye@student.unsw.edu.au>
273  - First RPM package for new SCons build  - First RPM package for new SCons build
   
 # vim: set syntax=spec:  
   

Legend:
Removed from v.2785  
changed lines
  Added in v.2786

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