- updated to 1.0.20
[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
3def2caa 5Version: 1.0.20
e8040642 6Release: 1
7c42f626 7License: GPL v3+
7b0314da 8Group: Applications/Math
1a51019d 9Source0: http://ftp.5z.com/pub/genius/%{name}-%{version}.tar.xz
3def2caa 10# Source0-md5: 5837938aa68ad4f332adc7983be071f3
945b9982 11URL: http://www.jirka.org/genius.html
d4e81a96 12BuildRequires: autoconf
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
245f6109 19BuildRequires: gnome-common >= 2.8.0-2
872a00ea 20BuildRequires: gtk+2-devel >= 2:2.18.0
a4a08fbd 21BuildRequires: gtksourceview2-devel >= 2.0.2
675ee19c 22BuildRequires: intltool >= 0.21
62d2fabc 23BuildRequires: libtool
7b0314da 24BuildRequires: mpfr-devel >= 2.2.0
d4e81a96 25BuildRequires: ncurses-devel
88a2b19f 26BuildRequires: pkgconfig
88a2b19f 27BuildRequires: readline-devel
357b464c 28BuildRequires: rpmbuild(find_lang) >= 1.23
859cb5a6 29BuildRequires: rpmbuild(macros) >= 1.311
245f6109 30BuildRequires: scrollkeeper
8af1d0df 31BuildRequires: sed >= 4.0
1a51019d 32BuildRequires: tar >= 1:1.22
872a00ea 33BuildRequires: vte0-devel >= 0.17.1
1a51019d 34BuildRequires: xz >= 1:4.999.7
04f4c346 35Requires(post,postun): desktop-file-utils
7f69a61f 36Requires(post,postun): gtk-update-icon-cache
859cb5a6 37Requires(post,postun): hicolor-icon-theme
245f6109 38Requires(post,postun): scrollkeeper
2035ea19 39Requires(post,postun): shared-mime-info
3def2caa
JB
40Requires: glib2 >= 1:2.16.0
41Requires: gmp >= 2.3.0
42Requires: gtk+2 >= 2:2.18.0
43Requires: gtksourceview2 >= 2.0.2
44Requires: mpfr >= 2.2.0
45Requires: vte0 >= 0.17.1
eb5affb4 46Obsoletes: drgenius
47Obsoletes: drgeo
5dcbbb81 48# sr@Latn vs. sr@latin
49Conflicts: glibc-misc < 6:2.7
d4e81a96 50BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
51
52%description
53Genius is a general tool for mathematics, including a mathematical
54programming language and evaluator, an euclidian geometry tool, a
552D/3D function grapher and a console calculator. The console
56calculator handles multiple precision floating point numbers, infinite
57precision integers, complex numbers and matrixes.
58
7be01d16 59%description -l pl.UTF-8
7b0314da 60Genius to narzędzie do rozwiązywania problemów matematycznych. Zawiera
61ono matematyczny język programowania, narzędzie do geometrii
7be01d16
JR
62euklidesowej, narzędzie do generowania wykresów 2D/3D oraz konsolowy
63kalkulator. Kalkulator obsługuje liczby zmiennoprzecinkowe wysokiej
64precyzji, liczby całkowite, zespolone oraz macierze.
d4e81a96 65
b360bb42 66%package devel
67Summary: genius header files
975e6971 68Summary(pl.UTF-8): Pliki nagłówkowe genius
b360bb42 69Group: X11/Development/Libraries
675ee19c 70Requires: %{name} = %{version}-%{release}
3def2caa
JB
71Requires: glib2-devel >= 1:2.16.0
72Requires: gmp-devel >= 2.3.0
73Requires: mpfr-devel >= 2.2.0
b360bb42 74
75%description devel
76Genius header files.
77
7be01d16
JR
78%description devel -l pl.UTF-8
79Pliki nagłówkowe genius.
b360bb42 80
d4e81a96 81%prep
82%setup -q
68886999 83
357b464c 84%{__sed} -i -e 's#sr\@Latn#sr\@latin#' configure.in
8af1d0df 85%{__sed} -i 's@AM_BINRELOC@#AM_BINRELOC@' configure.in
3def2caa 86%{__mv} po/sr\@{Latn,latin}.po
675ee19c 87
d4e81a96 88%build
3def2caa
JB
89%{__rm} acinclude.m4
90#%{__gnome_doc_common}
91#cp xmldocs.make help
d4e81a96 92%{__libtoolize}
859cb5a6
MB
93%{__glib_gettextize}
94%{__intltoolize}
d4e81a96 95%{__aclocal}
96%{__autoconf}
19c2070a 97%{__autoheader}
d4e81a96 98%{__automake}
b360bb42 99%configure \
675ee19c 100 --disable-static \
101 --enable-gtksourceview \
04f4c346 102 --enable-gnome \
3def2caa 103 --disable-scrollkeeper \
04f4c346 104 --disable-update-mimedb
675ee19c 105
4b7a2cae 106%{__make} -j1
d4e81a96 107
108%install
109rm -rf $RPM_BUILD_ROOT
110
111%{__make} install \
112 DESTDIR=$RPM_BUILD_ROOT
56664f6f 113
859cb5a6 114# Obsoleted GNOME mime-info stuff
5548f969 115%{__rm} -r $RPM_BUILD_ROOT%{_datadir}/{application-registry,mime-info}
116%{__rm} $RPM_BUILD_ROOT%{_libdir}/genius/libtestplugin.{so,la}
04f4c346 117
68886999 118%find_lang %{name} --with-gnome --with-omf --all-name
d4e81a96 119
53477fba
JB
120%clean
121rm -rf $RPM_BUILD_ROOT
122
2035ea19 123%post
53477fba 124%scrollkeeper_update_post
04f4c346 125%update_desktop_database_post
859cb5a6
MB
126%update_mime_database
127%update_icon_cache hicolor
2035ea19 128
129%postun
859cb5a6 130%update_icon_cache hicolor
53477fba 131%scrollkeeper_update_postun
04f4c346 132%update_desktop_database_postun
859cb5a6 133%update_mime_database
b360bb42 134
d4e81a96 135%files -f %{name}.lang
136%defattr(644,root,root,755)
19c2070a 137%doc AUTHORS ChangeLog NEWS README TODO
859cb5a6
MB
138%attr(755,root,root) %{_bindir}/genius
139%attr(755,root,root) %{_bindir}/gnome-genius
140%dir %{_libdir}/genius
b360bb42 141%attr(755,root,root) %{_libdir}/genius-readline-helper-fifo
d4e81a96 142%{_datadir}/genius
859cb5a6
MB
143%{_datadir}/mime/packages/genius.xml
144%{_desktopdir}/gnome-genius.desktop
3def2caa
JB
145%{_iconsdir}/hicolor/*x*/apps/genius-stock-plot.png
146%{_iconsdir}/hicolor/*x*/apps/gnome-genius.png
147%{_iconsdir}/hicolor/scalable/apps/gnome-genius.svg
b360bb42 148
149%files devel
150%defattr(644,root,root,755)
b360bb42 151%{_includedir}/genius
This page took 0.087277 seconds and 4 git commands to generate.