%define version 0.8.0 %define release 1 %define name scigraphica %define prefix /usr Name: %name Summary: plots spreadsheets graphics origin Version: %version Release: %release Copyright: GPL Group: Applications/Productivity Source: ftp://magnet.fsu.edu/~feiguin/scigraphica/src/sg-%{version}.tar.gz BuildRoot: /var/tmp/sg-%{PACKAGE_VERSION}-root Requires: glib gtk+ gtk+extra >= 0.99.15 python python-numpy Docdir: %{prefix}/docs %description SciGraphica is a free (GPL) application for scientific graphics. %prep %setup -n sg-%{version} %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 rm -rf $RPM_BUILD_ROOT make prefix=$RPM_BUILD_ROOT%{prefix} pprefix=$RPM_BUILD_ROOT install %clean rm -rf $RPM_BUILD_ROOT %files %doc AUTHORS COPYING ChangeLog NEWS README TODO %{prefix}/bin/scigraphica %{prefix}/share/*