]>
Commit | Line | Data |
---|---|---|
35d8d7ca | 1 | # TODO: where is "euclidian geometry tool"? Maybe drgeo-obsolotes is false |
d4e81a96 | 2 | Summary: General tool for mathematics |
975e6971 | 3 | Summary(pl.UTF-8): Rozbudowane narzędzie matematyczne |
d4e81a96 | 4 | Name: genius |
7b0314da | 5 | Version: 1.0.9 |
83882f01 | 6 | Release: 2 |
7c42f626 | 7 | License: GPL v3+ |
7b0314da | 8 | Group: Applications/Math |
a4a08fbd | 9 | Source0: http://ftp.5z.com/pub/genius/%{name}-%{version}.tar.bz2 |
7b0314da | 10 | # Source0-md5: 2e6a0b663eb73346318a9e3c52957403 |
19c2070a | 11 | Patch0: %{name}-termcap.patch |
12 | Patch1: %{name}-desktop.patch | |
945b9982 | 13 | URL: http://www.jirka.org/genius.html |
d4e81a96 | 14 | BuildRequires: autoconf |
15 | BuildRequires: automake | |
d4e81a96 | 16 | BuildRequires: bison |
17 | BuildRequires: flex | |
d2425627 | 18 | BuildRequires: gettext-devel |
91845d92 | 19 | BuildRequires: gmp-devel |
245f6109 | 20 | BuildRequires: gnome-common >= 2.8.0-2 |
a4a08fbd MB |
21 | BuildRequires: gnome-vfs2-devel |
22 | BuildRequires: gtk+2-devel >= 2:2.12.0 | |
23 | BuildRequires: gtksourceview2-devel >= 2.0.2 | |
675ee19c | 24 | BuildRequires: intltool >= 0.21 |
62d2fabc | 25 | BuildRequires: libtool |
7b0314da | 26 | BuildRequires: mpfr-devel >= 2.2.0 |
d4e81a96 | 27 | BuildRequires: ncurses-devel |
88a2b19f | 28 | BuildRequires: pkgconfig |
88a2b19f | 29 | BuildRequires: readline-devel |
357b464c | 30 | BuildRequires: rpmbuild(find_lang) >= 1.23 |
859cb5a6 | 31 | BuildRequires: rpmbuild(macros) >= 1.311 |
245f6109 | 32 | BuildRequires: scrollkeeper |
8af1d0df | 33 | BuildRequires: sed >= 4.0 |
91845d92 | 34 | BuildRequires: vte-devel >= 0.8.19 |
04f4c346 | 35 | Requires(post,postun): desktop-file-utils |
859cb5a6 MB |
36 | Requires(post,postun): gtk+2 |
37 | Requires(post,postun): hicolor-icon-theme | |
245f6109 | 38 | Requires(post,postun): scrollkeeper |
2035ea19 | 39 | Requires(post,postun): shared-mime-info |
eb5affb4 | 40 | Obsoletes: drgenius |
41 | Obsoletes: drgeo | |
5dcbbb81 | 42 | # sr@Latn vs. sr@latin |
43 | Conflicts: glibc-misc < 6:2.7 | |
d4e81a96 | 44 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
45 | ||
46 | %description | |
47 | Genius is a general tool for mathematics, including a mathematical | |
48 | programming language and evaluator, an euclidian geometry tool, a | |
49 | 2D/3D function grapher and a console calculator. The console | |
50 | calculator handles multiple precision floating point numbers, infinite | |
51 | precision integers, complex numbers and matrixes. | |
52 | ||
7be01d16 | 53 | %description -l pl.UTF-8 |
7b0314da | 54 | Genius to narzędzie do rozwiązywania problemów matematycznych. Zawiera |
55 | ono matematyczny język programowania, narzędzie do geometrii | |
7be01d16 JR |
56 | euklidesowej, narzędzie do generowania wykresów 2D/3D oraz konsolowy |
57 | kalkulator. Kalkulator obsługuje liczby zmiennoprzecinkowe wysokiej | |
58 | precyzji, liczby całkowite, zespolone oraz macierze. | |
d4e81a96 | 59 | |
b360bb42 | 60 | %package devel |
61 | Summary: genius header files | |
975e6971 | 62 | Summary(pl.UTF-8): Pliki nagłówkowe genius |
b360bb42 | 63 | Group: X11/Development/Libraries |
675ee19c | 64 | Requires: %{name} = %{version}-%{release} |
b360bb42 | 65 | |
66 | %description devel | |
67 | Genius header files. | |
68 | ||
7be01d16 JR |
69 | %description devel -l pl.UTF-8 |
70 | Pliki nagłówkowe genius. | |
b360bb42 | 71 | |
d4e81a96 | 72 | %prep |
73 | %setup -q | |
74 | %patch0 -p1 | |
75 | %patch1 -p1 | |
68886999 | 76 | |
357b464c | 77 | %{__sed} -i -e 's#sr\@Latn#sr\@latin#' configure.in |
8af1d0df | 78 | %{__sed} -i 's@AM_BINRELOC@#AM_BINRELOC@' configure.in |
68886999 | 79 | mv po/sr\@{Latn,latin}.po |
675ee19c | 80 | |
d4e81a96 | 81 | %build |
357b464c | 82 | rm -f acinclude.m4 |
68886999 | 83 | %{__gnome_doc_common} |
245f6109 | 84 | cp xmldocs.make help |
d4e81a96 | 85 | %{__libtoolize} |
859cb5a6 MB |
86 | %{__glib_gettextize} |
87 | %{__intltoolize} | |
d4e81a96 | 88 | %{__aclocal} |
89 | %{__autoconf} | |
19c2070a | 90 | %{__autoheader} |
d4e81a96 | 91 | %{__automake} |
b360bb42 | 92 | %configure \ |
675ee19c | 93 | --disable-static \ |
94 | --enable-gtksourceview \ | |
04f4c346 MB |
95 | --enable-gnome \ |
96 | --disable-update-mimedb | |
675ee19c | 97 | |
4b7a2cae | 98 | %{__make} -j1 |
d4e81a96 | 99 | |
100 | %install | |
101 | rm -rf $RPM_BUILD_ROOT | |
102 | ||
103 | %{__make} install \ | |
104 | DESTDIR=$RPM_BUILD_ROOT | |
56664f6f | 105 | |
859cb5a6 MB |
106 | # Obsoleted GNOME mime-info stuff |
107 | rm -rf $RPM_BUILD_ROOT%{_datadir}/{application-registry,mime-info} | |
04f4c346 MB |
108 | rm -f $RPM_BUILD_ROOT%{_libdir}/genius/libtestplugin.{so,la} |
109 | ||
68886999 | 110 | %find_lang %{name} --with-gnome --with-omf --all-name |
d4e81a96 | 111 | |
53477fba JB |
112 | %clean |
113 | rm -rf $RPM_BUILD_ROOT | |
114 | ||
2035ea19 | 115 | %post |
53477fba | 116 | %scrollkeeper_update_post |
04f4c346 | 117 | %update_desktop_database_post |
859cb5a6 MB |
118 | %update_mime_database |
119 | %update_icon_cache hicolor | |
2035ea19 | 120 | |
121 | %postun | |
859cb5a6 | 122 | %update_icon_cache hicolor |
53477fba | 123 | %scrollkeeper_update_postun |
04f4c346 | 124 | %update_desktop_database_postun |
859cb5a6 | 125 | %update_mime_database |
b360bb42 | 126 | |
d4e81a96 | 127 | %files -f %{name}.lang |
128 | %defattr(644,root,root,755) | |
19c2070a | 129 | %doc AUTHORS ChangeLog NEWS README TODO |
859cb5a6 MB |
130 | %attr(755,root,root) %{_bindir}/genius |
131 | %attr(755,root,root) %{_bindir}/gnome-genius | |
132 | %dir %{_libdir}/genius | |
b360bb42 | 133 | %attr(755,root,root) %{_libdir}/genius-readline-helper-fifo |
d4e81a96 | 134 | %{_datadir}/genius |
859cb5a6 MB |
135 | %{_datadir}/mime/packages/genius.xml |
136 | %{_desktopdir}/gnome-genius.desktop | |
4b7a2cae | 137 | %{_iconsdir}/hicolor/*/apps/*.png |
b360bb42 | 138 | |
139 | %files devel | |
140 | %defattr(644,root,root,755) | |
b360bb42 | 141 | %{_includedir}/genius |