]>
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 | |
b49a2e96 AF |
9 | BuildRequires: gmp-devel |
10 | BuildRequires: gnome-libs-devel | |
11 | BuildRequires: gtk+-devel | |
12 | BuildRequires: imlib-devel | |
13 | BuildRequires: ncurses-devel | |
14 | BuildRequires: readline-devel | |
15 | BuildRequires: XFree86-devel | |
4801f56a | 16 | BuildRoot: /tmp/%{name}-%{version}-root |
b334ae1f | 17 | |
eace675b JR |
18 | %define _prefix /usr/X11R6 |
19 | %define _mandir /usr/X11R6 | |
8e811cf2 | 20 | |
b334ae1f | 21 | %description |
22 | Genius is an advanced calculator and a mathematical programming language. | |
23 | It handles multiple precision floating point numbers, infinite precision | |
24 | integers, complex numbers and matrixes. | |
25 | ||
b334ae1f | 26 | %prep |
4801f56a | 27 | %setup -q |
b334ae1f | 28 | |
29 | %build | |
4801f56a | 30 | CFLAGS="$RPM_OPT_FLAGS" LDFLAGS="-s" \ |
8e811cf2 | 31 | %configure \ |
4801f56a | 32 | --enable-gnome \ |
33 | --without-included-gettext | |
34 | make | |
b334ae1f | 35 | |
4801f56a | 36 | gzip -9nf README AUTHORS NEWS TODO ChangeLog |
b334ae1f | 37 | |
38 | %install | |
39 | rm -rf $RPM_BUILD_ROOT | |
40 | ||
8e811cf2 JR |
41 | make install prefix=$RPM_BUILD_ROOT/usr/X11R6 \ |
42 | bindir=$RPM_BUILD_ROOT/%{_bindir} \ | |
43 | datadir=$RPM_BUILD_ROOT/%{_datadir} | |
44 | ||
45 | %find_lang %{name} | |
b334ae1f | 46 | |
47 | %clean | |
48 | rm -rf $RPM_BUILD_ROOT | |
49 | ||
53ee745f | 50 | %files -f %{name}.lang |
4801f56a | 51 | %defattr(644,root,root,755) |
52 | %doc *.gz | |
53 | %attr(755,root,root) /usr/X11R6/bin/* | |
54 | /usr/X11R6/share/genius | |
55 | /usr/X11R6/share/apps/Utilities/* |