- release 2 (by relup.sh)
[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
fee8c30a 6Release: 2
7c42f626 7License: GPL v3+
7b0314da 8Group: Applications/Math
689fa32b 9Source0: ftp://ftp.gnome.org/pub/gnome/sources/genius/1.0/%{name}-%{version}.tar.xz
837e7b0a 10# Source0-md5: 471a0b3f019b6fcaf56ae0f4e2580917
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
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
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
1a51019d 31BuildRequires: xz >= 1:4.999.7
04f4c346 32Requires(post,postun): desktop-file-utils
7f69a61f 33Requires(post,postun): gtk-update-icon-cache
859cb5a6 34Requires(post,postun): hicolor-icon-theme
2035ea19 35Requires(post,postun): shared-mime-info
837e7b0a 36Requires: glib2 >= 1:2.26.0
3def2caa 37Requires: gmp >= 2.3.0
837e7b0a 38Requires: gtk+2 >= 2:2.20.0
3def2caa 39Requires: gtksourceview2 >= 2.0.2
3d713d97 40Requires: mpfr >= 2.3.0
eb5affb4 41Obsoletes: drgenius
42Obsoletes: drgeo
5dcbbb81 43# sr@Latn vs. sr@latin
44Conflicts: glibc-misc < 6:2.7
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 \
675ee19c 91 --disable-static \
92 --enable-gtksourceview \
04f4c346
MB
93 --enable-gnome \
94 --disable-update-mimedb
675ee19c 95
4b7a2cae 96%{__make} -j1
d4e81a96 97
98%install
99rm -rf $RPM_BUILD_ROOT
100
101%{__make} install \
102 DESTDIR=$RPM_BUILD_ROOT
56664f6f 103
859cb5a6 104# Obsoleted GNOME mime-info stuff
5548f969 105%{__rm} -r $RPM_BUILD_ROOT%{_datadir}/{application-registry,mime-info}
106%{__rm} $RPM_BUILD_ROOT%{_libdir}/genius/libtestplugin.{so,la}
04f4c346 107
47327c03 108%find_lang %{name}
d4e81a96 109
53477fba
JB
110%clean
111rm -rf $RPM_BUILD_ROOT
112
2035ea19 113%post
04f4c346 114%update_desktop_database_post
859cb5a6
MB
115%update_mime_database
116%update_icon_cache hicolor
2035ea19 117
118%postun
859cb5a6 119%update_icon_cache hicolor
04f4c346 120%update_desktop_database_postun
859cb5a6 121%update_mime_database
b360bb42 122
d4e81a96 123%files -f %{name}.lang
124%defattr(644,root,root,755)
19c2070a 125%doc AUTHORS ChangeLog NEWS README TODO
859cb5a6
MB
126%attr(755,root,root) %{_bindir}/genius
127%attr(755,root,root) %{_bindir}/gnome-genius
128%dir %{_libdir}/genius
837e7b0a 129%attr(755,root,root) %{_libexecdir}/genius-readline-helper-fifo
47327c03
JB
130%dir %{_datadir}/genius
131%{_datadir}/genius/examples
132%{_datadir}/genius/gel
133%{_datadir}/genius/genius-graph.png
134%{_datadir}/genius/genius.txt
135%{_datadir}/genius/gtksourceview
837e7b0a 136%{_datadir}/genius/xterm
47327c03
JB
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.458614 seconds and 4 git commands to generate.