]>
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.22 | |
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: 9fc1dae4cb9a54d36df4981dd75248ae | |
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: gnome-common >= 2.8.0-2 | |
20 | BuildRequires: gtk+2-devel >= 2:2.18.0 | |
21 | BuildRequires: gtksourceview2-devel >= 2.0.2 | |
22 | BuildRequires: intltool >= 0.21 | |
23 | BuildRequires: libtool | |
24 | BuildRequires: mpfr-devel >= 2.3.0 | |
25 | BuildRequires: ncurses-devel | |
26 | BuildRequires: pkgconfig | |
27 | BuildRequires: readline-devel | |
28 | BuildRequires: rpmbuild(find_lang) >= 1.23 | |
29 | BuildRequires: rpmbuild(macros) >= 1.311 | |
30 | BuildRequires: scrollkeeper | |
31 | BuildRequires: sed >= 4.0 | |
32 | BuildRequires: tar >= 1:1.22 | |
33 | BuildRequires: vte0-devel >= 0.26.0 | |
34 | BuildRequires: xz >= 1:4.999.7 | |
35 | Requires(post,postun): desktop-file-utils | |
36 | Requires(post,postun): gtk-update-icon-cache | |
37 | Requires(post,postun): hicolor-icon-theme | |
38 | Requires(post,postun): scrollkeeper | |
39 | Requires(post,postun): shared-mime-info | |
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.3.0 | |
45 | Requires: vte0 >= 0.26.0 | |
46 | Obsoletes: drgenius | |
47 | Obsoletes: drgeo | |
48 | # sr@Latn vs. sr@latin | |
49 | Conflicts: glibc-misc < 6:2.7 | |
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 | ||
59 | %description -l pl.UTF-8 | |
60 | Genius to narzędzie do rozwiązywania problemów matematycznych. Zawiera | |
61 | ono matematyczny język programowania, narzędzie do geometrii | |
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. | |
65 | ||
66 | %package devel | |
67 | Summary: genius header files | |
68 | Summary(pl.UTF-8): Pliki nagłówkowe genius | |
69 | Group: X11/Development/Libraries | |
70 | Requires: %{name} = %{version}-%{release} | |
71 | Requires: glib2-devel >= 1:2.16.0 | |
72 | Requires: gmp-devel >= 2.3.0 | |
73 | Requires: mpfr-devel >= 2.3.0 | |
74 | ||
75 | %description devel | |
76 | Genius header files. | |
77 | ||
78 | %description devel -l pl.UTF-8 | |
79 | Pliki nagłówkowe genius. | |
80 | ||
81 | %prep | |
82 | %setup -q | |
83 | ||
84 | %{__sed} -i 's@AM_BINRELOC@#AM_BINRELOC@' configure.ac | |
85 | ||
86 | %build | |
87 | %{__rm} acinclude.m4 | |
88 | #%{__gnome_doc_common} | |
89 | #cp xmldocs.make help | |
90 | %{__libtoolize} | |
91 | %{__glib_gettextize} | |
92 | %{__intltoolize} | |
93 | %{__aclocal} | |
94 | %{__autoconf} | |
95 | %{__autoheader} | |
96 | %{__automake} | |
97 | %configure \ | |
98 | --disable-static \ | |
99 | --enable-gtksourceview \ | |
100 | --enable-gnome \ | |
101 | --disable-scrollkeeper \ | |
102 | --disable-update-mimedb | |
103 | ||
104 | %{__make} -j1 | |
105 | ||
106 | %install | |
107 | rm -rf $RPM_BUILD_ROOT | |
108 | ||
109 | %{__make} install \ | |
110 | DESTDIR=$RPM_BUILD_ROOT | |
111 | ||
112 | # Obsoleted GNOME mime-info stuff | |
113 | %{__rm} -r $RPM_BUILD_ROOT%{_datadir}/{application-registry,mime-info} | |
114 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/genius/libtestplugin.{so,la} | |
115 | ||
116 | %find_lang %{name} --with-gnome --with-omf --all-name | |
117 | ||
118 | %clean | |
119 | rm -rf $RPM_BUILD_ROOT | |
120 | ||
121 | %post | |
122 | %scrollkeeper_update_post | |
123 | %update_desktop_database_post | |
124 | %update_mime_database | |
125 | %update_icon_cache hicolor | |
126 | ||
127 | %postun | |
128 | %update_icon_cache hicolor | |
129 | %scrollkeeper_update_postun | |
130 | %update_desktop_database_postun | |
131 | %update_mime_database | |
132 | ||
133 | %files -f %{name}.lang | |
134 | %defattr(644,root,root,755) | |
135 | %doc AUTHORS ChangeLog NEWS README TODO | |
136 | %attr(755,root,root) %{_bindir}/genius | |
137 | %attr(755,root,root) %{_bindir}/gnome-genius | |
138 | %dir %{_libdir}/genius | |
139 | %attr(755,root,root) %{_libdir}/genius-readline-helper-fifo | |
140 | %{_datadir}/genius | |
141 | %{_datadir}/mime/packages/genius.xml | |
142 | %{_desktopdir}/gnome-genius.desktop | |
143 | %{_iconsdir}/hicolor/*x*/apps/genius-stock-plot.png | |
144 | %{_iconsdir}/hicolor/*x*/apps/gnome-genius.png | |
145 | %{_iconsdir}/hicolor/scalable/apps/gnome-genius.svg | |
146 | ||
147 | %files devel | |
148 | %defattr(644,root,root,755) | |
149 | %{_includedir}/genius |