- updated to 0.4.6,
[packages/genius.git] / genius.spec
1 Summary:        Genius advanced calculator
2 Summary(pl):    Zaawansowany kalkulator Genius
3 Name:           genius
4 Version:        0.4.6
5 Release:        1
6 Copyright:      GPL
7 Group:          X11/Applications
8 Source:         http://ftp.5z.com/pub/genius/%{name}-%{version}.tar.gz
9 Patch0:         genius-applnk.patch
10 Patch1:         genius-termlib.patch
11 URL:            http://www.5z.com/jirka/genius.html
12 BuildRequires:  gmp-devel
13 BuildRequires:  gnome-libs-devel
14 BuildRequires:  gtk+-devel >= 1.2.0
15 BuildRequires:  imlib-devel
16 BuildRequires:  ncurses-devel >= 5.0
17 BuildRequires:  readline-devel
18 BuildRequires:  XFree86-devel
19 BuildRequires:  gettext-devel
20 BuildRoot:      /tmp/%{name}-%{version}-root
21
22 %define         _prefix         /usr/X11R6
23 %define         _mandir         %{_prefix}/man
24 %define         _applnkdir      %{_datadir}/applnk
25
26 %description
27 Genius is an advanced calculator and a mathematical programming language.
28 It handles multiple precision floating point numbers, infinite precision
29 integers, complex numbers and matrixes.
30
31 %description -l pl
32 Genius jest zaawansowanym kalkulatorem i j√™zykiem programowania matematycznego.
33
34 %prep
35 %setup -q
36 %patch0 -p1
37 %patch1 -p1
38
39 %build
40 autoconf
41 automake
42 gettextize --copy --force
43 CFLAGS="$RPM_OPT_FLAGS -I/usr/include/ncurses"
44 LDFLAGS="-s"
45 export CFLAGS LDFLAGS
46 %configure \
47         --enable-gnome \
48         --disable-static \
49         --without-included-gettext
50 make
51
52 %install
53 rm -rf $RPM_BUILD_ROOT
54
55 make install DESTDIR=$RPM_BUILD_ROOT
56
57 strip --strip-unneeded $RPM_BUILD_ROOT%{_libdir}/genius/lib*so
58
59 gzip -9nf README AUTHORS NEWS TODO ChangeLog
60
61 %find_lang %{name}
62
63 %clean
64 rm -rf $RPM_BUILD_ROOT
65
66 %files -f %{name}.lang
67 %defattr(644,root,root,755)
68 %doc *.gz
69 %attr(755,root,root) %{_bindir}/*
70 %attr(755,root,root) %{_libdir}/genius/*
71 %{_datadir}/genius
72 %{_applnkdir}/Utilities/*
This page took 0.038988 seconds and 4 git commands to generate.