/[ascend]/branches/adrian/ascend.spec.in
ViewVC logotype

Annotation of /branches/adrian/ascend.spec.in

Parent Directory Parent Directory | Revision Log Revision Log


Revision 554 - (hide annotations) (download)
Tue May 2 00:51:02 2006 UTC (13 years, 4 months ago) by johnpye
Original Path: trunk/ascend.spec.in
File size: 3233 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 438 Name: ascend
2     Summary: ASCEND Modelling Environment
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/Graphics
10     Source: %{name}-%{version}.tar.bz2
11 johnpye 441 URL: http://inkscape.sourceforge.net/
12 johnpye 438
13     Prefix: %{_prefix}
14     Packager: John Pye
15 johnpye 546 Vendor: Carnegie Mellon University
16     BuildRoot: %{_tmppath}/%{name}-%{version}-root
17 johnpye 438
18     BuildRequires: python >= 2.4, python-devel
19 johnpye 446 BuildRequires: scons >= 0.96.1
20 johnpye 546 BuildRequires: bison, flex
21 johnpye 446 BuildRequires: swig >= 1.3.24
22     BuildRequires: desktop-file-utils
23    
24     Requires(post): desktop-file-utils
25 johnpye 438 Requires(postun): desktop-file-utils
26    
27     Requires: python >= 2.4
28 johnpye 440 Requires: pygtk2 >= 2.6, pygtk2-libglade
29     Requires: python-matplotlib, python-numeric
30     Requires: gtksourceview
31 johnpye 446 Requires: make
32     Requires: gcc
33 johnpye 546
34 johnpye 440 %description
35 johnpye 438 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     %prep
43     %setup -n ascend -q
44 johnpye 548
45 johnpye 438 %build
46     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
47 johnpye 554
48 johnpye 438 %install
49     rm -rf %{buildroot}
50     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
51 johnpye 554
52 johnpye 438 pushd pygtk/gnome
53 johnpye 532 install -o root -g root -m 644 -D ascend.desktop %{buildroot}/%{_datadir}/applications/ascend.desktop
54 johnpye 446 install -o root -g root -m 644 -D ascend.png %{buildroot}/%{_datadir}/icons/ascend-app.png
55     install -o root -g root -m 644 -D ascend.png %{buildroot}/%{_datadir}/icons/hicolor/64x64/ascend.png
56     install -o root -g root -m 644 -D ascend.xml %{buildroot}/%{_datadir}/mime/packages/ascend.xml
57     install -o root -g root -m 644 -D ascend.lang %{buildroot}/%{_datadir}/gtksourceview-1.0/language-specs/ascend.lang
58     popd
59    
60     %clean
61 johnpye 438 rm -rf %{buildroot}
62    
63     %post
64 johnpye 448 update-desktop-database
65     update-mime-database /usr/share/mime
66    
67     %postun
68     update-desktop-database
69     update-mime-database /usr/share/mime
70    
71     %files
72 johnpye 438 %defattr(-, root, root)
73     %doc INSTALL tcltk98/release_notes/license.txt
74 johnpye 448 %{_datadir}/applications/ascend.desktop
75 johnpye 554 %{_datadir}/models
76     %{_libdir}/libascend.so
77    
78     %package python
79     %{_bindir}/ascend
80 johnpye 438 %{_datadir}/gtksourceview-1.0/language-specs/ascend.lang
81 johnpye 448 %{_datadir}/icons/ascend-app.png
82     %{_datadir}/icons/hicolor/64x64/ascend.png
83     %{_datadir}/mime/packages/ascend.xml
84     %{_datadir}/ascend/python
85 johnpye 554
86 johnpye 438 %package tcltk
87 johnpye 554 %{_bindir}/ascend4
88     %{_datadir}/ascend/tcltk
89     %{_libdir}/libascendtcl.so
90    
91 johnpye 448 %changelog
92 johnpye 438 * Tue May 02 2006 John Pye <john.pye@student.unsw.edu.au>
93 johnpye 554 - Break out ascend-core, ascend-python and ascend-tcltk packages.
94    
95     * Mon Apr 24 2006 John Pye <john.pye@student.unsw.edu.au>
96 johnpye 532 - Modified for removed dir in pygtk source hierachy
97    
98     * Thu Apr 04 2006 John Pye <john.pye@student.unsw.edu.au>
99 johnpye 438 - First RPM package for new SCons build
100    

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