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