]> git.pld-linux.org Git - packages/gnochm.git/blobdiff - gnochm.spec
- updated to 0.9.5
[packages/gnochm.git] / gnochm.spec
index 0b96ac567ee7b7cd1a75cf39c00f37c56ef9ce69..b92f0526ae0e7cbbecc80ad58cc24759002b74a4 100644 (file)
@@ -1,12 +1,12 @@
 Summary:       A CHM file viewer for Gnome
 Summary(pl):   Przegl±darka plików CHM dla Gnome
 Name:          gnochm
-Version:       0.9.3
-Release:       4
-License:       GPL
+Version:       0.9.5
+Release:       1
+License:       GPL v2+
 Group:         Applications/Publishing
-Source0:       http://dl.sourceforge.net/%{name}/%{name}-%{version}.tar.gz
-# Source0-md5: 8b5b8c16337e93366dda6667c11821b2
+Source0:       http://dl.sourceforge.net/gnochm/%{name}-%{version}.tar.gz
+# Source0-md5: 3acf586f7dbaa971f57f6f93f24eb131
 Patch0:                %{name}-desktop.patch
 URL:           http://gnochm.sourceforge.net/
 BuildRequires: GConf2-devel
@@ -16,16 +16,19 @@ BuildRequires:      automake
 BuildRequires: chmlib-devel
 BuildRequires: libtool
 BuildRequires: python-devel >= 2.2.1
-BuildRequires: rpm-pythonprov
+BuildRequires: rpmbuild(macros) >= 1.197
 BuildRequires: scrollkeeper
-Requires(post):        %{_bindir}/gconftool-2
-Requires(post):        scrollkeeper
-Requires(postun):      scrollkeeper
-Requires:      python-chm >= 0.8.0
+Requires(post,preun):  GConf2
+Requires(post,postun): desktop-file-utils
+Requires(post,postun): scrollkeeper
+Requires(post,postun): shared-mime-info
+Requires:      python-chm >= 0.8.1
 Requires:      python-gnome
 Requires:      python-gnome-gconf
-Requires:      python-gnome-gtkhtml >= 2.0
+Requires:      python-gnome-extras-gtkhtml >= 2.10.0
 Requires:      python-gnome-ui
+Requires:      python-gnome-vfs >= 2.10.0
+Requires:      python-pygtk-glade
 BuildArch:     noarch
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
@@ -63,23 +66,30 @@ rm -rf $RPM_BUILD_ROOT
        GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL=1 \
        SHAREDMIME_TOOL=no
 
+rm -r $RPM_BUILD_ROOT%{_datadir}/{application-registry,mime-info}
+
 %find_lang %{name} --with-gnome
 
 %clean
 rm -rf $RPM_BUILD_ROOT
 
 %post 
+%gconf_schema_install gnochm.schemas
+%scrollkeeper_update_post
+%update_desktop_database_post
 umask 022
-%{_bindir}/scrollkeeper-update
-%gconf_schema_install
 update-mime-database %{_datadir}/mime
-[ ! -x /usr/bin/update-desktop-database ] || /usr/bin/update-desktop-database >/dev/null 2>&1 ||:
+
+%preun
+%gconf_schema_uninstall gnochm.schemas
 
 %postun
-umask 022
-%{_bindir}/scrollkeeper-update
-update-mime-database %{_datadir}/mime
-[ ! -x /usr/bin/update-desktop-database ] || /usr/bin/update-desktop-database >/dev/null 2>&1 ||:
+%scrollkeeper_update_postun
+%update_desktop_database_postun
+if [ $1 = 0 ]; then
+       umask 022
+       update-mime-database %{_datadir}/mime
+fi
 
 %files -f %{name}.lang
 %defattr(644,root,root,755)
@@ -89,8 +99,7 @@ update-mime-database %{_datadir}/mime
 %{_datadir}/omf/gnochm
 %{_pixmapsdir}/*
 %{_datadir}/applications/gnochm.desktop
-%{_datadir}/mime-info/gnochm.*
 %{_datadir}/mime/packages/gnochm.*
-%{_datadir}/application-registry/gnochm.*
-%{_mandir}/man?/*
+%{_mandir}/man1/*
+%lang(it) %{_mandir}/it/man1/*
 %{_sysconfdir}/gconf/schemas/gnochm.schemas
This page took 0.051244 seconds and 4 git commands to generate.