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