- updated to 1.0.25; ported to GTK+ 3 now
[packages/genius.git] / genius.spec
... / ...
CommitLineData
1# TODO: where is "euclidian geometry tool"? Maybe drgeo-obsoletes is false
2Summary: General tool for mathematics
3Summary(pl.UTF-8): Rozbudowane narzędzie matematyczne
4Name: genius
5Version: 1.0.25
6Release: 1
7License: GPL v3+
8Group: Applications/Math
9Source0: http://ftp.gnome.org/pub/GNOME/sources/genius/1.0/%{name}-%{version}.tar.xz
10# Source0-md5: df24f0fd3fc2af12f8dfb817e98a631b
11URL: https://www.jirka.org/genius.html
12BuildRequires: amtk-devel >= 5.0
13BuildRequires: autoconf >= 2.50
14BuildRequires: automake
15BuildRequires: bison
16BuildRequires: flex
17BuildRequires: gettext-tools
18BuildRequires: glib2-devel >= 1:2.41.1
19BuildRequires: gmp-devel >= 2.3.0
20BuildRequires: gtk+3-devel >= 3.21.4
21BuildRequires: gtksourceview4-devel >= 4.0
22BuildRequires: intltool >= 0.21
23BuildRequires: libtool
24BuildRequires: mpfr-devel >= 2.3.0
25BuildRequires: ncurses-devel
26BuildRequires: pango-devel >= 1:1.22.0
27BuildRequires: pkgconfig
28BuildRequires: readline-devel
29BuildRequires: rpmbuild(find_lang) >= 1.23
30BuildRequires: rpmbuild(macros) >= 1.311
31BuildRequires: sed >= 4.0
32BuildRequires: tar >= 1:1.22
33BuildRequires: xz >= 1:4.999.7
34Requires(post,postun): desktop-file-utils
35Requires(post,postun): gtk-update-icon-cache
36Requires(post,postun): hicolor-icon-theme
37Requires(post,postun): shared-mime-info
38Requires: amtk >= 5.0
39Requires: glib2 >= 1:2.41.1
40Requires: gmp >= 2.3.0
41Requires: gtk+3 >= 3.21.4
42Requires: gtksourceview4 >= 4.0
43Requires: mpfr >= 2.3.0
44Requires: pango >= 1:1.22.0
45Obsoletes: drgenius
46Obsoletes: drgeo
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
56%description -l pl.UTF-8
57Genius to narzędzie do rozwiązywania problemów matematycznych. Zawiera
58ono matematyczny język programowania, narzędzie do geometrii
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.
62
63%package devel
64Summary: genius header files
65Summary(pl.UTF-8): Pliki nagłówkowe genius
66Group: X11/Development/Libraries
67Requires: %{name} = %{version}-%{release}
68Requires: glib2-devel >= 1:2.41.1
69Requires: gmp-devel >= 2.3.0
70Requires: mpfr-devel >= 2.3.0
71
72%description devel
73Genius header files.
74
75%description devel -l pl.UTF-8
76Pliki 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 ac_cv_lib_termcap_tgetent=no \
94 --disable-static \
95 --disable-update-mimedb
96
97%{__make} -j1
98
99%install
100rm -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}
110
111%clean
112rm -rf $RPM_BUILD_ROOT
113
114%post
115%update_desktop_database_post
116%update_mime_database
117%update_icon_cache hicolor
118
119%postun
120%update_icon_cache hicolor
121%update_desktop_database_postun
122%update_mime_database
123
124%files -f %{name}.lang
125%defattr(644,root,root,755)
126%doc AUTHORS ChangeLog NEWS README TODO
127%attr(755,root,root) %{_bindir}/genius
128%attr(755,root,root) %{_bindir}/gnome-genius
129%dir %{_libdir}/genius
130%attr(755,root,root) %{_libexecdir}/genius-readline-helper-fifo
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
148%{_datadir}/mime/packages/genius.xml
149%{_desktopdir}/gnome-genius.desktop
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
153
154%files devel
155%defattr(644,root,root,755)
156%{_includedir}/genius
This page took 0.082352 seconds and 5 git commands to generate.