File xchm.spec of Package xchm
#
# spec file for package xchm (Version 1.17)
#
# Copyright (c) 2008 SOAD Project, Russia.
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
#
# Please submit bug fixes or comments to Maintainer: sda00@himki.net
#
# norootforbuild
%define docversion 1.10
Name: xchm
Version: 1.17
Release: SOAD.1.2
Summary: CHM viewer for UNIX
License: GPL
Group: Productivity/Publishing/Other
URL: http://xchm.sourceforge.net
Source: %{name}-%{version}.tar.gz
#Source1: %{name}-%{docversion}-doc.tar.bz2
#Source2: %{name}-16.png
#Source3: %{name}-32.png
Patch: %{name}-48.png
Patch1: %{name}.desktop
BuildRequires: chmlib-devel
BuildRequires: libtiff
BuildRequires: wxGTK-devel
#BuildRequires: wxWidgets-devel
BuildRequires: ghostscript update-desktop-files
BuildRequires: gcc-c++
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
xCHM is a cross-platform GUI front-end to chmlib, with borrowed bits from
Pabs' chmdeco project.
xCHM can show the content tree if one is available, print pages, change font
face and size, remember bookmarks, display a searchable index, and search for
words in the current page and the whole book.
%prep
%setup
%build
%configure --with-wx-config=%{_bindir}/wx-config
make
%install
rm -rf %{buildroot}
%makeinstall
mkdir -p %{buildroot}%{_datadir}/icons/hicolor/{16x16,32x32,48x48}/apps
#install -m 644 %{SOURCE2} %{buildroot}%{_datadir}/icons/hicolor/16x16/apps/%{name}.png
#install -m 644 %{SOURCE3} %{buildroot}%{_datadir}/icons/hicolor/32x32/apps/%{name}.png
install -m 644 $RPM_SOURCE_DIR/%{name}-48.png %{buildroot}%{_datadir}/icons/hicolor/48x48/apps/%{name}.png
mkdir -p %{buildroot}%{_datadir}/applications
install -m 644 $RPM_SOURCE_DIR/%{name}.desktop %{buildroot}%{_datadir}/applications/%{name}.desktop
# Docs are skipped
rm -rf %{buildroot}/%{_datadir}/doc
%suse_update_desktop_file xchm Office Viewer
%find_lang %{name}
%clean
rm -rf %{buildroot}
#%post
#strip -s %{_bindir}/xchm
%files -f %{name}.lang
%defattr(-,root,root)
%doc AUTHORS ChangeLog README
#%doc %{name}-%{docversion}-doc/html
%{_bindir}/%{name}
#%{_datadir}/icons/hicolor/16x16/apps/%{name}.png
#%{_datadir}/icons/hicolor/32x32/apps/%{name}.png
%{_datadir}/icons/hicolor/48x48/apps/%{name}.png
%{_datadir}/pixmaps/*.xpm
## %{_datadir}/locale/*/*/*
%{_datadir}/applications/*.desktop
%changelog
* Tue May 26 2009 version 1.17 released
* Sat May 16 2009 version 1.16 released
* Tue Apr 14 2009 version 1.15 released
* Sat Jul 28 2007 Leonardo Chiquitto <lchiquitto@novell.com> 1.13-1
- First version, based on Mandriva package