1 |
Summary: A general purpose calculator and math tool |
2 |
Name: genius |
3 |
Version: 1.0.14 |
4 |
Release: %mkrel 1 |
5 |
License: GPLv3+ |
6 |
Group: Sciences/Mathematics |
7 |
URL: http://www.jirka.org/genius.html |
8 |
Source: http://ftp.5z.com/pub/%{name}/%{name}-%{version}.tar.xz |
9 |
BuildRequires: intltool >= 0.21 |
10 |
BuildRequires: pkgconfig(glib-2.0) >= 2.12.0 |
11 |
BuildRequires: pkgconfig(gmodule-2.0) >= 2.12.0 |
12 |
BuildRequires: pkgconfig(gio-2.0) >= 2.16.0 |
13 |
BuildRequires: pkgconfig(gtk+-2.0) >= 2.18.0 |
14 |
BuildRequires: pkgconfig(vte) >= 0.17.1 |
15 |
BuildRequires: pkgconfig(gtksourceview-2.0) >= 2.0.2 |
16 |
BuildRequires: gmp-devel |
17 |
BuildRequires: readline-devel |
18 |
BuildRequires: mpfr-devel |
19 |
BuildRequires: termcap-devel |
20 |
BuildRequires: flex |
21 |
BuildRequires: bison |
22 |
BuildRequires: scrollkeeper |
23 |
BuildRequires: automake |
24 |
Requires: ghostscript |
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 |
|
32 |
%prep |
33 |
%setup -q |
34 |
%apply_patches |
35 |
|
36 |
%build |
37 |
%configure2_5x --disable-scrollkeeper --disable-update-mimedb |
38 |
%make |
39 |
|
40 |
%install |
41 |
rm -rf %{buildroot} |
42 |
%makeinstall_std |
43 |
|
44 |
%{find_lang} %{name} --with-gnome |
45 |
|
46 |
# remove stuff not distributed |
47 |
# pointless to include header, no plugin has been developed in 4 yrs |
48 |
rm -rf %{buildroot}%{_includedir} |
49 |
rm -f %{buildroot}%{_libdir}/genius/*.a \ |
50 |
%{buildroot}%{_libdir}/genius/*.la |
51 |
|
52 |
%if %mdkversion < 200900 |
53 |
%post |
54 |
%update_menus |
55 |
%update_mime_database |
56 |
%update_desktop_database |
57 |
%update_scrollkeeper |
58 |
%update_icon_cache hicolor |
59 |
%endif |
60 |
|
61 |
%if %mdkversion < 200900 |
62 |
%postun |
63 |
%clean_menus |
64 |
%clean_mime_database |
65 |
%clean_desktop_database |
66 |
%clean_scrollkeeper |
67 |
%clean_icon_cache hicolor |
68 |
%endif |
69 |
|
70 |
%clean |
71 |
rm -rf %{buildroot} |
72 |
|
73 |
%files -f %{name}.lang |
74 |
%defattr(-,root,root) |
75 |
%doc AUTHORS NEWS README |
76 |
%{_bindir}/* |
77 |
%{_datadir}/applications/*.desktop |
78 |
%{_datadir}/%{name} |
79 |
%{_datadir}/application-registry/* |
80 |
%{_datadir}/mime/packages/* |
81 |
%{_datadir}/mime-info/* |
82 |
%{_datadir}/omf/* |
83 |
%{_iconsdir}/hicolor/*/apps/gnome-genius.png |
84 |
%{_iconsdir}/hicolor/*/apps/genius-stock-plot.png |
85 |
%{_libdir}/%{name} |
86 |
%{_libexecdir}/genius-readline-helper-fifo |
87 |
|
88 |
|