- updated to 1.0.26
[packages/genius.git] / genius.spec
CommitLineData
3def2caa 1# TODO: where is "euclidian geometry tool"? Maybe drgeo-obsoletes is false
d4e81a96 2Summary: General tool for mathematics
975e6971 3Summary(pl.UTF-8): Rozbudowane narzędzie matematyczne
d4e81a96 4Name: genius
5711e36a 5Version: 1.0.26
ab5adade 6Release: 1
7c42f626 7License: GPL v3+
7b0314da 8Group: Applications/Math
5711e36a
JB
9Source0: https://download.gnome.org/sources/genius/1.0/%{name}-%{version}.tar.xz
10# Source0-md5: 1a9afb7e70a8e0be752dbe40a3f510f4
2216b06c 11URL: https://www.jirka.org/genius.html
ab5adade 12BuildRequires: amtk-devel >= 5.0
cc9177e9 13BuildRequires: autoconf >= 2.50
d4e81a96 14BuildRequires: automake
d4e81a96 15BuildRequires: bison
16BuildRequires: flex
b758708b 17BuildRequires: gettext-tools
ab5adade 18BuildRequires: glib2-devel >= 1:2.41.1
3def2caa 19BuildRequires: gmp-devel >= 2.3.0
ab5adade
JB
20BuildRequires: gtk+3-devel >= 3.21.4
21BuildRequires: gtksourceview4-devel >= 4.0
675ee19c 22BuildRequires: intltool >= 0.21
62d2fabc 23BuildRequires: libtool
3d713d97 24BuildRequires: mpfr-devel >= 2.3.0
d4e81a96 25BuildRequires: ncurses-devel
2216b06c 26BuildRequires: pango-devel >= 1:1.22.0
88a2b19f 27BuildRequires: pkgconfig
88a2b19f 28BuildRequires: readline-devel
357b464c 29BuildRequires: rpmbuild(find_lang) >= 1.23
859cb5a6 30BuildRequires: rpmbuild(macros) >= 1.311
8af1d0df 31BuildRequires: sed >= 4.0
1a51019d 32BuildRequires: tar >= 1:1.22
1a51019d 33BuildRequires: xz >= 1:4.999.7
04f4c346 34Requires(post,postun): desktop-file-utils
7f69a61f 35Requires(post,postun): gtk-update-icon-cache
859cb5a6 36Requires(post,postun): hicolor-icon-theme
2035ea19 37Requires(post,postun): shared-mime-info
ab5adade
JB
38Requires: amtk >= 5.0
39Requires: glib2 >= 1:2.41.1
3def2caa 40Requires: gmp >= 2.3.0
ab5adade
JB
41Requires: gtk+3 >= 3.21.4
42Requires: gtksourceview4 >= 4.0
3d713d97 43Requires: mpfr >= 2.3.0
2216b06c 44Requires: pango >= 1:1.22.0
eb5affb4 45Obsoletes: drgenius
46Obsoletes: drgeo
d4e81a96 47BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
48
49%description
50Genius is a general tool for mathematics, including a mathematical
51programming language and evaluator, an euclidian geometry tool, a
522D/3D function grapher and a console calculator. The console
53calculator handles multiple precision floating point numbers, infinite
54precision integers, complex numbers and matrixes.
55
7be01d16 56%description -l pl.UTF-8
7b0314da 57Genius to narzędzie do rozwiązywania problemów matematycznych. Zawiera
58ono matematyczny język programowania, narzędzie do geometrii
7be01d16
JR
59euklidesowej, narzędzie do generowania wykresów 2D/3D oraz konsolowy
60kalkulator. Kalkulator obsługuje liczby zmiennoprzecinkowe wysokiej
61precyzji, liczby całkowite, zespolone oraz macierze.
d4e81a96 62
b360bb42 63%package devel
64Summary: genius header files
975e6971 65Summary(pl.UTF-8): Pliki nagłówkowe genius
b360bb42 66Group: X11/Development/Libraries
675ee19c 67Requires: %{name} = %{version}-%{release}
ab5adade 68Requires: glib2-devel >= 1:2.41.1
3def2caa 69Requires: gmp-devel >= 2.3.0
3d713d97 70Requires: mpfr-devel >= 2.3.0
b360bb42 71
72%description devel
73Genius header files.
74
7be01d16
JR
75%description devel -l pl.UTF-8
76Pliki nagłówkowe genius.
b360bb42 77
d4e81a96 78%prep
79%setup -q
68886999 80
689fa32b 81%{__sed} -i 's@AM_BINRELOC@#AM_BINRELOC@' configure.ac
675ee19c 82
d4e81a96 83%build
3def2caa 84%{__rm} acinclude.m4
d4e81a96 85%{__libtoolize}
859cb5a6
MB
86%{__glib_gettextize}
87%{__intltoolize}
d4e81a96 88%{__aclocal}
89%{__autoconf}
19c2070a 90%{__autoheader}
d4e81a96 91%{__automake}
b360bb42 92%configure \
2216b06c 93 ac_cv_lib_termcap_tgetent=no \
675ee19c 94 --disable-static \
04f4c346 95 --disable-update-mimedb
675ee19c 96
4b7a2cae 97%{__make} -j1
d4e81a96 98
99%install
100rm -rf $RPM_BUILD_ROOT
101
102%{__make} install \
103 DESTDIR=$RPM_BUILD_ROOT
56664f6f 104
859cb5a6 105# Obsoleted GNOME mime-info stuff
5548f969 106%{__rm} -r $RPM_BUILD_ROOT%{_datadir}/{application-registry,mime-info}
107%{__rm} $RPM_BUILD_ROOT%{_libdir}/genius/libtestplugin.{so,la}
04f4c346 108
47327c03 109%find_lang %{name}
d4e81a96 110
53477fba
JB
111%clean
112rm -rf $RPM_BUILD_ROOT
113
2035ea19 114%post
04f4c346 115%update_desktop_database_post
859cb5a6
MB
116%update_mime_database
117%update_icon_cache hicolor
2035ea19 118
119%postun
859cb5a6 120%update_icon_cache hicolor
04f4c346 121%update_desktop_database_postun
859cb5a6 122%update_mime_database
b360bb42 123
d4e81a96 124%files -f %{name}.lang
125%defattr(644,root,root,755)
19c2070a 126%doc AUTHORS ChangeLog NEWS README TODO
859cb5a6
MB
127%attr(755,root,root) %{_bindir}/genius
128%attr(755,root,root) %{_bindir}/gnome-genius
129%dir %{_libdir}/genius
837e7b0a 130%attr(755,root,root) %{_libexecdir}/genius-readline-helper-fifo
47327c03
JB
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
859cb5a6
MB
148%{_datadir}/mime/packages/genius.xml
149%{_desktopdir}/gnome-genius.desktop
3def2caa
JB
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
b360bb42 153
154%files devel
155%defattr(644,root,root,755)
b360bb42 156%{_includedir}/genius
This page took 0.427852 seconds and 4 git commands to generate.