X-Git-Url: https://git.pld-linux.org/?p=packages%2Fgenius.git;a=blobdiff_plain;f=genius.spec;h=8bdc3b2e7a4aecd6afca109a23c5c2d8ac4ea7e8;hp=12bba6cbc5bcd8492c094690394f23ab8a519254;hb=c9c95663b02113a4e025114ef9490429cf860d87;hpb=6b8ac4cd2bd050138192c56ac6ac1fa2485e81a7 diff --git a/genius.spec b/genius.spec index 12bba6c..8bdc3b2 100644 --- a/genius.spec +++ b/genius.spec @@ -1,72 +1,100 @@ -Summary: Genius advanced calculator +Summary: General tool for mathematics +Summary(pl): Rozbudowane narzêdzie matematyczne Name: genius -Version: 0.4.2 +Version: 0.5.7.1 Release: 1 -Copyright: GPL +License: GPL Group: X11/Applications -Source: http://ftp.5z.com/pub/genius/%{name}-%{version}.tar.gz -URL: http://www.5z.com/jirka/linux.html#genius -BuildPrereq: gmp-devel -BuildPrereq: gnome-libs-devel -BuildPrereq: gtk+-devel -BuildPrereq: imlib-devel -BuildPrereq: ncurses-devel -BuildPrereq: readline-devel -BuildPrereq: XFree86-devel -BuildRoot: /tmp/%{name}-%{version}-root +Source0: http://ftp.gnome.org/pub/gnome/sources/genius/0.5/%{name}-%{version}.tar.bz2 +# Source0-md5: 9e2954d8c3c1a9cd3cee39d25c74eb32 +Patch0: %{name}-am.patch +Patch1: %{name}-termcap.patch +Patch2: %{name}-intltool.patch +BuildRequires: autoconf +BuildRequires: automake +BuildRequires: bison +BuildRequires: flex +BuildRequires: gmp-devel +BuildRequires: gtksourceview-devel >= 0.3.0 +BuildRequires: intltool +BuildRequires: libglade2-devel >= 2.0.1 +BuildRequires: libgnomeui-devel >= 2.4.0 +BuildRequires: libtool +BuildRequires: ncurses-devel +BuildRequires: vte-devel >= 0.8.19 +BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) %description -Genius is an advanced calculator and a mathematical programming language. -It handles multiple precision floating point numbers, infinite precision -integers, complex numbers and matrixes. +Genius is a general tool for mathematics, including a mathematical +programming language and evaluator, an euclidian geometry tool, a +2D/3D function grapher and a console calculator. The console +calculator handles multiple precision floating point numbers, infinite +precision integers, complex numbers and matrixes. + +%description -l pl +Genius to narzêdzie do rozwi±zywania problemów matematycznych. +Zawiera ono matematyczny jêzyk programowania, narzêdzie do geometrii +euklidesowej, narzêdzie do generowania wykresów 2D/3D oraz konsolowy +kalkulator. Kalkulator obs³uguje liczby zmiennoprzecinkowe wysokiej +precyzji, liczby ca³kowite, zespolone oraz macierze. + +%package devel +Summary: genius header files +Summary(pl): Pliki nag³ówkowe genius +Group: X11/Development/Libraries +Requires: %{name} = %{version} + +%description devel +Genius header files. + +%description devel -l pl +Pliki nag³ówkowe genius. %prep %setup -q +%patch0 -p1 +%patch1 -p1 +%patch2 -p1 %build -CFLAGS="$RPM_OPT_FLAGS" LDFLAGS="-s" \ -./configure \ - --target=%{_target_platform} \ - --host=%{_host} \ - --prefix=/usr/X11R6 \ - --enable-gnome \ - --without-included-gettext -make - -gzip -9nf README AUTHORS NEWS TODO ChangeLog +rm -f missing acinclude.m4 +%{__libtoolize} +glib-gettextize --copy --force +intltoolize --copy --force +%{__aclocal} +%{__autoconf} +%{__automake} +%configure \ + --disable-static +%{__make} %install rm -rf $RPM_BUILD_ROOT -make prefix=$RPM_BUILD_ROOT/usr/X11R6 install +%{__make} install \ + DESTDIR=$RPM_BUILD_ROOT + +%find_lang %{name} --with-gnome --all-name + +%post -p /sbin/ldconfig +%postun -p /sbin/ldconfig %clean rm -rf $RPM_BUILD_ROOT -%files +%files -f %{name}.lang %defattr(644,root,root,755) -%doc *.gz -%attr(755,root,root) /usr/X11R6/bin/* -/usr/X11R6/share/genius -/usr/X11R6/share/apps/Utilities/* - -%lang(de) /usr/X11R6/share/locale/de/LC_MESSAGES/genius.mo -%lang(es) /usr/X11R6/share/locale/es/LC_MESSAGES/genius.mo -%lang(fr) /usr/X11R6/share/locale/fr/LC_MESSAGES/genius.mo -%lang(it) /usr/X11R6/share/locale/it/LC_MESSAGES/genius.mo -%lang(ko) /usr/X11R6/share/locale/ko/LC_MESSAGES/genius.mo -%lang(cs) /usr/X11R6/share/locale/cs/LC_MESSAGES/genius.mo -%lang(no) /usr/X11R6/share/locale/no/LC_MESSAGES/genius.mo -%lang(ga) /usr/X11R6/share/locale/ga/LC_MESSAGES/genius.mo -%lang(pt) /usr/X11R6/share/locale/pt/LC_MESSAGES/genius.mo +%doc AUTHORS NEWS README TODO +%attr(755,root,root) %{_bindir}/* +%attr(755,root,root) %dir %{_libdir}/genius +%attr(755,root,root) %{_libdir}/genius/libtestplugin.so.*.*.* +%attr(755,root,root) %{_libdir}/genius-readline-helper-fifo +%{_datadir}/genius +%{_desktopdir}/*.desktop -%changelog -* Fri May 7 1999 Tomasz K³oczko - [0.4.1-1] -- changed install prefix to /usr/X11R6, -- added BuildPrereq rules, -- added gzipping %doc, -- removed COPYING from %doc (copyright statment is in Copyright field), - -* Tue Apr 20 1999 Erik Walthinsen -- added spec.in file, changes to makefiles as approrpiate +%files devel +%defattr(644,root,root,755) +# Do we really need this la and so files? +%{_libdir}/genius/libtestplugin.so +%{_libdir}/genius/libtestplugin.la +%{_includedir}/genius