- updated to 1.0.23
[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
47327c03 5Version: 1.0.23
689fa32b 6Release: 1
7c42f626 7License: GPL v3+
7b0314da 8Group: Applications/Math
689fa32b 9Source0: ftp://ftp.gnome.org/pub/gnome/sources/genius/1.0/%{name}-%{version}.tar.xz
47327c03 10# Source0-md5: 7fa8a2850b3245acd1b1d6514f2eb9e1
945b9982 11URL: http://www.jirka.org/genius.html
cc9177e9 12BuildRequires: autoconf >= 2.50
d4e81a96 13BuildRequires: automake
d4e81a96 14BuildRequires: bison
15BuildRequires: flex
b758708b 16BuildRequires: gettext-tools
3def2caa
JB
17BuildRequires: glib2-devel >= 1:2.16.0
18BuildRequires: gmp-devel >= 2.3.0
872a00ea 19BuildRequires: gtk+2-devel >= 2:2.18.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
88a2b19f 25BuildRequires: pkgconfig
88a2b19f 26BuildRequires: readline-devel
357b464c 27BuildRequires: rpmbuild(find_lang) >= 1.23
859cb5a6 28BuildRequires: rpmbuild(macros) >= 1.311
8af1d0df 29BuildRequires: sed >= 4.0
1a51019d 30BuildRequires: tar >= 1:1.22
689fa32b 31BuildRequires: vte0-devel >= 0.26.0
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
3def2caa
JB
37Requires: glib2 >= 1:2.16.0
38Requires: gmp >= 2.3.0
39Requires: gtk+2 >= 2:2.18.0
40Requires: gtksourceview2 >= 2.0.2
3d713d97 41Requires: mpfr >= 2.3.0
689fa32b 42Requires: vte0 >= 0.26.0
eb5affb4 43Obsoletes: drgenius
44Obsoletes: drgeo
5dcbbb81 45# sr@Latn vs. sr@latin
46Conflicts: glibc-misc < 6:2.7
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}
3def2caa
JB
68Requires: glib2-devel >= 1:2.16.0
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 \
675ee19c 93 --disable-static \
94 --enable-gtksourceview \
04f4c346
MB
95 --enable-gnome \
96 --disable-update-mimedb
675ee19c 97
4b7a2cae 98%{__make} -j1
d4e81a96 99
100%install
101rm -rf $RPM_BUILD_ROOT
102
103%{__make} install \
104 DESTDIR=$RPM_BUILD_ROOT
56664f6f 105
859cb5a6 106# Obsoleted GNOME mime-info stuff
5548f969 107%{__rm} -r $RPM_BUILD_ROOT%{_datadir}/{application-registry,mime-info}
108%{__rm} $RPM_BUILD_ROOT%{_libdir}/genius/libtestplugin.{so,la}
04f4c346 109
47327c03 110%find_lang %{name}
d4e81a96 111
53477fba
JB
112%clean
113rm -rf $RPM_BUILD_ROOT
114
2035ea19 115%post
04f4c346 116%update_desktop_database_post
859cb5a6
MB
117%update_mime_database
118%update_icon_cache hicolor
2035ea19 119
120%postun
859cb5a6 121%update_icon_cache hicolor
04f4c346 122%update_desktop_database_postun
859cb5a6 123%update_mime_database
b360bb42 124
d4e81a96 125%files -f %{name}.lang
126%defattr(644,root,root,755)
19c2070a 127%doc AUTHORS ChangeLog NEWS README TODO
859cb5a6
MB
128%attr(755,root,root) %{_bindir}/genius
129%attr(755,root,root) %{_bindir}/gnome-genius
130%dir %{_libdir}/genius
b360bb42 131%attr(755,root,root) %{_libdir}/genius-readline-helper-fifo
47327c03
JB
132%dir %{_datadir}/genius
133%{_datadir}/genius/examples
134%{_datadir}/genius/gel
135%{_datadir}/genius/genius-graph.png
136%{_datadir}/genius/genius.txt
137%{_datadir}/genius/gtksourceview
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.485009 seconds and 4 git commands to generate.