]> git.pld-linux.org Git - packages/gnochm.git/blobdiff - gnochm.spec
- updated to 0.9.5
[packages/gnochm.git] / gnochm.spec
index 4f52a68734d8ad9e64261a3ba3d4c02d78430967..b92f0526ae0e7cbbecc80ad58cc24759002b74a4 100644 (file)
@@ -1,27 +1,34 @@
 Summary:       A CHM file viewer for Gnome
 Summary(pl):   Przegl±darka plików CHM dla Gnome
 Name:          gnochm
-Version:       0.9.2
+Version:       0.9.5
 Release:       1
-License:       GPL
+License:       GPL v2+
 Group:         Applications/Publishing
-Source0:       http://dl.sourceforge.net/%{name}/%{name}-%{version}.tar.gz
-# Source0-md5: f5476c21943ad669c62d860cd712487a
+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
 BuildRequires: autoconf
 BuildRequires: automake
 %pyrequires_eq python
 BuildRequires: chmlib-devel
+BuildRequires: libtool
 BuildRequires: python-devel >= 2.2.1
-BuildRequires: rpm-pythonprov
-Requires(post):        %{_bindir}/gconftool-2
-Requires(post):        scrollkeeper
-Requires(postun):      scrollkeeper
-Requires:      python-chm >= 0.8.0
+BuildRequires: rpmbuild(macros) >= 1.197
+BuildRequires: scrollkeeper
+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)
 
@@ -30,7 +37,7 @@ A CHM file viewer for Gnome. Features are:
 - Full text search
 - Bookmarks
 - Support for external ms-its links
-- Configurable support for http links
+- Configurable support for HTTP links
 - Internationalisation
 
 %description -l pl
@@ -38,11 +45,12 @@ Przegl
 - Pe³nym wyszukiwaniem tekstu
 - Zak³adkami
 - Obs³ug± zewnêtrznych powi±zañ ms-its
-- Konfigurowalnym wsparciem dla powi±zañ http
+- Konfigurowalnym wsparciem dla powi±zañ HTTP
 - Obs³ug± jêzyków narodowych
 
 %prep
 %setup -q
+%patch0 -p1
 
 %build
 %{__aclocal}
@@ -58,16 +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 
-%{_bindir}/scrollkeeper-update
-%gconf_schema_install
+%gconf_schema_install gnochm.schemas
+%scrollkeeper_update_post
+%update_desktop_database_post
+umask 022
+update-mime-database %{_datadir}/mime
+
+%preun
+%gconf_schema_uninstall gnochm.schemas
 
-%postun -p %{_bindir}/scrollkeeper-update
+%postun
+%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)
@@ -77,8 +99,7 @@ rm -rf $RPM_BUILD_ROOT
 %{_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.060411 seconds and 4 git commands to generate.