- added desktop patch
[packages/genius.git] / genius.spec
index d6502fda936f560d854e2ed8bd626f51d1582d9a..688a3e32b8662d91a4efd67e30055b4c28af97c7 100644 (file)
@@ -1,24 +1,33 @@
 Summary:       General tool for mathematics
 Summary(pl):   Rozbudowane narzêdzie matematyczne
 Name:          genius
-Version:       0.5.3
-Release:       1
+Version:       0.7.1
+Release:       3
 License:       GPL
 Group:         X11/Applications
-Source0:       http://ftp.gnome.org/pub/gnome/sources/genius/0.5/%{name}-%{version}.tar.bz2
-# Source0-md5: a3abcebbbe124ae680475bae84c4c590
+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: intltool
-BuildRequires: libtool
 BuildRequires: bison
 BuildRequires: flex
-BuildRequires: gettext-devel
-BuildRequires: libgnomeui-devel
+BuildRequires: gmp-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: vte-devel
+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
@@ -35,10 +44,26 @@ euklidesowej, narz
 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
 rm -f missing acinclude.m4
@@ -48,7 +73,11 @@ intltoolize --copy --force
 %{__aclocal}
 %{__autoconf}
 %{__automake}
-%configure
+%configure \
+       --disable-static \
+       --enable-gtksourceview \
+       --enable-gnome
+
 %{__make}
 
 %install
@@ -57,8 +86,20 @@ rm -rf $RPM_BUILD_ROOT
 %{__make} install \
        DESTDIR=$RPM_BUILD_ROOT
 
+
+# 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
 
@@ -67,8 +108,18 @@ rm -rf $RPM_BUILD_ROOT
 %doc AUTHORS NEWS README TODO
 %attr(755,root,root) %{_bindir}/*
 %attr(755,root,root) %dir %{_libdir}/genius
-%attr(755,root,root) %{_libdir}/genius/*
-%{_includedir}/genius
-%{_libdir}/genius-readline-helper-fifo
+%attr(755,root,root) %{_libdir}/genius/libtestplugin.so.*.*.*
+%attr(755,root,root) %{_libdir}/genius-readline-helper-fifo
 %{_datadir}/genius
-%{_datadir}/applications/*.desktop
+%{_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.035164 seconds and 4 git commands to generate.