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

Contents of /trunk/ascend.spec.in

Parent Directory Parent Directory | Revision Log Revision Log


Revision 557 - (show annotations) (download)
Tue May 2 02:09:23 2006 UTC (13 years, 5 months ago) by johnpye
File size: 4150 byte(s)
More fixes to the RPM build.
1 Name: ascend
2 Summary: ASCEND modelling environment - shared library and model files.
3 Version: @VERSION@
4
5 # Use release "0" so that distro-released versions will override ours.
6 Release: 0.jdpipe
7
8 License: GPL
9 Group: Applications/Engineering
10 Source: %{name}-%{version}.tar.bz2
11 URL: http://inkscape.sourceforge.net/
12
13 Prefix: %{_prefix}
14 Packager: John Pye
15 Vendor: Carnegie Mellon University
16 BuildRoot: %{_tmppath}/%{name}-%{version}-root
17
18 BuildRequires: python >= 2.4, python-devel
19 BuildRequires: scons >= 0.96.1
20 BuildRequires: bison, flex
21 BuildRequires: swig >= 1.3.24
22 BuildRequires: desktop-file-utils
23
24 Requires(post): desktop-file-utils
25 Requires(postun): desktop-file-utils
26
27 Requires: python >= 2.4
28 Requires: pygtk2 >= 2.6, pygtk2-libglade
29 Requires: python-matplotlib, python-numeric
30 Requires: gtksourceview
31 Requires: make
32 Requires: gcc
33
34 %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 #%package -n ascend-python
43 #Version: @VERSION@
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: @VERSION@
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 %prep
64 %setup -q
65
66 %build
67 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
69 %install
70 rm -rf %{buildroot}
71 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
73 pushd pygtk/gnome
74 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 %clean
82 rm -rf %{buildroot}
83
84 %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 %files
93 %defattr(-, root, root)
94 %doc INSTALL tcltk98/release_notes/license.txt
95 %{_datadir}/applications/ascend.desktop
96 %{_datadir}/ascend/models
97 %{_libdir}/libascend.so
98
99 # %package -n ascend-python
100 %{_bindir}/ascend
101 %{_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 %{_datadir}/ascend/*.py
106 %{_datadir}/ascend/glade
107
108 # %package -n ascend-tcltk
109 %{_bindir}/ascend4
110 %{_datadir}/ascend/tcltk
111 %{_libdir}/libascendtcl.so
112
113 %changelog
114 * Tue May 02 2006 John Pye <john.pye@student.unsw.edu.au>
115 - Break out ascend-core, ascend-python and ascend-tcltk packages.
116
117 * Mon Apr 24 2006 John Pye <john.pye@student.unsw.edu.au>
118 - Modified for removed dir in pygtk source hierachy
119
120 * Thu Apr 04 2006 John Pye <john.pye@student.unsw.edu.au>
121 - First RPM package for new SCons build

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