]>
Commit | Line | Data |
---|---|---|
1 | # TODO: where is "euclidian geometry tool"? Maybe drgeo-obsoletes is false | |
2 | Summary: General tool for mathematics | |
3 | Summary(pl.UTF-8): Rozbudowane narzędzie matematyczne | |
4 | Name: genius | |
5 | Version: 1.0.27 | |
6 | Release: 1 | |
7 | License: GPL v3+ | |
8 | Group: Applications/Math | |
9 | Source0: https://download.gnome.org/sources/genius/1.0/%{name}-%{version}.tar.xz | |
10 | # Source0-md5: d510beed59c2b9ad52a56153e5825fb8 | |
11 | URL: https://www.jirka.org/genius.html | |
12 | BuildRequires: autoconf >= 2.50 | |
13 | BuildRequires: automake | |
14 | BuildRequires: bison | |
15 | BuildRequires: flex | |
16 | BuildRequires: gettext-tools | |
17 | BuildRequires: glib2-devel >= 1:2.41.1 | |
18 | BuildRequires: gmp-devel >= 2.3.0 | |
19 | BuildRequires: gtk+3-devel >= 3.21.4 | |
20 | BuildRequires: gtksourceview4-devel >= 4.0 | |
21 | BuildRequires: intltool >= 0.21 | |
22 | BuildRequires: libtool | |
23 | BuildRequires: mpfr-devel >= 2.3.0 | |
24 | BuildRequires: ncurses-devel | |
25 | BuildRequires: pango-devel >= 1:1.22.0 | |
26 | BuildRequires: pkgconfig | |
27 | BuildRequires: readline-devel | |
28 | BuildRequires: rpmbuild(find_lang) >= 1.23 | |
29 | BuildRequires: rpmbuild(macros) >= 1.311 | |
30 | BuildRequires: sed >= 4.0 | |
31 | BuildRequires: tar >= 1:1.22 | |
32 | BuildRequires: vte-devel >= 0.50.0 | |
33 | BuildRequires: xz >= 1:4.999.7 | |
34 | Requires(post,postun): desktop-file-utils | |
35 | Requires(post,postun): gtk-update-icon-cache | |
36 | Requires(post,postun): hicolor-icon-theme | |
37 | Requires(post,postun): shared-mime-info | |
38 | Requires: glib2 >= 1:2.41.1 | |
39 | Requires: gmp >= 2.3.0 | |
40 | Requires: gtk+3 >= 3.21.4 | |
41 | Requires: gtksourceview4 >= 4.0 | |
42 | Requires: mpfr >= 2.3.0 | |
43 | Requires: pango >= 1:1.22.0 | |
44 | Requires: vte >= 0.50.0 | |
45 | Obsoletes: drgenius < 0.6 | |
46 | Obsoletes: drgeo < 1.2 | |
47 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
48 | ||
49 | %description | |
50 | Genius is a general tool for mathematics, including a mathematical | |
51 | programming language and evaluator, an euclidian geometry tool, a | |
52 | 2D/3D function grapher and a console calculator. The console | |
53 | calculator handles multiple precision floating point numbers, infinite | |
54 | precision integers, complex numbers and matrixes. | |
55 | ||
56 | %description -l pl.UTF-8 | |
57 | Genius to narzędzie do rozwiązywania problemów matematycznych. Zawiera | |
58 | ono matematyczny język programowania, narzędzie do geometrii | |
59 | euklidesowej, narzędzie do generowania wykresów 2D/3D oraz konsolowy | |
60 | kalkulator. Kalkulator obsługuje liczby zmiennoprzecinkowe wysokiej | |
61 | precyzji, liczby całkowite, zespolone oraz macierze. | |
62 | ||
63 | %package devel | |
64 | Summary: genius header files | |
65 | Summary(pl.UTF-8): Pliki nagłówkowe genius | |
66 | Group: X11/Development/Libraries | |
67 | Requires: %{name} = %{version}-%{release} | |
68 | Requires: glib2-devel >= 1:2.41.1 | |
69 | Requires: gmp-devel >= 2.3.0 | |
70 | Requires: mpfr-devel >= 2.3.0 | |
71 | ||
72 | %description devel | |
73 | Genius header files. | |
74 | ||
75 | %description devel -l pl.UTF-8 | |
76 | Pliki nagłówkowe genius. | |
77 | ||
78 | %prep | |
79 | %setup -q | |
80 | ||
81 | %{__sed} -i 's@AM_BINRELOC@#AM_BINRELOC@' configure.ac | |
82 | ||
83 | %build | |
84 | %{__rm} acinclude.m4 | |
85 | %{__libtoolize} | |
86 | %{__glib_gettextize} | |
87 | %{__intltoolize} | |
88 | %{__aclocal} | |
89 | %{__autoconf} | |
90 | %{__autoheader} | |
91 | %{__automake} | |
92 | %configure \ | |
93 | ac_cv_lib_termcap_tgetent=no \ | |
94 | --disable-static \ | |
95 | --disable-update-mimedb | |
96 | ||
97 | %{__make} -j1 | |
98 | ||
99 | %install | |
100 | rm -rf $RPM_BUILD_ROOT | |
101 | ||
102 | %{__make} install \ | |
103 | DESTDIR=$RPM_BUILD_ROOT | |
104 | ||
105 | # Obsoleted GNOME mime-info stuff | |
106 | %{__rm} -r $RPM_BUILD_ROOT%{_datadir}/{application-registry,mime-info} | |
107 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/genius/libtestplugin.{so,la} | |
108 | ||
109 | %find_lang %{name} | |
110 | ||
111 | %clean | |
112 | rm -rf $RPM_BUILD_ROOT | |
113 | ||
114 | %post | |
115 | %update_desktop_database_post | |
116 | %update_mime_database | |
117 | %update_icon_cache hicolor | |
118 | ||
119 | %postun | |
120 | %update_icon_cache hicolor | |
121 | %update_desktop_database_postun | |
122 | %update_mime_database | |
123 | ||
124 | %files -f %{name}.lang | |
125 | %defattr(644,root,root,755) | |
126 | %doc AUTHORS ChangeLog NEWS README TODO | |
127 | %attr(755,root,root) %{_bindir}/genius | |
128 | %attr(755,root,root) %{_bindir}/gnome-genius | |
129 | %dir %{_libdir}/genius | |
130 | %attr(755,root,root) %{_libexecdir}/genius-readline-helper-fifo | |
131 | %dir %{_datadir}/genius | |
132 | %{_datadir}/genius/examples | |
133 | %{_datadir}/genius/gel | |
134 | %{_datadir}/genius/genius-graph.png | |
135 | %{_datadir}/genius/genius.txt | |
136 | %{_datadir}/genius/gtksourceview | |
137 | %dir %{_datadir}/genius/help | |
138 | %{_datadir}/genius/help/C | |
139 | %lang(cs) %{_datadir}/genius/help/cs | |
140 | %lang(de) %{_datadir}/genius/help/de | |
141 | %lang(el) %{_datadir}/genius/help/el | |
142 | %lang(es) %{_datadir}/genius/help/es | |
143 | %lang(fr) %{_datadir}/genius/help/fr | |
144 | %lang(pt_BR) %{_datadir}/genius/help/pt_BR | |
145 | %lang(ru) %{_datadir}/genius/help/ru | |
146 | %lang(sv) %{_datadir}/genius/help/sv | |
147 | %{_datadir}/genius/plugins | |
148 | %{_datadir}/mime/packages/genius.xml | |
149 | %{_desktopdir}/gnome-genius.desktop | |
150 | %{_iconsdir}/hicolor/*x*/apps/genius-stock-plot.png | |
151 | %{_iconsdir}/hicolor/*x*/apps/gnome-genius.png | |
152 | %{_iconsdir}/hicolor/scalable/apps/gnome-genius.svg | |
153 | ||
154 | %files devel | |
155 | %defattr(644,root,root,755) | |
156 | %{_includedir}/genius |