]>
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.20 | |
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: 5837938aa68ad4f332adc7983be071f3 | |
11 | URL: http://www.jirka.org/genius.html | |
12 | BuildRequires: autoconf | |
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.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 | 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 | |
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.2.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 -e 's#sr\@Latn#sr\@latin#' configure.in | |
85 | %{__sed} -i 's@AM_BINRELOC@#AM_BINRELOC@' configure.in | |
86 | %{__mv} po/sr\@{Latn,latin}.po | |
87 | ||
88 | %build | |
89 | %{__rm} acinclude.m4 | |
90 | #%{__gnome_doc_common} | |
91 | #cp xmldocs.make help | |
92 | %{__libtoolize} | |
93 | %{__glib_gettextize} | |
94 | %{__intltoolize} | |
95 | %{__aclocal} | |
96 | %{__autoconf} | |
97 | %{__autoheader} | |
98 | %{__automake} | |
99 | %configure \ | |
100 | --disable-static \ | |
101 | --enable-gtksourceview \ | |
102 | --enable-gnome \ | |
103 | --disable-scrollkeeper \ | |
104 | --disable-update-mimedb | |
105 | ||
106 | %{__make} -j1 | |
107 | ||
108 | %install | |
109 | rm -rf $RPM_BUILD_ROOT | |
110 | ||
111 | %{__make} install \ | |
112 | DESTDIR=$RPM_BUILD_ROOT | |
113 | ||
114 | # Obsoleted GNOME mime-info stuff | |
115 | %{__rm} -r $RPM_BUILD_ROOT%{_datadir}/{application-registry,mime-info} | |
116 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/genius/libtestplugin.{so,la} | |
117 | ||
118 | %find_lang %{name} --with-gnome --with-omf --all-name | |
119 | ||
120 | %clean | |
121 | rm -rf $RPM_BUILD_ROOT | |
122 | ||
123 | %post | |
124 | %scrollkeeper_update_post | |
125 | %update_desktop_database_post | |
126 | %update_mime_database | |
127 | %update_icon_cache hicolor | |
128 | ||
129 | %postun | |
130 | %update_icon_cache hicolor | |
131 | %scrollkeeper_update_postun | |
132 | %update_desktop_database_postun | |
133 | %update_mime_database | |
134 | ||
135 | %files -f %{name}.lang | |
136 | %defattr(644,root,root,755) | |
137 | %doc AUTHORS ChangeLog NEWS README TODO | |
138 | %attr(755,root,root) %{_bindir}/genius | |
139 | %attr(755,root,root) %{_bindir}/gnome-genius | |
140 | %dir %{_libdir}/genius | |
141 | %attr(755,root,root) %{_libdir}/genius-readline-helper-fifo | |
142 | %{_datadir}/genius | |
143 | %{_datadir}/mime/packages/genius.xml | |
144 | %{_desktopdir}/gnome-genius.desktop | |
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 | |
148 | ||
149 | %files devel | |
150 | %defattr(644,root,root,755) | |
151 | %{_includedir}/genius |