File: sg.spec

package info (click to toggle)
scigraphica 0.8.0-9
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 5,564 kB
  • ctags: 3,990
  • sloc: ansic: 43,040; sh: 7,278; python: 6,181; makefile: 591
file content (48 lines) | stat: -rw-r--r-- 1,040 bytes parent folder | download | duplicates (2)
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/*