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

Annotation of /trunk/ascend.spec.in

Parent Directory Parent Directory | Revision Log Revision Log


Revision 560 - (hide annotations) (download)
Wed May 3 02:42:02 2006 UTC (18 years, 5 months ago) by johnpye
File size: 4132 byte(s)
Corrected for renamed file
1 johnpye 438 Name: ascend
2 johnpye 555 Summary: ASCEND modelling environment - shared library and model files.
3 johnpye 438 Version: @VERSION@
4    
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 441 Source: %{name}-%{version}.tar.bz2
11 johnpye 438 URL: http://inkscape.sourceforge.net/
12    
13     Prefix: %{_prefix}
14 johnpye 546 Packager: John Pye
15     Vendor: Carnegie Mellon University
16 johnpye 438 BuildRoot: %{_tmppath}/%{name}-%{version}-root
17    
18 johnpye 446 BuildRequires: python >= 2.4, python-devel
19 johnpye 546 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 438 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 546 Requires: gcc
33 johnpye 440
34 johnpye 438 %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: @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 johnpye 438 %prep
64 johnpye 555 %setup -q
65 johnpye 438
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 438
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 438
73 johnpye 532 pushd pygtk/gnome
74 johnpye 446 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 438 %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 438 %files
93     %defattr(-, root, root)
94 johnpye 560 %doc INSTALL.txt LICENSE.txt
95 johnpye 554 %{_datadir}/applications/ascend.desktop
96 johnpye 557 %{_datadir}/ascend/models
97 johnpye 554 %{_libdir}/libascend.so
98    
99 johnpye 555 # %package -n ascend-python
100 johnpye 438 %{_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 557 %{_datadir}/ascend/*.py
106     %{_datadir}/ascend/glade
107 johnpye 438
108 johnpye 555 # %package -n ascend-tcltk
109 johnpye 554 %{_bindir}/ascend4
110     %{_datadir}/ascend/tcltk
111     %{_libdir}/libascendtcl.so
112 johnpye 448
113 johnpye 438 %changelog
114 johnpye 554 * 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 johnpye 532 * Mon Apr 24 2006 John Pye <john.pye@student.unsw.edu.au>
118     - Modified for removed dir in pygtk source hierachy
119    
120 johnpye 438 * 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