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

Contents of /trunk/ascend.spec

Parent Directory Parent Directory | Revision Log Revision Log


Revision 554 - (show 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
2 Name: ascend
3 Summary: ASCEND Modelling Environment
4 Version: 0.9.5.90
5
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 Source: %{name}-%{version}.tar.bz2
12 URL: http://inkscape.sourceforge.net/
13
14 Prefix: %{_prefix}
15 Packager: John Pye
16 Vendor: Carnegie Mellon University
17 BuildRoot: %{_tmppath}/%{name}-%{version}-root
18
19 BuildRequires: python >= 2.4, python-devel
20 BuildRequires: scons >= 0.96.1
21 BuildRequires: bison, flex
22 BuildRequires: swig >= 1.3.24
23 BuildRequires: desktop-file-utils
24
25 Requires(post): desktop-file-utils
26 Requires(postun): desktop-file-utils
27
28 Requires: python >= 2.4
29 Requires: pygtk2 >= 2.6, pygtk2-libglade
30 Requires: python-matplotlib, python-numeric
31 Requires: gtksourceview
32 Requires: make
33 Requires: gcc
34
35 %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 %setup -n ascend -q
45
46 %build
47 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
49 %install
50 rm -rf %{buildroot}
51 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
53 pushd pygtk/gnome
54 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 %clean
62 rm -rf %{buildroot}
63
64 %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 %files
73 %defattr(-, root, root)
74 %doc INSTALL tcltk98/release_notes/license.txt
75 %{_datadir}/applications/ascend.desktop
76 %{_datadir}/models
77 %{_libdir}/libascend.so
78
79 %package python
80 %{_bindir}/ascend
81 %{_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 %{_datadir}/ascend/python
86
87 %package tcltk
88 %{_bindir}/ascend4
89 %{_datadir}/ascend/tcltk
90 %{_libdir}/libascendtcl.so
91
92 %changelog
93 * 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 * Mon Apr 24 2006 John Pye <john.pye@student.unsw.edu.au>
97 - Modified for removed dir in pygtk source hierachy
98
99 * 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