- added using CVS keywords in %changelog (for automating them).
[packages/genius.git] / genius.spec
1 Summary:        Genius advanced calculator
2 Name:           genius
3 Version:        0.4.2
4 Release:        2
5 Copyright:      GPL
6 Group:          X11/Applications
7 Source:         http://ftp.5z.com/pub/genius/%{name}-%{version}.tar.gz
8 URL:            http://www.5z.com/jirka/linux.html#genius
9 BuildPrereq:    gmp-devel
10 BuildPrereq:    gnome-libs-devel
11 BuildPrereq:    gtk+-devel
12 BuildPrereq:    imlib-devel
13 BuildPrereq:    ncurses-devel
14 BuildPrereq:    readline-devel
15 BuildPrereq:    XFree86-devel
16 BuildRoot:      /tmp/%{name}-%{version}-root
17
18 %define _prefix /usr/X11R6
19
20 %description
21 Genius is an advanced calculator and a mathematical programming language.
22 It handles multiple precision floating point numbers, infinite precision
23 integers, complex numbers and matrixes.
24
25 %prep
26 %setup -q
27
28 %build
29 CFLAGS="$RPM_OPT_FLAGS" LDFLAGS="-s" \
30 %configure \
31         --enable-gnome \
32         --without-included-gettext
33 make
34
35 gzip -9nf README AUTHORS NEWS TODO ChangeLog
36
37 %install
38 rm -rf $RPM_BUILD_ROOT
39
40 make install prefix=$RPM_BUILD_ROOT/usr/X11R6 \
41         bindir=$RPM_BUILD_ROOT/%{_bindir} \
42         datadir=$RPM_BUILD_ROOT/%{_datadir}
43
44 %find_lang %{name}
45
46 %clean
47 rm -rf $RPM_BUILD_ROOT
48
49 %files -f %{name}.lang
50 %defattr(644,root,root,755)
51 %doc *.gz
52 %attr(755,root,root) /usr/X11R6/bin/*
53 /usr/X11R6/share/genius
54 /usr/X11R6/share/apps/Utilities/*
This page took 0.042654 seconds and 4 git commands to generate.