]>
Commit | Line | Data |
---|---|---|
e06b7b34 | 1 | Summary: General tool for mathematics |
f7fcb57a | 2 | Summary(pl.UTF-8): Rozbudowane narzędzie matematyczne |
f752f856 AM |
3 | Name: drgenius |
4 | Version: 0.5.10 | |
206fd304 | 5 | Release: 12 |
f752f856 AM |
6 | License: GPL |
7 | Group: X11/Applications | |
f752f856 | 8 | Source0: http://ftp.5z.com/pub/genius/%{name}-%{version}.tar.gz |
f580aca5 | 9 | # Source0-md5: 17139421686934f86ed6e90e8f658532 |
f752f856 | 10 | Patch0: %{name}-make.patch |
065effb3 | 11 | Patch1: %{name}-am_fix.patch |
cfd9f3ea JB |
12 | Patch2: %{name}-gob.patch |
13 | Patch3: %{name}-c++.patch | |
f88fe5a2 | 14 | Patch4: %{name}-desktop.patch |
413ab341 | 15 | Patch5: %{name}-locale_names.patch |
7d1b2936 | 16 | Patch6: %{name}-po.patch |
f752f856 | 17 | URL: http://ofset.sourceforge.net/drgenius/index.html |
e06b7b34 | 18 | BuildRequires: ORBit-devel |
19 | BuildRequires: autoconf | |
20 | BuildRequires: automake | |
f752f856 AM |
21 | BuildRequires: bison |
22 | BuildRequires: flex | |
e06b7b34 | 23 | BuildRequires: gettext-devel |
f752f856 | 24 | BuildRequires: glib-devel >= 1.2.0 |
bde25d66 | 25 | BuildRequires: gmp-devel >= 3.1.1 |
e06b7b34 | 26 | BuildRequires: gnome-libs-devel |
cfd9f3ea JB |
27 | BuildRequires: gob >= 1.0.6 |
28 | BuildRequires: libglade-gnome-devel | |
e06b7b34 | 29 | BuildRequires: libstdc++-devel |
cfd9f3ea | 30 | BuildRequires: libtool |
e06b7b34 | 31 | BuildRequires: libxml-devel |
13d4fb69 | 32 | BuildRequires: readline-devel >= 4.2 |
27e8a2aa | 33 | Obsoletes: drgeo |
f752f856 AM |
34 | Obsoletes: genius |
35 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
36 | ||
f752f856 AM |
37 | %description |
38 | Dr. Genius is a general tool for mathematics, including a mathematical | |
39 | programming language and evaluator, an euclidian geometry tool, a | |
40 | 2D/3D function grapher and a console calculator. The console | |
41 | calculator handles multiple precision floating point numbers, infinite | |
42 | precision integers, complex numbers and matrixes. | |
43 | ||
f7fcb57a JR |
44 | %description -l pl.UTF-8 |
45 | Dr. Genius to narzędzie do rozwiązywania problemów matematycznych. | |
46 | Zawiera ono matematyczny język programowania, narzędzie do geometrii | |
47 | euklidesowej, narzędzie do generowania wykresów 2D/3D oraz konsolowy | |
48 | kalkulator. Kalkulator obsługuje liczby zmiennoprzecinkowe wysokiej | |
49 | precyzji, liczby całkowite, zespolone oraz macierze. | |
f752f856 AM |
50 | |
51 | %prep | |
52 | %setup -q | |
53 | %patch0 -p1 | |
065effb3 | 54 | %patch1 -p1 |
cfd9f3ea JB |
55 | %patch2 -p1 |
56 | %patch3 -p1 | |
f88fe5a2 | 57 | %patch4 -p1 |
413ab341 | 58 | %patch5 -p1 |
7d1b2936 | 59 | %patch6 -p1 |
413ab341 | 60 | |
61 | mv po/{no,nb}.po | |
cfd9f3ea JB |
62 | |
63 | # only one, broken line here | |
64 | echo > exemples/macro/Makefile.am | |
65 | # force regeneration, included versions have broken cpp directives | |
66 | rm -f gobobjs/*.[ch]* | |
f752f856 AM |
67 | |
68 | %build | |
bc9c9865 | 69 | rm -f acinclude.m4 |
14153c60 | 70 | %{__libtoolize} |
b94a79b6 | 71 | %{__gettextize} |
fc3e2293 | 72 | %{__aclocal} -I macros |
1695b4d7 | 73 | %{__autoconf} |
74 | %{__automake} | |
f752f856 AM |
75 | %configure \ |
76 | --enable-gnome \ | |
77 | --disable-static \ | |
78 | --without-included-gettext | |
79 | %{__make} | |
80 | ||
81 | %install | |
82 | rm -rf $RPM_BUILD_ROOT | |
83 | ||
84 | %{__make} install \ | |
85 | DESTDIR=$RPM_BUILD_ROOT \ | |
bc9c9865 | 86 | Utilitiesdir=%{_desktopdir} |
f752f856 | 87 | |
f752f856 AM |
88 | %find_lang %{name} --with-gnome --all-name |
89 | ||
90 | %clean | |
91 | rm -rf $RPM_BUILD_ROOT | |
92 | ||
93 | %files -f %{name}.lang | |
94 | %defattr(644,root,root,755) | |
d863e560 | 95 | %doc AUTHORS NEWS README TODO |
f752f856 AM |
96 | %attr(755,root,root) %{_bindir}/* |
97 | %attr(755,root,root) %dir %{_libdir}/genius | |
98 | %attr(755,root,root) %{_libdir}/genius/* | |
99 | %{_includedir}/genius | |
100 | %{_datadir}/drgenius | |
101 | %{_datadir}/genius | |
102 | %{_pixmapsdir}/* | |
bc9c9865 | 103 | %{_desktopdir}/*.desktop |