- fixed usage of macros
[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 %define         _mandir /usr/X11R6
20
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
26 %prep
27 %setup -q
28
29 %build
30 CFLAGS="$RPM_OPT_FLAGS" LDFLAGS="-s" \
31 %configure \
32         --enable-gnome \
33         --without-included-gettext
34 make
35
36 gzip -9nf README AUTHORS NEWS TODO ChangeLog
37
38 %install
39 rm -rf $RPM_BUILD_ROOT
40
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}
46
47 %clean
48 rm -rf $RPM_BUILD_ROOT
49
50 %files -f %{name}.lang
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/*
This page took 0.06904 seconds and 4 git commands to generate.