- added desktop patch
[packages/genius.git] / genius.spec
index e5dd01bdc236c89ecd5b3db043eea5f79940f0d2..688a3e32b8662d91a4efd67e30055b4c28af97c7 100644 (file)
-Summary:       Genius advanced calculator
-Summary(pl):   Zaawansowany kalkulator Genius
+Summary:       General tool for mathematics
+Summary(pl):   Rozbudowane narzêdzie matematyczne
 Name:          genius
-Version:       0.4.2
-Release:       2
-Copyright:     GPL
+Version:       0.7.1
+Release:       3
+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
+Source0:       http://ftp.gnome.org/pub/gnome/sources/%{name}/0.7/%{name}-%{version}.tar.bz2
+# Source0-md5: f6595351975739225727c0f8e0e8fb72
+Patch0:                %{name}-am.patch
+Patch1:                %{name}-termcap.patch
+Patch2:                %{name}-locale-names.patch
+Patch3:                %{name}-desktop.patch
+BuildRequires: autoconf
+BuildRequires: automake
+BuildRequires: bison
+BuildRequires: flex
 BuildRequires: gmp-devel
-BuildRequires: gnome-libs-devel
-BuildRequires: gtk+-devel
-BuildRequires: imlib-devel
+BuildRequires: gtksourceview-devel >= 0.3.0
+BuildRequires: intltool >= 0.21
+BuildRequires: libglade2-devel >= 2.0.1
+BuildRequires: libgnomeui-devel >= 2.4.0
+BuildRequires: libtool
 BuildRequires: ncurses-devel
-BuildRequires: readline-devel
-BuildRequires: XFree86-devel
-BuildRoot:     /tmp/%{name}-%{version}-root
-
-%define                _prefix /usr/X11R6
-%define                _mandir /usr/X11R6
+BuildRequires: popt-devel
+BuildRequires: vte-devel >= 0.8.19
+Requires(post,postun): /sbin/ldconfig
+Requires(post,postun): shared-mime-info
+Obsoletes:     drgenius
+Obsoletes:     drgeo
+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 jest zaawansowanym kalkulatorem i jêzykiem programowania matematycznego.
+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}-%{release}
+
+%description devel
+Genius header files.
+
+%description devel -l pl
+Pliki nag³ówkowe genius.
 
 %prep
 %setup -q
+%patch0 -p1
+%patch1 -p1
+%patch2 -p1
+%patch3 -p1
+
+mv po/{no,nb}.po
 
 %build
-CFLAGS="$RPM_OPT_FLAGS" LDFLAGS="-s" \
+rm -f missing acinclude.m4
+%{__libtoolize}
+glib-gettextize --copy --force
+intltoolize --copy --force
+%{__aclocal}
+%{__autoconf}
+%{__automake}
 %configure \
-       --enable-gnome \
-       --without-included-gettext
-make
+       --disable-static \
+       --enable-gtksourceview \
+       --enable-gnome
 
-gzip -9nf README AUTHORS NEWS TODO ChangeLog
+%{__make}
 
 %install
 rm -rf $RPM_BUILD_ROOT
 
-make install prefix=$RPM_BUILD_ROOT/usr/X11R6 \
-       bindir=$RPM_BUILD_ROOT/%{_bindir} \
-       datadir=$RPM_BUILD_ROOT/%{_datadir}
+%{__make} install \
+       DESTDIR=$RPM_BUILD_ROOT
+
 
-%find_lang %{name}
+# This files are autogenerated
+rm -f $RPM_BUILD_ROOT%{_datadir}/mime/{XMLnamespaces,globs,magic}
+
+%find_lang %{name} --with-gnome --all-name
+
+%post
+/sbin/ldconfig
+update-mime-database %{_datadir}/mime
+
+%postun
+/sbin/ldconfig
+update-mime-database %{_datadir}/mime
 
 %clean
 rm -rf $RPM_BUILD_ROOT
 
 %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/*
+%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
+%{_datadir}/application-registry/*
+%{_datadir}/mime-info/*
+%{_datadir}/mime/packages/*
+%{_datadir}/mime/text/*
+%{_desktopdir}/*.desktop
+
+%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
This page took 0.061896 seconds and 4 git commands to generate.