Sophie

Sophie

distrib > Mandriva > 9.0 > i586 > media > contrib-src > by-pkgid > add3940eefd8ad3d5b9d647ca30a8474 > files > 2

scigraphica-0.8.0-2mdk.src.rpm

%define version	0.8.0
%define release	2mdk
%define name scigraphica

Name: %name
Summary: Data analysis and technical graphics
Version: %version
Release: %release
License: GPL
Group: Sciences/Other
Source: %name-%version.tar.bz2
BuildRoot: %_tmppath/%name-buildroot
Requires: glib gtk+ libgtk+extra0 >= 0.99.14 python python-numeric
Buildrequires: libgtk+extra0-devel >= 0.99.14 python-numeric
Url: http://scigraphica.sourceforge.net/

%description
SciGraphica is a scientific application for data analysis and technical 
graphics. It pretends to be a clone of the popular commercial (and expensive)
application "Microcal Origin". It fully supplies plotting features for 2D, 3D 
and polar charts. The aim is to obtain a fully-featured, cross-platform, 
user-friendly, self-growing scientific application. It is free and
open-source, released under the GPL license. 

%prep
rm -rf $RPM_BUILD_ROOT

%setup

%build
%ifarch alpha
MYARCH_FLAGS="--host=alpha-linux"
%endif
if [ ! -f configure ]; then
  ./autogen.sh
  CFLAGS="$RPM_OPT_FLAGS" ./configure --prefix=%_prefix $MYARCH_FLAGS
else
  CFLAGS="$RPM_OPT_FLAGS" ./configure --prefix=%_prefix $MYARCH_FLAGS
fi

%make

%install
make prefix=$RPM_BUILD_ROOT%_prefix install

mkdir -p $RPM_BUILD_ROOT/%{_menudir}
cat << EOF > $RPM_BUILD_ROOT/%{_menudir}/scigraphica
?package(scigraphica):command="/usr/bin/scigraphica" icon="sg_icon.xpm" \
                 needs="X11" section="Applications/Sciences/Other" title="SciGraphica" \
                 longtitle="Data Plotting and Visualization"
EOF

%post
%update_menus

%postun
%clean_menus

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr (-,root,root)
%doc AUTHORS COPYING ChangeLog TODO examples/*.sg examples/*.dat
%_bindir/*
%_datadir/pixmaps/*
%_menudir/*
%_datadir/%name
%_datadir/gnome/apps/Applications/*
%_datadir/gnome/help/%name

%changelog
* Fri Jan 11 2002 Lenny Cartier <lenny@mandrakesoft.com> 0.8.0-2mdk
- rebuild against new python

* Fri Dec 06 2001 Lenny Cartier <lenny@mandrakesoft.com> 0.8.0-1mdk
- 0.8.0
- fix files section

* Wed Aug 29 2001 Lenny Cartier <lenny@mandrakesoft.com> 0.7.1-2mdk
- rebuild against new libgtk+extra

* Tue Aug 28 2001 Lenny Cartier <lenny@mandrakesoft.com> 0.7.1-1mdk
- updated to 0.7.1

* Sun Mar 11 2001 Lenny Cartier <lenny@mandrakesoft.com> 0.6.3-1mdk
- updated to 0.6.3
- rebuild against new libgtk-extra

* Mon Feb 12 2001 Lenny Cartier <lenny@mandrakesoft.com> 0.6.2-2mdk
- used updated srpm from Conrad Steenberg <conrad@hep.caltech.edu>
- fix builrequires and requires to python-numeric

* Thu Feb 08 2001 Conrad Steenberg <conrad@hep.caltech.edu> 0.6.2-1mdk
- update to 0.6.2
- include only sg_icon.xpm
- include example files in doc directory

* Fri Jan 19 2001 Lenny Cartier <lenny@mandrakesoft.com> 0.6.1-2mdk
- update requires and buildrequires

* Tue Jan 16 2001 Lenny Cartier <lenny@mandrakesoft.com> 0.6.1-1mdk
- new in contribs