-added %description -l pl
[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:        3
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 >= 4.1
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. Mozna go uzyæ do obliczeñ wykorzystuj±cych liczby 
35 zmiennoprzecinkowe, liczby ca³kowite o nieskoñczonej precyzji, liczby zespolone
36 oraz matryce.
37
38 %prep
39 %setup -q
40 %patch0 -p1
41 %patch1 -p1
42
43 %build
44 autoconf
45 automake
46 gettextize --copy --force
47 CFLAGS="$RPM_OPT_FLAGS -I/usr/include/ncurses"
48 LDFLAGS="-s"
49 export CFLAGS LDFLAGS
50 %configure \
51         --enable-gnome \
52         --disable-static \
53         --without-included-gettext
54 make
55
56 %install
57 rm -rf $RPM_BUILD_ROOT
58
59 make install DESTDIR=$RPM_BUILD_ROOT
60
61 strip --strip-unneeded $RPM_BUILD_ROOT%{_libdir}/genius/lib*so
62
63 gzip -9nf README AUTHORS NEWS TODO ChangeLog
64
65 %find_lang %{name}
66
67 %clean
68 rm -rf $RPM_BUILD_ROOT
69
70 %files -f %{name}.lang
71 %defattr(644,root,root,755)
72 %doc *.gz
73 %attr(755,root,root) %{_bindir}/*
74 %attr(755,root,root) %{_libdir}/genius/*
75 %{_datadir}/genius
76 %{_applnkdir}/Utilities/*
This page took 0.036748 seconds and 4 git commands to generate.