Summary(pl): Zaawansowany kalkulator Genius
Name: genius
Version: 0.4.6
-Release: 1
-Copyright: GPL
+Release: 6
+License: GPL
Group: X11/Applications
-Source: http://ftp.5z.com/pub/genius/%{name}-%{version}.tar.gz
-Patch0: genius-applnk.patch
-Patch1: genius-termlib.patch
+Group(de): X11/Applikationen
+Group(pl): X11/Aplikacje
+Source0: http://ftp.5z.com/pub/genius/%{name}-%{version}.tar.gz
+Patch0: %{name}-applnk.patch
+Patch1: %{name}-termlib.patch
URL: http://www.5z.com/jirka/genius.html
BuildRequires: gmp-devel
BuildRequires: gnome-libs-devel
BuildRequires: gtk+-devel >= 1.2.0
BuildRequires: imlib-devel
BuildRequires: ncurses-devel >= 5.0
-BuildRequires: readline-devel
-BuildRequires: XFree86-devel
+BuildRequires: readline-devel >= 4.1
BuildRequires: gettext-devel
-BuildRoot: /tmp/%{name}-%{version}-root
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%define _prefix /usr/X11R6
%define _mandir %{_prefix}/man
-%define _applnkdir %{_datadir}/applnk
%description
-Genius is an advanced calculator and a mathematical programming language.
-It handles multiple precision floating point numbers, infinite precision
-integers, complex numbers and matrixes.
+Genius is an advanced calculator and a mathematical programming
+language. It handles multiple precision floating point numbers,
+infinite precision integers, complex numbers and matrixes.
%description -l pl
-Genius jest zaawansowanym kalkulatorem i jêzykiem programowania matematycznego.
+Genius jest zaawansowanym kalkulatorem i jêzykiem programowania
+matematycznego. Mo¿na go u¿yæ do obliczeñ wykorzystuj±cych liczby
+zmiennoprzecinkowe, liczby ca³kowite o nieskoñczonej precyzji, liczby
+zespolone oraz macierze.
%prep
%setup -q
autoconf
automake
gettextize --copy --force
-CFLAGS="$RPM_OPT_FLAGS -I/usr/include/ncurses"
-LDFLAGS="-s"
-export CFLAGS LDFLAGS
+CFLAGS="%{!?debug:$RPM_OPT_FLAGS}%{?debug:-O -g} -I/usr/include/ncurses"
%configure \
--enable-gnome \
--disable-static \
--without-included-gettext
-make
+%{__make}
%install
rm -rf $RPM_BUILD_ROOT
-make install DESTDIR=$RPM_BUILD_ROOT
-
-strip --strip-unneeded $RPM_BUILD_ROOT%{_libdir}/genius/lib*so
+%{__make} install DESTDIR=$RPM_BUILD_ROOT
gzip -9nf README AUTHORS NEWS TODO ChangeLog