1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48
|
%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/*
|