]> git.pld-linux.org Git - packages/xchm.git/blobdiff - xchm.spec
- up to 1.16
[packages/xchm.git] / xchm.spec
index e31bf062cc7e13990f8775080b510a0fae059f77..7254977486d802abe6fe58e0314858937f7c613c 100644 (file)
--- a/xchm.spec
+++ b/xchm.spec
@@ -1,19 +1,19 @@
 #
 # Conditional build:
-%bcond_with    xmlrpc                  # Enable XmlRpc functionality
-%bcond_without unicode                 # unicode version of wxGTK2
+%bcond_with    xmlrpc          # Enable XmlRpc functionality
+%bcond_without unicode         # unicode version of wxGTK2
 #
 Summary:       CHM viewer for UNIX
 Summary(pl.UTF-8):     Przeglądarka CHM dla Uniksów
 Name:          xchm
-Version:       1.12
+Version:       1.16
 Release:       1
 License:       GPL
-Group:         Applications/File
+Group:         X11/Applications
 Source0:       http://dl.sourceforge.net/xchm/%{name}-%{version}.tar.gz
-# Source0-md5: ec214b2ae0035fd404fbcfc266bc4a48
+# Source0-md5: bf3449c26ea2177edea056a75534e04b
 Source1:       %{name}.desktop
-Patch0:                %{name}-compile.patch
+Patch0:                %{name}-inttypes.patch
 URL:           http://xchm.sourceforge.net/
 BuildRequires: autoconf
 BuildRequires: automake
@@ -21,6 +21,7 @@ BuildRequires:        chmlib-devel
 BuildRequires: gettext-devel >= 0.14.3
 BuildRequires: wxGTK2-%{?with_unicode:unicode-}devel >= 2.6.0
 %{?with_xmlrpc:BuildRequires:  xmlrpc++-devel}
+Requires(post,postun): desktop-file-utils
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
@@ -64,12 +65,18 @@ mv -f $RPM_BUILD_ROOT%{_datadir}/locale/{pt_PT,pt}
 %clean
 rm -rf $RPM_BUILD_ROOT
 
+%post
+%update_desktop_database
+
+%postun
+%update_desktop_database_postun
+
 %files -f %{name}.lang
 %defattr(644,root,root,755)
 %doc AUTHORS ChangeLog README
 %if %{with xmlrpc}
 %doc README.xmlrpc
 %endif
-%attr(755,root,root) %{_bindir}/*
-%{_desktopdir}/*.desktop
+%attr(755,root,root) %{_bindir}/xchm
+%{_desktopdir}/xchm.desktop
 %{_pixmapsdir}/*.xpm
This page took 0.058207 seconds and 4 git commands to generate.