- updated URLs, added pango dependency (for internal vte), avoid libtermcap detection
[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
837e7b0a 5Version: 1.0.24
a31d0f6a 6Release: 3
7c42f626 7License: GPL v3+
7b0314da 8Group: Applications/Math
2216b06c 9Source0: http://ftp.gnome.org/pub/GNOME/sources/genius/1.0/%{name}-%{version}.tar.xz
837e7b0a 10# Source0-md5: 471a0b3f019b6fcaf56ae0f4e2580917
2216b06c 11URL: https://www.jirka.org/genius.html
cc9177e9 12BuildRequires: autoconf >= 2.50
d4e81a96 13BuildRequires: automake
d4e81a96 14BuildRequires: bison
15BuildRequires: flex
b758708b 16BuildRequires: gettext-tools
837e7b0a 17BuildRequires: glib2-devel >= 1:2.26.0
3def2caa 18BuildRequires: gmp-devel >= 2.3.0
837e7b0a 19BuildRequires: gtk+2-devel >= 2:2.20.0
a4a08fbd 20BuildRequires: gtksourceview2-devel >= 2.0.2
675ee19c 21BuildRequires: intltool >= 0.21
62d2fabc 22BuildRequires: libtool
3d713d97 23BuildRequires: mpfr-devel >= 2.3.0
d4e81a96 24BuildRequires: ncurses-devel
2216b06c 25BuildRequires: pango-devel >= 1:1.22.0
88a2b19f 26BuildRequires: pkgconfig
88a2b19f 27BuildRequires: readline-devel
357b464c 28BuildRequires: rpmbuild(find_lang) >= 1.23
859cb5a6 29BuildRequires: rpmbuild(macros) >= 1.311
8af1d0df 30BuildRequires: sed >= 4.0
1a51019d 31BuildRequires: tar >= 1:1.22
1a51019d 32BuildRequires: xz >= 1:4.999.7
04f4c346 33Requires(post,postun): desktop-file-utils
7f69a61f 34Requires(post,postun): gtk-update-icon-cache
859cb5a6 35Requires(post,postun): hicolor-icon-theme
2035ea19 36Requires(post,postun): shared-mime-info
837e7b0a 37Requires: glib2 >= 1:2.26.0
3def2caa 38Requires: gmp >= 2.3.0
837e7b0a 39Requires: gtk+2 >= 2:2.20.0
3def2caa 40Requires: gtksourceview2 >= 2.0.2
3d713d97 41Requires: mpfr >= 2.3.0
2216b06c 42Requires: pango >= 1:1.22.0
eb5affb4 43Obsoletes: drgenius
44Obsoletes: drgeo
d4e81a96 45BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
46
47%description
48Genius is a general tool for mathematics, including a mathematical
49programming language and evaluator, an euclidian geometry tool, a
502D/3D function grapher and a console calculator. The console
51calculator handles multiple precision floating point numbers, infinite
52precision integers, complex numbers and matrixes.
53
7be01d16 54%description -l pl.UTF-8
7b0314da 55Genius to narzędzie do rozwiązywania problemów matematycznych. Zawiera
56ono matematyczny język programowania, narzędzie do geometrii
7be01d16
JR
57euklidesowej, narzędzie do generowania wykresów 2D/3D oraz konsolowy
58kalkulator. Kalkulator obsługuje liczby zmiennoprzecinkowe wysokiej
59precyzji, liczby całkowite, zespolone oraz macierze.
d4e81a96 60
b360bb42 61%package devel
62Summary: genius header files
975e6971 63Summary(pl.UTF-8): Pliki nagłówkowe genius
b360bb42 64Group: X11/Development/Libraries
675ee19c 65Requires: %{name} = %{version}-%{release}
837e7b0a 66Requires: glib2-devel >= 1:2.26.0
3def2caa 67Requires: gmp-devel >= 2.3.0
3d713d97 68Requires: mpfr-devel >= 2.3.0
b360bb42 69
70%description devel
71Genius header files.
72
7be01d16
JR
73%description devel -l pl.UTF-8
74Pliki nagłówkowe genius.
b360bb42 75
d4e81a96 76%prep
77%setup -q
68886999 78
689fa32b 79%{__sed} -i 's@AM_BINRELOC@#AM_BINRELOC@' configure.ac
675ee19c 80
d4e81a96 81%build
3def2caa 82%{__rm} acinclude.m4
d4e81a96 83%{__libtoolize}
859cb5a6
MB
84%{__glib_gettextize}
85%{__intltoolize}
d4e81a96 86%{__aclocal}
87%{__autoconf}
19c2070a 88%{__autoheader}
d4e81a96 89%{__automake}
b360bb42 90%configure \
2216b06c 91 ac_cv_lib_termcap_tgetent=no \
675ee19c 92 --disable-static \
93 --enable-gtksourceview \
04f4c346
MB
94 --enable-gnome \
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
837e7b0a 137%{_datadir}/genius/xterm
47327c03
JB
138%dir %{_datadir}/genius/help
139%{_datadir}/genius/help/C
140%lang(cs) %{_datadir}/genius/help/cs
141%lang(de) %{_datadir}/genius/help/de
142%lang(el) %{_datadir}/genius/help/el
143%lang(es) %{_datadir}/genius/help/es
144%lang(fr) %{_datadir}/genius/help/fr
145%lang(pt_BR) %{_datadir}/genius/help/pt_BR
146%lang(ru) %{_datadir}/genius/help/ru
147%lang(sv) %{_datadir}/genius/help/sv
148%{_datadir}/genius/plugins
859cb5a6
MB
149%{_datadir}/mime/packages/genius.xml
150%{_desktopdir}/gnome-genius.desktop
3def2caa
JB
151%{_iconsdir}/hicolor/*x*/apps/genius-stock-plot.png
152%{_iconsdir}/hicolor/*x*/apps/gnome-genius.png
153%{_iconsdir}/hicolor/scalable/apps/gnome-genius.svg
b360bb42 154
155%files devel
156%defattr(644,root,root,755)
b360bb42 157%{_includedir}/genius
This page took 0.23254 seconds and 5 git commands to generate.