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