]>
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.23 | |
6 | Release: 1 | |
7 | License: GPL v3+ | |
8 | Group: Applications/Math | |
9 | Source0: ftp://ftp.gnome.org/pub/gnome/sources/genius/1.0/%{name}-%{version}.tar.xz | |
10 | # Source0-md5: 7fa8a2850b3245acd1b1d6514f2eb9e1 | |
11 | URL: http://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.16.0 | |
18 | BuildRequires: gmp-devel >= 2.3.0 | |
19 | BuildRequires: gtk+2-devel >= 2:2.18.0 | |
20 | BuildRequires: gtksourceview2-devel >= 2.0.2 | |
21 | BuildRequires: intltool >= 0.21 | |
22 | BuildRequires: libtool | |
23 | BuildRequires: mpfr-devel >= 2.3.0 | |
24 | BuildRequires: ncurses-devel | |
25 | BuildRequires: pkgconfig | |
26 | BuildRequires: readline-devel | |
27 | BuildRequires: rpmbuild(find_lang) >= 1.23 | |
28 | BuildRequires: rpmbuild(macros) >= 1.311 | |
29 | BuildRequires: sed >= 4.0 | |
30 | BuildRequires: tar >= 1:1.22 | |
31 | BuildRequires: vte0-devel >= 0.26.0 | |
32 | BuildRequires: xz >= 1:4.999.7 | |
33 | Requires(post,postun): desktop-file-utils | |
34 | Requires(post,postun): gtk-update-icon-cache | |
35 | Requires(post,postun): hicolor-icon-theme | |
36 | Requires(post,postun): shared-mime-info | |
37 | Requires: glib2 >= 1:2.16.0 | |
38 | Requires: gmp >= 2.3.0 | |
39 | Requires: gtk+2 >= 2:2.18.0 | |
40 | Requires: gtksourceview2 >= 2.0.2 | |
41 | Requires: mpfr >= 2.3.0 | |
42 | Requires: vte0 >= 0.26.0 | |
43 | Obsoletes: drgenius | |
44 | Obsoletes: drgeo | |
45 | # sr@Latn vs. sr@latin | |
46 | Conflicts: glibc-misc < 6:2.7 | |
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.16.0 | |
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 | --disable-static \ | |
94 | --enable-gtksourceview \ | |
95 | --enable-gnome \ | |
96 | --disable-update-mimedb | |
97 | ||
98 | %{__make} -j1 | |
99 | ||
100 | %install | |
101 | rm -rf $RPM_BUILD_ROOT | |
102 | ||
103 | %{__make} install \ | |
104 | DESTDIR=$RPM_BUILD_ROOT | |
105 | ||
106 | # Obsoleted GNOME mime-info stuff | |
107 | %{__rm} -r $RPM_BUILD_ROOT%{_datadir}/{application-registry,mime-info} | |
108 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/genius/libtestplugin.{so,la} | |
109 | ||
110 | %find_lang %{name} | |
111 | ||
112 | %clean | |
113 | rm -rf $RPM_BUILD_ROOT | |
114 | ||
115 | %post | |
116 | %update_desktop_database_post | |
117 | %update_mime_database | |
118 | %update_icon_cache hicolor | |
119 | ||
120 | %postun | |
121 | %update_icon_cache hicolor | |
122 | %update_desktop_database_postun | |
123 | %update_mime_database | |
124 | ||
125 | %files -f %{name}.lang | |
126 | %defattr(644,root,root,755) | |
127 | %doc AUTHORS ChangeLog NEWS README TODO | |
128 | %attr(755,root,root) %{_bindir}/genius | |
129 | %attr(755,root,root) %{_bindir}/gnome-genius | |
130 | %dir %{_libdir}/genius | |
131 | %attr(755,root,root) %{_libdir}/genius-readline-helper-fifo | |
132 | %dir %{_datadir}/genius | |
133 | %{_datadir}/genius/examples | |
134 | %{_datadir}/genius/gel | |
135 | %{_datadir}/genius/genius-graph.png | |
136 | %{_datadir}/genius/genius.txt | |
137 | %{_datadir}/genius/gtksourceview | |
138 | %dir %{_datadir}/genius/help | |
139 | %{_datadir}/genius/help/C | |
140 | %lang(cs) %{_datadir}/genius/help/cs | |
141 | %lang(de) %{_datadir}/genius/help/de | |
142 | %lang(el) %{_datadir}/genius/help/el | |
143 | %lang(es) %{_datadir}/genius/help/es | |
144 | %lang(fr) %{_datadir}/genius/help/fr | |
145 | %lang(pt_BR) %{_datadir}/genius/help/pt_BR | |
146 | %lang(ru) %{_datadir}/genius/help/ru | |
147 | %lang(sv) %{_datadir}/genius/help/sv | |
148 | %{_datadir}/genius/plugins | |
149 | %{_datadir}/mime/packages/genius.xml | |
150 | %{_desktopdir}/gnome-genius.desktop | |
151 | %{_iconsdir}/hicolor/*x*/apps/genius-stock-plot.png | |
152 | %{_iconsdir}/hicolor/*x*/apps/gnome-genius.png | |
153 | %{_iconsdir}/hicolor/scalable/apps/gnome-genius.svg | |
154 | ||
155 | %files devel | |
156 | %defattr(644,root,root,755) | |
157 | %{_includedir}/genius |