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

Annotation of /trunk/ascend.spec

Parent Directory Parent Directory | Revision Log Revision Log


Revision 554 - (hide annotations) (download)
Tue May 2 00:51:02 2006 UTC (14 years, 1 month ago) by johnpye
File size: 3232 byte(s)
Fixed building of source tarball using 'scons dist'.
Will next add automated building of RPM targets.
Started work on building of separate RPMs for tcltk and python interfaces.
1 johnpye 439
2     Name: ascend
3     Summary: ASCEND Modelling Environment
4 johnpye 554 Version: 0.9.5.90
5 johnpye 439
6     # Use release "0" so that distro-released versions will override ours.
7     Release: 0.jdpipe
8    
9     License: GPL
10     Group: Applications/Graphics
11 johnpye 442 Source: %{name}-%{version}.tar.bz2
12 johnpye 439 URL: http://inkscape.sourceforge.net/
13    
14     Prefix: %{_prefix}
15 johnpye 547 Packager: John Pye
16     Vendor: Carnegie Mellon University
17 johnpye 439 BuildRoot: %{_tmppath}/%{name}-%{version}-root
18    
19 johnpye 446 BuildRequires: python >= 2.4, python-devel
20 johnpye 547 BuildRequires: scons >= 0.96.1
21 johnpye 446 BuildRequires: bison, flex
22     BuildRequires: swig >= 1.3.24
23     BuildRequires: desktop-file-utils
24    
25 johnpye 439 Requires(post): desktop-file-utils
26     Requires(postun): desktop-file-utils
27    
28 johnpye 440 Requires: python >= 2.4
29     Requires: pygtk2 >= 2.6, pygtk2-libglade
30     Requires: python-matplotlib, python-numeric
31 johnpye 446 Requires: gtksourceview
32     Requires: make
33 johnpye 547 Requires: gcc
34 johnpye 440
35 johnpye 439 %description
36     ASCEND IV is both a large-scale object-oriented mathematical
37     modeling environment and a strongly typed mathematical modeling
38     language. Although ASCEND has primarily been developed by Chemical
39     Engineers, great care has been exercised to assure that it is
40     domain independent. ASCEND can support modeling activities in
41     fields from Architecture to (computational) Zoology.
42    
43     %prep
44 johnpye 548 %setup -n ascend -q
45 johnpye 439
46     %build
47 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
48 johnpye 439
49     %install
50     rm -rf %{buildroot}
51 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
52 johnpye 439
53 johnpye 532 pushd pygtk/gnome
54 johnpye 447 install -o root -g root -m 644 -D ascend.desktop %{buildroot}/%{_datadir}/applications/ascend.desktop
55     install -o root -g root -m 644 -D ascend.png %{buildroot}/%{_datadir}/icons/ascend-app.png
56     install -o root -g root -m 644 -D ascend.png %{buildroot}/%{_datadir}/icons/hicolor/64x64/ascend.png
57     install -o root -g root -m 644 -D ascend.xml %{buildroot}/%{_datadir}/mime/packages/ascend.xml
58     install -o root -g root -m 644 -D ascend.lang %{buildroot}/%{_datadir}/gtksourceview-1.0/language-specs/ascend.lang
59     popd
60    
61 johnpye 439 %clean
62     rm -rf %{buildroot}
63    
64 johnpye 448 %post
65     update-desktop-database
66     update-mime-database /usr/share/mime
67    
68     %postun
69     update-desktop-database
70     update-mime-database /usr/share/mime
71    
72 johnpye 439 %files
73     %defattr(-, root, root)
74 johnpye 448 %doc INSTALL tcltk98/release_notes/license.txt
75 johnpye 554 %{_datadir}/applications/ascend.desktop
76     %{_datadir}/models
77     %{_libdir}/libascend.so
78    
79     %package python
80 johnpye 439 %{_bindir}/ascend
81 johnpye 448 %{_datadir}/gtksourceview-1.0/language-specs/ascend.lang
82     %{_datadir}/icons/ascend-app.png
83     %{_datadir}/icons/hicolor/64x64/ascend.png
84     %{_datadir}/mime/packages/ascend.xml
85 johnpye 554 %{_datadir}/ascend/python
86 johnpye 439
87 johnpye 554 %package tcltk
88     %{_bindir}/ascend4
89     %{_datadir}/ascend/tcltk
90     %{_libdir}/libascendtcl.so
91 johnpye 448
92 johnpye 439 %changelog
93 johnpye 554 * Tue May 02 2006 John Pye <john.pye@student.unsw.edu.au>
94     - Break out ascend-core, ascend-python and ascend-tcltk packages.
95    
96 johnpye 532 * Mon Apr 24 2006 John Pye <john.pye@student.unsw.edu.au>
97     - Modified for removed dir in pygtk source hierachy
98    
99 johnpye 439 * Thu Apr 04 2006 John Pye <john.pye@student.unsw.edu.au>
100     - First RPM package for new SCons build

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