]> git.pld-linux.org Git - packages/genius.git/blame - genius.spec
- change 8 spaces to one \t to avoid errors
[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
fb2d5c98 5Version: 1.0.11
6Release: 1
7c42f626 7License: GPL v3+
7b0314da 8Group: Applications/Math
a4a08fbd 9Source0: http://ftp.5z.com/pub/genius/%{name}-%{version}.tar.bz2
fb2d5c98 10# Source0-md5: 7f4fdc29237c9f68a7b2b139b7788968
19c2070a 11Patch0: %{name}-termcap.patch
12Patch1: %{name}-desktop.patch
fb2d5c98 13Patch2: %{name}-separator.patch
945b9982 14URL: http://www.jirka.org/genius.html
d4e81a96 15BuildRequires: autoconf
16BuildRequires: automake
d4e81a96 17BuildRequires: bison
18BuildRequires: flex
d2425627 19BuildRequires: gettext-devel
91845d92 20BuildRequires: gmp-devel
245f6109 21BuildRequires: gnome-common >= 2.8.0-2
a4a08fbd
MB
22BuildRequires: gnome-vfs2-devel
23BuildRequires: gtk+2-devel >= 2:2.12.0
24BuildRequires: gtksourceview2-devel >= 2.0.2
675ee19c 25BuildRequires: intltool >= 0.21
62d2fabc 26BuildRequires: libtool
7b0314da 27BuildRequires: mpfr-devel >= 2.2.0
d4e81a96 28BuildRequires: ncurses-devel
88a2b19f 29BuildRequires: pkgconfig
88a2b19f 30BuildRequires: readline-devel
357b464c 31BuildRequires: rpmbuild(find_lang) >= 1.23
859cb5a6 32BuildRequires: rpmbuild(macros) >= 1.311
245f6109 33BuildRequires: scrollkeeper
8af1d0df 34BuildRequires: sed >= 4.0
91845d92 35BuildRequires: vte-devel >= 0.8.19
04f4c346 36Requires(post,postun): desktop-file-utils
859cb5a6
MB
37Requires(post,postun): gtk+2
38Requires(post,postun): hicolor-icon-theme
245f6109 39Requires(post,postun): scrollkeeper
2035ea19 40Requires(post,postun): shared-mime-info
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}
b360bb42 66
67%description devel
68Genius header files.
69
7be01d16
JR
70%description devel -l pl.UTF-8
71Pliki nagłówkowe genius.
b360bb42 72
d4e81a96 73%prep
74%setup -q
75%patch0 -p1
76%patch1 -p1
fb2d5c98 77%patch2 -p1
68886999 78
357b464c 79%{__sed} -i -e 's#sr\@Latn#sr\@latin#' configure.in
8af1d0df 80%{__sed} -i 's@AM_BINRELOC@#AM_BINRELOC@' configure.in
68886999 81mv po/sr\@{Latn,latin}.po
675ee19c 82
d4e81a96 83%build
357b464c 84rm -f acinclude.m4
68886999 85%{__gnome_doc_common}
245f6109 86cp xmldocs.make help
d4e81a96 87%{__libtoolize}
859cb5a6
MB
88%{__glib_gettextize}
89%{__intltoolize}
d4e81a96 90%{__aclocal}
91%{__autoconf}
19c2070a 92%{__autoheader}
d4e81a96 93%{__automake}
b360bb42 94%configure \
675ee19c 95 --disable-static \
96 --enable-gtksourceview \
04f4c346
MB
97 --enable-gnome \
98 --disable-update-mimedb
675ee19c 99
4b7a2cae 100%{__make} -j1
d4e81a96 101
102%install
103rm -rf $RPM_BUILD_ROOT
104
105%{__make} install \
106 DESTDIR=$RPM_BUILD_ROOT
56664f6f 107
859cb5a6
MB
108# Obsoleted GNOME mime-info stuff
109rm -rf $RPM_BUILD_ROOT%{_datadir}/{application-registry,mime-info}
04f4c346
MB
110rm -f $RPM_BUILD_ROOT%{_libdir}/genius/libtestplugin.{so,la}
111
68886999 112%find_lang %{name} --with-gnome --with-omf --all-name
d4e81a96 113
53477fba
JB
114%clean
115rm -rf $RPM_BUILD_ROOT
116
2035ea19 117%post
53477fba 118%scrollkeeper_update_post
04f4c346 119%update_desktop_database_post
859cb5a6
MB
120%update_mime_database
121%update_icon_cache hicolor
2035ea19 122
123%postun
859cb5a6 124%update_icon_cache hicolor
53477fba 125%scrollkeeper_update_postun
04f4c346 126%update_desktop_database_postun
859cb5a6 127%update_mime_database
b360bb42 128
d4e81a96 129%files -f %{name}.lang
130%defattr(644,root,root,755)
19c2070a 131%doc AUTHORS ChangeLog NEWS README TODO
859cb5a6
MB
132%attr(755,root,root) %{_bindir}/genius
133%attr(755,root,root) %{_bindir}/gnome-genius
134%dir %{_libdir}/genius
b360bb42 135%attr(755,root,root) %{_libdir}/genius-readline-helper-fifo
d4e81a96 136%{_datadir}/genius
859cb5a6
MB
137%{_datadir}/mime/packages/genius.xml
138%{_desktopdir}/gnome-genius.desktop
4b7a2cae 139%{_iconsdir}/hicolor/*/apps/*.png
b360bb42 140
141%files devel
142%defattr(644,root,root,755)
b360bb42 143%{_includedir}/genius
This page took 0.055029 seconds and 4 git commands to generate.