]>
Commit | Line | Data |
---|---|---|
1 | # TODO: where is "euclidian geometry tool"? Maybe drgeo-obsolotes is false | |
2 | Summary: General tool for mathematics | |
3 | Summary(pl.UTF-8): Rozbudowane narzędzie matematyczne | |
4 | Name: genius | |
5 | Version: 1.0.16 | |
6 | Release: 1 | |
7 | License: GPL v3+ | |
8 | Group: Applications/Math | |
9 | Source0: http://ftp.5z.com/pub/genius/%{name}-%{version}.tar.xz | |
10 | # Source0-md5: 2bd84b1c1ec3232c67e901b7d69f5698 | |
11 | Patch0: %{name}-desktop.patch | |
12 | URL: http://www.jirka.org/genius.html | |
13 | BuildRequires: autoconf | |
14 | BuildRequires: automake | |
15 | BuildRequires: bison | |
16 | BuildRequires: flex | |
17 | BuildRequires: gettext-tools | |
18 | BuildRequires: gmp-devel | |
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.2.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.17.1 | |
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 | Obsoletes: drgenius | |
41 | Obsoletes: drgeo | |
42 | # sr@Latn vs. sr@latin | |
43 | Conflicts: glibc-misc < 6:2.7 | |
44 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
45 | ||
46 | %description | |
47 | Genius is a general tool for mathematics, including a mathematical | |
48 | programming language and evaluator, an euclidian geometry tool, a | |
49 | 2D/3D function grapher and a console calculator. The console | |
50 | calculator handles multiple precision floating point numbers, infinite | |
51 | precision integers, complex numbers and matrixes. | |
52 | ||
53 | %description -l pl.UTF-8 | |
54 | Genius to narzędzie do rozwiązywania problemów matematycznych. Zawiera | |
55 | ono matematyczny język programowania, narzędzie do geometrii | |
56 | euklidesowej, narzędzie do generowania wykresów 2D/3D oraz konsolowy | |
57 | kalkulator. Kalkulator obsługuje liczby zmiennoprzecinkowe wysokiej | |
58 | precyzji, liczby całkowite, zespolone oraz macierze. | |
59 | ||
60 | %package devel | |
61 | Summary: genius header files | |
62 | Summary(pl.UTF-8): Pliki nagłówkowe genius | |
63 | Group: X11/Development/Libraries | |
64 | Requires: %{name} = %{version}-%{release} | |
65 | ||
66 | %description devel | |
67 | Genius header files. | |
68 | ||
69 | %description devel -l pl.UTF-8 | |
70 | Pliki nagłówkowe genius. | |
71 | ||
72 | %prep | |
73 | %setup -q | |
74 | %patch0 -p1 | |
75 | ||
76 | %{__sed} -i -e 's#sr\@Latn#sr\@latin#' configure.in | |
77 | %{__sed} -i 's@AM_BINRELOC@#AM_BINRELOC@' configure.in | |
78 | mv po/sr\@{Latn,latin}.po | |
79 | ||
80 | %build | |
81 | rm -f acinclude.m4 | |
82 | %{__gnome_doc_common} | |
83 | cp xmldocs.make help | |
84 | %{__libtoolize} | |
85 | %{__glib_gettextize} | |
86 | %{__intltoolize} | |
87 | %{__aclocal} | |
88 | %{__autoconf} | |
89 | %{__autoheader} | |
90 | %{__automake} | |
91 | %configure \ | |
92 | --disable-static \ | |
93 | --enable-gtksourceview \ | |
94 | --enable-gnome \ | |
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} --with-gnome --with-omf --all-name | |
110 | ||
111 | %clean | |
112 | rm -rf $RPM_BUILD_ROOT | |
113 | ||
114 | %post | |
115 | %scrollkeeper_update_post | |
116 | %update_desktop_database_post | |
117 | %update_mime_database | |
118 | %update_icon_cache hicolor | |
119 | ||
120 | %postun | |
121 | %update_icon_cache hicolor | |
122 | %scrollkeeper_update_postun | |
123 | %update_desktop_database_postun | |
124 | %update_mime_database | |
125 | ||
126 | %files -f %{name}.lang | |
127 | %defattr(644,root,root,755) | |
128 | %doc AUTHORS ChangeLog NEWS README TODO | |
129 | %attr(755,root,root) %{_bindir}/genius | |
130 | %attr(755,root,root) %{_bindir}/gnome-genius | |
131 | %dir %{_libdir}/genius | |
132 | %attr(755,root,root) %{_libdir}/genius-readline-helper-fifo | |
133 | %{_datadir}/genius | |
134 | %{_datadir}/mime/packages/genius.xml | |
135 | %{_desktopdir}/gnome-genius.desktop | |
136 | %{_iconsdir}/hicolor/*/apps/*.png | |
137 | ||
138 | %files devel | |
139 | %defattr(644,root,root,755) | |
140 | %{_includedir}/genius |