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

Annotation of /trunk/ascend.spec

Parent Directory Parent Directory | Revision Log Revision Log


Revision 555 - (hide annotations) (download)
Tue May 2 01:33:10 2006 UTC (14 years, 1 month ago) by johnpye
File size: 4117 byte(s)
Some more on the RPMs. The tarball still missing some files.
1 johnpye 439 Name: ascend
2 johnpye 555 Summary: ASCEND modelling environment - shared library and model files.
3 johnpye 554 Version: 0.9.5.90
4 johnpye 439
5     # Use release "0" so that distro-released versions will override ours.
6     Release: 0.jdpipe
7    
8     License: GPL
9 johnpye 555 Group: Applications/Engineering
10 johnpye 442 Source: %{name}-%{version}.tar.bz2
11 johnpye 439 URL: http://inkscape.sourceforge.net/
12    
13     Prefix: %{_prefix}
14 johnpye 547 Packager: John Pye
15     Vendor: Carnegie Mellon University
16 johnpye 439 BuildRoot: %{_tmppath}/%{name}-%{version}-root
17    
18 johnpye 446 BuildRequires: python >= 2.4, python-devel
19 johnpye 547 BuildRequires: scons >= 0.96.1
20 johnpye 446 BuildRequires: bison, flex
21     BuildRequires: swig >= 1.3.24
22     BuildRequires: desktop-file-utils
23    
24 johnpye 439 Requires(post): desktop-file-utils
25     Requires(postun): desktop-file-utils
26    
27 johnpye 440 Requires: python >= 2.4
28     Requires: pygtk2 >= 2.6, pygtk2-libglade
29     Requires: python-matplotlib, python-numeric
30 johnpye 446 Requires: gtksourceview
31     Requires: make
32 johnpye 547 Requires: gcc
33 johnpye 440
34 johnpye 439 %description
35     ASCEND IV is both a large-scale object-oriented mathematical
36     modeling environment and a strongly typed mathematical modeling
37     language. Although ASCEND has primarily been developed by Chemical
38     Engineers, great care has been exercised to assure that it is
39     domain independent. ASCEND can support modeling activities in
40     fields from Architecture to (computational) Zoology.
41    
42 johnpye 555 #%package -n ascend-python
43     #Version: 0.9.5.90
44     #Summary: PyGTK user interface for ASCEND
45     #Group: Applications/Engineering
46     #
47     #%description -n ascend-python
48     #PyGTK user interface for ASCEND. This is a new interface that follows GNOME
49     #human interface guidelines as closely as possible. It does not as yet provide
50     #access to all of the ASCEND functionality provided by the Tcl/Tk interface.
51     #
52     #%package -n ascend-tcltk
53     #Version: 0.9.5.90
54     #Summary: Tcl/Tk user interface for ASCEND
55     #Group: Applications/Engineering
56     #
57     #%description -n ascend-tcltk
58     #Tcl/Tk user interface for ASCEND. This is the original ASCEND IV interface
59     #and is a more complete and mature interface than the alternative PyGTK
60     #interface. Use this interface if you need to use ASCEND *.a4s files or other
61     #functionality not provided by the PyGTK interface.
62    
63 johnpye 439 %prep
64 johnpye 555 %setup -q
65 johnpye 439
66     %build
67 johnpye 554 scons %{?_smp_mflags} 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
68 johnpye 439
69     %install
70     rm -rf %{buildroot}
71 johnpye 554 scons %{?_smp_mflags} 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
72 johnpye 439
73 johnpye 532 pushd pygtk/gnome
74 johnpye 447 install -o root -g root -m 644 -D ascend.desktop %{buildroot}/%{_datadir}/applications/ascend.desktop
75     install -o root -g root -m 644 -D ascend.png %{buildroot}/%{_datadir}/icons/ascend-app.png
76     install -o root -g root -m 644 -D ascend.png %{buildroot}/%{_datadir}/icons/hicolor/64x64/ascend.png
77     install -o root -g root -m 644 -D ascend.xml %{buildroot}/%{_datadir}/mime/packages/ascend.xml
78     install -o root -g root -m 644 -D ascend.lang %{buildroot}/%{_datadir}/gtksourceview-1.0/language-specs/ascend.lang
79     popd
80    
81 johnpye 439 %clean
82     rm -rf %{buildroot}
83    
84 johnpye 448 %post
85     update-desktop-database
86     update-mime-database /usr/share/mime
87    
88     %postun
89     update-desktop-database
90     update-mime-database /usr/share/mime
91    
92 johnpye 439 %files
93     %defattr(-, root, root)
94 johnpye 448 %doc INSTALL tcltk98/release_notes/license.txt
95 johnpye 554 %{_datadir}/applications/ascend.desktop
96     %{_datadir}/models
97     %{_libdir}/libascend.so
98    
99 johnpye 555 # %package -n ascend-python
100 johnpye 439 %{_bindir}/ascend
101 johnpye 448 %{_datadir}/gtksourceview-1.0/language-specs/ascend.lang
102     %{_datadir}/icons/ascend-app.png
103     %{_datadir}/icons/hicolor/64x64/ascend.png
104     %{_datadir}/mime/packages/ascend.xml
105 johnpye 554 %{_datadir}/ascend/python
106 johnpye 439
107 johnpye 555 # %package -n ascend-tcltk
108 johnpye 554 %{_bindir}/ascend4
109     %{_datadir}/ascend/tcltk
110     %{_libdir}/libascendtcl.so
111 johnpye 448
112 johnpye 439 %changelog
113 johnpye 554 * Tue May 02 2006 John Pye <john.pye@student.unsw.edu.au>
114     - Break out ascend-core, ascend-python and ascend-tcltk packages.
115    
116 johnpye 532 * Mon Apr 24 2006 John Pye <john.pye@student.unsw.edu.au>
117     - Modified for removed dir in pygtk source hierachy
118    
119 johnpye 439 * Thu Apr 04 2006 John Pye <john.pye@student.unsw.edu.au>
120     - First RPM package for new SCons build

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