]>
Commit | Line | Data |
---|---|---|
4801f56a | 1 | Summary: Genius advanced calculator |
2 | Name: genius | |
5c28ae32 | 3 | Version: 0.4.2 |
8e811cf2 | 4 | Release: 2 |
4801f56a | 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 | |
109098b2 | 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 | |
4801f56a | 16 | BuildRoot: /tmp/%{name}-%{version}-root |
b334ae1f | 17 | |
8e811cf2 JR |
18 | %define _prefix /usr/X11R6 |
19 | ||
b334ae1f | 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 | ||
b334ae1f | 25 | %prep |
4801f56a | 26 | %setup -q |
b334ae1f | 27 | |
28 | %build | |
4801f56a | 29 | CFLAGS="$RPM_OPT_FLAGS" LDFLAGS="-s" \ |
8e811cf2 | 30 | %configure \ |
4801f56a | 31 | --enable-gnome \ |
32 | --without-included-gettext | |
33 | make | |
b334ae1f | 34 | |
4801f56a | 35 | gzip -9nf README AUTHORS NEWS TODO ChangeLog |
b334ae1f | 36 | |
37 | %install | |
38 | rm -rf $RPM_BUILD_ROOT | |
39 | ||
8e811cf2 JR |
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} | |
b334ae1f | 45 | |
46 | %clean | |
47 | rm -rf $RPM_BUILD_ROOT | |
48 | ||
53ee745f | 49 | %files -f %{name}.lang |
4801f56a | 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/* | |
55 | ||
b334ae1f | 56 | |
4801f56a | 57 | %changelog |
8e811cf2 JR |
58 |