- added desktop patch
[packages/genius.git] / genius.spec
index 1fc054315a4fc4e8ae7f97a62a048fda5c82367d..688a3e32b8662d91a4efd67e30055b4c28af97c7 100644 (file)
@@ -1,26 +1,33 @@
 Summary:       General tool for mathematics
 Summary(pl):   Rozbudowane narzêdzie matematyczne
 Name:          genius
-Version:       0.5.7.1
-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: 9e2954d8c3c1a9cd3cee39d25c74eb32
+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: gtksourceview-devel >= 0.3.0
-BuildRequires: intltool
+BuildRequires: intltool >= 0.21
 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
@@ -41,7 +48,7 @@ precyzji, liczby ca
 Summary:       genius header files
 Summary(pl):   Pliki nag³ówkowe genius
 Group:         X11/Development/Libraries
-Requires:      %{name} = %{version}
+Requires:      %{name} = %{version}-%{release}
 
 %description devel
 Genius header files.
@@ -53,6 +60,10 @@ Pliki nag
 %setup -q
 %patch0 -p1
 %patch1 -p1
+%patch2 -p1
+%patch3 -p1
+
+mv po/{no,nb}.po
 
 %build
 rm -f missing acinclude.m4
@@ -63,7 +74,10 @@ intltoolize --copy --force
 %{__autoconf}
 %{__automake}
 %configure \
-       --disable-static
+       --disable-static \
+       --enable-gtksourceview \
+       --enable-gnome
+
 %{__make}
 
 %install
@@ -72,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
@@ -88,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.035451 seconds and 4 git commands to generate.