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

Annotation of /trunk/ascend.spec.in

Parent Directory Parent Directory | Revision Log Revision Log


Revision 624 - (hide annotations) (download)
Thu May 18 15:39:38 2006 UTC (18 years, 5 months ago) by ben.allan
File size: 4289 byte(s)
Summary: most of the recent complaints about autotools build fixed,
but the buildbot might find a problem with the scons build/install/rpmbuild.


Details:

configure,Driver.c,utilities/config.h.in:
The choice of INSTALL_DATA as a configure variable name
has been repaired (renamed INSTALL_SHARE); INSTALL_DATA is the unix
canonical name for the program 'install' handling a data file.
Both autotools and scons builds have been updated to reflect this,
in the process correcting the definition from prefix/share to
prefix/share/ascend. 

autotools build:
Added --with-quiet option to make the install of already installed and
unchanged files less verbose.
Put in a workaround for the '' problem in tkConfig.sh seen by KC/JP.
Added --datadir support to autotools configure. If you configure
the autotools --datadir=PREFIX/share/ascend you get the same behavior
as the Pye packaging; by default you get the CMU packaging convention instead.
Added utilities/env.c to build.

compiler:
Turned off AWAL in anontype.c.
Noodling away at blackboxes continues...

1 johnpye 438 Name: ascend
2 johnpye 601 Summary: ASCEND modelling environment
3 johnpye 438 Version: @VERSION@
4    
5     # Use release "0" so that distro-released versions will override ours.
6 johnpye 577 Release: 0.jdpipe
7 johnpye 438
8     License: GPL
9 johnpye 555 Group: Applications/Engineering
10 johnpye 601 Source: @DISTTAR_NAME@.tar.bz2
11     URL: http://ascend.cheme.cmu.edu/
12 johnpye 438
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 johnpye 561 BuildRequires: tk-devel < 8.5
24     BuildRequires: tcl-devel < 8.5
25     BuildRequires: tktable < 2.10, tktable >= 2.8
26 johnpye 562 BuildRequires: ccache
27 johnpye 446
28 johnpye 440 Requires: python >= 2.4
29 johnpye 562 Requires: pygtk2 >= 2.6
30     Requires: pygtk2-libglade
31     Requires: python-matplotlib
32     Requires: python-numeric
33 johnpye 446 Requires: gtksourceview
34 johnpye 440
35 johnpye 438 %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 johnpye 555 #%package -n ascend-python
44     #Version: @VERSION@
45     #Summary: PyGTK user interface for ASCEND
46     #Group: Applications/Engineering
47     #
48     #%description -n ascend-python
49     #PyGTK user interface for ASCEND. This is a new interface that follows GNOME
50     #human interface guidelines as closely as possible. It does not as yet provide
51     #access to all of the ASCEND functionality provided by the Tcl/Tk interface.
52     #
53     #%package -n ascend-tcltk
54     #Version: @VERSION@
55     #Summary: Tcl/Tk user interface for ASCEND
56     #Group: Applications/Engineering
57     #
58     #%description -n ascend-tcltk
59     #Tcl/Tk user interface for ASCEND. This is the original ASCEND IV interface
60     #and is a more complete and mature interface than the alternative PyGTK
61     #interface. Use this interface if you need to use ASCEND *.a4s files or other
62     #functionality not provided by the PyGTK interface.
63    
64 johnpye 438 %prep
65 johnpye 602 %setup -q -n @DISTTAR_NAME@
66 johnpye 438
67     %build
68 ben.allan 624 scons %{?_smp_mflags} CC="ccache gcc" CXX="ccache g++" RELATIVE_PATHS=0 DEFAULT_ASCENDLIBRARY=%{_datadir}/ascend/models INSTALL_ROOT=%{buildroot} INSTALL_PREFIX=%{_prefix} INSTALL_SHARE=%{_datadir} INSTALL_BIN=%{_bindir} INSTALL_INCLUDE=%{_incdir} WITH_PYTHON=1 WITH_TCLTK=1 TCL=/usr TCL_LIB=tcl8.4 TK_LIB=tk8.4
69 johnpye 438
70     %install
71     rm -rf %{buildroot}
72 ben.allan 624 scons %{?_smp_mflags} CC="ccache gcc" CXX="ccache g++" RELATIVE_PATHS=0 DEFAULT_ASCENDLIBRARY=%{_datadir}/ascend/models INSTALL_ROOT=%{buildroot} INSTALL_PREFIX=%{_prefix} INSTALL_SHARE=%{_datadir} INSTALL_BIN=%{_bindir} INSTALL_INCLUDE=%{_incdir} WITH_PYTHON=1 WITH_TCLTK=1 install
73 johnpye 438
74 johnpye 532 pushd pygtk/gnome
75 johnpye 564 install -m 644 -D ascend.desktop %{buildroot}/%{_datadir}/applications/ascend.desktop
76     install -m 644 -D ascend.png %{buildroot}/%{_datadir}/icons/ascend-app.png
77     install -m 644 -D ascend.png %{buildroot}/%{_datadir}/icons/hicolor/64x64/ascend.png
78     install -m 644 -D ascend.xml %{buildroot}/%{_datadir}/mime/packages/ascend.xml
79     install -m 644 -D ascend.lang %{buildroot}/%{_datadir}/gtksourceview-1.0/language-specs/ascend.lang
80 johnpye 446 popd
81    
82 johnpye 438 %clean
83     rm -rf %{buildroot}
84    
85 johnpye 448 %post
86     update-desktop-database
87     update-mime-database /usr/share/mime
88    
89     %postun
90     update-desktop-database
91     update-mime-database /usr/share/mime
92    
93 johnpye 438 %files
94     %defattr(-, root, root)
95 johnpye 560 %doc INSTALL.txt LICENSE.txt
96 johnpye 554 %{_datadir}/applications/ascend.desktop
97 johnpye 557 %{_datadir}/ascend/models
98 johnpye 554 %{_libdir}/libascend.so
99    
100 johnpye 555 # %package -n ascend-python
101 johnpye 438 %{_bindir}/ascend
102 johnpye 448 %{_datadir}/gtksourceview-1.0/language-specs/ascend.lang
103     %{_datadir}/icons/ascend-app.png
104     %{_datadir}/icons/hicolor/64x64/ascend.png
105     %{_datadir}/mime/packages/ascend.xml
106 johnpye 557 %{_datadir}/ascend/*.py
107 johnpye 562 %{_datadir}/ascend/*.pyc
108     %{_datadir}/ascend/*.pyo
109 johnpye 557 %{_datadir}/ascend/glade
110 johnpye 562 %{_datadir}/ascend/_ascpy.so
111 johnpye 438
112 johnpye 555 # %package -n ascend-tcltk
113 johnpye 554 %{_bindir}/ascend4
114     %{_datadir}/ascend/tcltk
115     %{_libdir}/libascendtcl.so
116 johnpye 448
117 johnpye 438 %changelog
118 johnpye 554 * Tue May 02 2006 John Pye <john.pye@student.unsw.edu.au>
119     - Break out ascend-core, ascend-python and ascend-tcltk packages.
120    
121 johnpye 532 * Mon Apr 24 2006 John Pye <john.pye@student.unsw.edu.au>
122     - Modified for removed dir in pygtk source hierachy
123    
124 johnpye 438 * Thu Apr 04 2006 John Pye <john.pye@student.unsw.edu.au>
125     - First RPM package for new SCons build

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