]>
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 |
1a51019d | 5 | Version: 1.0.14 |
25ed228d | 6 | Release: 3 |
7c42f626 | 7 | License: GPL v3+ |
7b0314da | 8 | Group: Applications/Math |
1a51019d | 9 | Source0: http://ftp.5z.com/pub/genius/%{name}-%{version}.tar.xz |
10 | # Source0-md5: 6b4dd6a7b7ad893e76c8653e332e8ad6 | |
b1f807e6 | 11 | Patch0: %{name}-desktop.patch |
945b9982 | 12 | URL: http://www.jirka.org/genius.html |
d4e81a96 | 13 | BuildRequires: autoconf |
14 | BuildRequires: automake | |
d4e81a96 | 15 | BuildRequires: bison |
16 | BuildRequires: flex | |
d2425627 | 17 | BuildRequires: gettext-devel |
91845d92 | 18 | BuildRequires: gmp-devel |
245f6109 | 19 | BuildRequires: gnome-common >= 2.8.0-2 |
a4a08fbd MB |
20 | BuildRequires: gnome-vfs2-devel |
21 | BuildRequires: gtk+2-devel >= 2:2.12.0 | |
22 | BuildRequires: gtksourceview2-devel >= 2.0.2 | |
675ee19c | 23 | BuildRequires: intltool >= 0.21 |
62d2fabc | 24 | BuildRequires: libtool |
7b0314da | 25 | BuildRequires: mpfr-devel >= 2.2.0 |
d4e81a96 | 26 | BuildRequires: ncurses-devel |
88a2b19f | 27 | BuildRequires: pkgconfig |
88a2b19f | 28 | BuildRequires: readline-devel |
357b464c | 29 | BuildRequires: rpmbuild(find_lang) >= 1.23 |
859cb5a6 | 30 | BuildRequires: rpmbuild(macros) >= 1.311 |
245f6109 | 31 | BuildRequires: scrollkeeper |
8af1d0df | 32 | BuildRequires: sed >= 4.0 |
1a51019d | 33 | BuildRequires: tar >= 1:1.22 |
34 | BuildRequires: vte0-devel >= 0.8.19 | |
35 | BuildRequires: xz >= 1:4.999.7 | |
04f4c346 | 36 | Requires(post,postun): desktop-file-utils |
7f69a61f | 37 | Requires(post,postun): gtk-update-icon-cache |
859cb5a6 | 38 | Requires(post,postun): hicolor-icon-theme |
245f6109 | 39 | Requires(post,postun): scrollkeeper |
2035ea19 | 40 | Requires(post,postun): shared-mime-info |
eb5affb4 | 41 | Obsoletes: drgenius |
42 | Obsoletes: drgeo | |
5dcbbb81 | 43 | # sr@Latn vs. sr@latin |
44 | Conflicts: glibc-misc < 6:2.7 | |
d4e81a96 | 45 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
46 | ||
47 | %description | |
48 | Genius is a general tool for mathematics, including a mathematical | |
49 | programming language and evaluator, an euclidian geometry tool, a | |
50 | 2D/3D function grapher and a console calculator. The console | |
51 | calculator handles multiple precision floating point numbers, infinite | |
52 | precision integers, complex numbers and matrixes. | |
53 | ||
7be01d16 | 54 | %description -l pl.UTF-8 |
7b0314da | 55 | Genius to narzędzie do rozwiązywania problemów matematycznych. Zawiera |
56 | ono matematyczny język programowania, narzędzie do geometrii | |
7be01d16 JR |
57 | euklidesowej, narzędzie do generowania wykresów 2D/3D oraz konsolowy |
58 | kalkulator. Kalkulator obsługuje liczby zmiennoprzecinkowe wysokiej | |
59 | precyzji, liczby całkowite, zespolone oraz macierze. | |
d4e81a96 | 60 | |
b360bb42 | 61 | %package devel |
62 | Summary: genius header files | |
975e6971 | 63 | Summary(pl.UTF-8): Pliki nagłówkowe genius |
b360bb42 | 64 | Group: X11/Development/Libraries |
675ee19c | 65 | Requires: %{name} = %{version}-%{release} |
b360bb42 | 66 | |
67 | %description devel | |
68 | Genius header files. | |
69 | ||
7be01d16 JR |
70 | %description devel -l pl.UTF-8 |
71 | Pliki nagłówkowe genius. | |
b360bb42 | 72 | |
d4e81a96 | 73 | %prep |
74 | %setup -q | |
75 | %patch0 -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 | 106 | # Obsoleted GNOME mime-info stuff |
5548f969 | 107 | %{__rm} -r $RPM_BUILD_ROOT%{_datadir}/{application-registry,mime-info} |
108 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/genius/libtestplugin.{so,la} | |
04f4c346 | 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 |