- Requires(post,postun): gtk-update-icon-cache
[packages/genius.git] / genius.spec
CommitLineData
35d8d7ca 1# TODO: where is "euclidian geometry tool"? Maybe drgeo-obsolotes is false
d4e81a96 2Summary: General tool for mathematics
975e6971 3Summary(pl.UTF-8): Rozbudowane narzędzie matematyczne
d4e81a96 4Name: genius
5548f969 5Version: 1.0.12
7f69a61f 6Release: 2
7c42f626 7License: GPL v3+
7b0314da 8Group: Applications/Math
a4a08fbd 9Source0: http://ftp.5z.com/pub/genius/%{name}-%{version}.tar.bz2
5548f969 10# Source0-md5: 12936d03d0d8f41ca747269d144632b2
19c2070a 11Patch0: %{name}-termcap.patch
12Patch1: %{name}-desktop.patch
945b9982 13URL: http://www.jirka.org/genius.html
d4e81a96 14BuildRequires: autoconf
15BuildRequires: automake
d4e81a96 16BuildRequires: bison
17BuildRequires: flex
d2425627 18BuildRequires: gettext-devel
91845d92 19BuildRequires: gmp-devel
245f6109 20BuildRequires: gnome-common >= 2.8.0-2
a4a08fbd
MB
21BuildRequires: gnome-vfs2-devel
22BuildRequires: gtk+2-devel >= 2:2.12.0
23BuildRequires: gtksourceview2-devel >= 2.0.2
675ee19c 24BuildRequires: intltool >= 0.21
62d2fabc 25BuildRequires: libtool
7b0314da 26BuildRequires: mpfr-devel >= 2.2.0
d4e81a96 27BuildRequires: ncurses-devel
88a2b19f 28BuildRequires: pkgconfig
88a2b19f 29BuildRequires: readline-devel
357b464c 30BuildRequires: rpmbuild(find_lang) >= 1.23
859cb5a6 31BuildRequires: rpmbuild(macros) >= 1.311
245f6109 32BuildRequires: scrollkeeper
8af1d0df 33BuildRequires: sed >= 4.0
91845d92 34BuildRequires: vte-devel >= 0.8.19
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
eb5affb4 40Obsoletes: drgenius
41Obsoletes: drgeo
5dcbbb81 42# sr@Latn vs. sr@latin
43Conflicts: glibc-misc < 6:2.7
d4e81a96 44BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
45
46%description
47Genius is a general tool for mathematics, including a mathematical
48programming language and evaluator, an euclidian geometry tool, a
492D/3D function grapher and a console calculator. The console
50calculator handles multiple precision floating point numbers, infinite
51precision integers, complex numbers and matrixes.
52
7be01d16 53%description -l pl.UTF-8
7b0314da 54Genius to narzędzie do rozwiązywania problemów matematycznych. Zawiera
55ono matematyczny język programowania, narzędzie do geometrii
7be01d16
JR
56euklidesowej, narzędzie do generowania wykresów 2D/3D oraz konsolowy
57kalkulator. Kalkulator obsługuje liczby zmiennoprzecinkowe wysokiej
58precyzji, liczby całkowite, zespolone oraz macierze.
d4e81a96 59
b360bb42 60%package devel
61Summary: genius header files
975e6971 62Summary(pl.UTF-8): Pliki nagłówkowe genius
b360bb42 63Group: X11/Development/Libraries
675ee19c 64Requires: %{name} = %{version}-%{release}
b360bb42 65
66%description devel
67Genius header files.
68
7be01d16
JR
69%description devel -l pl.UTF-8
70Pliki nagłówkowe genius.
b360bb42 71
d4e81a96 72%prep
73%setup -q
74%patch0 -p1
75%patch1 -p1
68886999 76
357b464c 77%{__sed} -i -e 's#sr\@Latn#sr\@latin#' configure.in
8af1d0df 78%{__sed} -i 's@AM_BINRELOC@#AM_BINRELOC@' configure.in
68886999 79mv po/sr\@{Latn,latin}.po
675ee19c 80
d4e81a96 81%build
357b464c 82rm -f acinclude.m4
68886999 83%{__gnome_doc_common}
245f6109 84cp xmldocs.make help
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
68886999 110%find_lang %{name} --with-gnome --with-omf --all-name
d4e81a96 111
53477fba
JB
112%clean
113rm -rf $RPM_BUILD_ROOT
114
2035ea19 115%post
53477fba 116%scrollkeeper_update_post
04f4c346 117%update_desktop_database_post
859cb5a6
MB
118%update_mime_database
119%update_icon_cache hicolor
2035ea19 120
121%postun
859cb5a6 122%update_icon_cache hicolor
53477fba 123%scrollkeeper_update_postun
04f4c346 124%update_desktop_database_postun
859cb5a6 125%update_mime_database
b360bb42 126
d4e81a96 127%files -f %{name}.lang
128%defattr(644,root,root,755)
19c2070a 129%doc AUTHORS ChangeLog NEWS README TODO
859cb5a6
MB
130%attr(755,root,root) %{_bindir}/genius
131%attr(755,root,root) %{_bindir}/gnome-genius
132%dir %{_libdir}/genius
b360bb42 133%attr(755,root,root) %{_libdir}/genius-readline-helper-fifo
d4e81a96 134%{_datadir}/genius
859cb5a6
MB
135%{_datadir}/mime/packages/genius.xml
136%{_desktopdir}/gnome-genius.desktop
4b7a2cae 137%{_iconsdir}/hicolor/*/apps/*.png
b360bb42 138
139%files devel
140%defattr(644,root,root,755)
b360bb42 141%{_includedir}/genius
This page took 0.066194 seconds and 4 git commands to generate.