- added desktop patch
[packages/genius.git] / genius.spec
index c17c347c824e23fa7583db02578209ee4bd97bf4..688a3e32b8662d91a4efd67e30055b4c28af97c7 100644 (file)
@@ -1,15 +1,16 @@
 Summary:       General tool for mathematics
 Summary(pl):   Rozbudowane narz√™dzie matematyczne
 Name:          genius
-Version:       0.6.0
-Release:       1
+Version:       0.7.1
+Release:       3
 License:       GPL
 Group:         X11/Applications
-Source0:       http://ftp.gnome.org/pub/gnome/sources/%{name}/0.6/%{name}-%{version}.tar.bz2
-# Source0-md5: ca25680a37762182bd60d9196f3e0b66
+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
@@ -21,7 +22,12 @@ BuildRequires:       libglade2-devel >= 2.0.1
 BuildRequires: libgnomeui-devel >= 2.4.0
 BuildRequires: libtool
 BuildRequires: ncurses-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
@@ -55,6 +61,7 @@ Pliki nag
 %patch0 -p1
 %patch1 -p1
 %patch2 -p1
+%patch3 -p1
 
 mv po/{no,nb}.po
 
@@ -79,10 +86,19 @@ 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 -p /sbin/ldconfig
-%postun -p /sbin/ldconfig
+%post
+/sbin/ldconfig
+update-mime-database %{_datadir}/mime
+
+%postun
+/sbin/ldconfig
+update-mime-database %{_datadir}/mime
 
 %clean
 rm -rf $RPM_BUILD_ROOT
@@ -95,6 +111,10 @@ rm -rf $RPM_BUILD_ROOT
 %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
This page took 0.036278 seconds and 4 git commands to generate.