4553656
Name:           kchmviewer
eeaf958
Version:        2.7
eeaf958
Release:        1%{?dist}
eeaf958
Summary:        CHM viewer with KDE support
4553656
b0300d4
Group:          Applications/Publishing
4553656
License:        GPL
4553656
URL:            http://www.kchmviewer.net/
eeaf958
Source0:        http://ovh.dl.sourceforge.net/sourceforge/kchmviewer/kchmviewer-%{version}.tar.gz
4553656
# fix the desktop file
4553656
Patch0:         kchmviewer-desktop.diff
4553656
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
4553656
4553656
BuildRequires:  qt-devel chmlib-devel 
4553656
BuildRequires:  desktop-file-utils kdelibs-devel
4553656
4553656
%description
4553656
KchmViewer is a chm (MS HTML help file format) viewer, written in C++. 
eeaf958
Unlike most existing CHM viewers for Unix, it uses Trolltech Qt widget 
eeaf958
library. It is compiled with full KDE support, including KDE widgets 
eeaf958
and KIO/KHTML.
4553656
4553656
4553656
%prep
4553656
%setup -q
eeaf958
%patch0
4553656
chmod -x kio-msits/msits.*
4553656
4553656
4553656
%build
4553656
%configure --disable-static --with-kde --disable-rpath
4553656
make %{?_smp_mflags}
4553656
eeaf958
4553656
%install
4553656
rm -rf $RPM_BUILD_ROOT
4553656
make install DESTDIR=$RPM_BUILD_ROOT
eeaf958
mkdir -p ${RPM_BUILD_ROOT}%{_datadir}/pixmaps
4553656
install -m644 src/pics/cr48-app-kchmviewer.png ${RPM_BUILD_ROOT}%{_datadir}/pixmaps/kchmviewer.png
4553656
4553656
desktop-file-install --vendor fedora                            \
4553656
        --dir ${RPM_BUILD_ROOT}%{_datadir}/applications         \
2979e2c
        --delete-original \
2979e2c
        $RPM_BUILD_ROOT%{_datadir}/applnk/kchmviewer.desktop
4553656
4553656
4553656
%clean
4553656
rm -rf $RPM_BUILD_ROOT
4553656
eeaf958
4553656
%post
4553656
update-desktop-database &> /dev/null ||:
eeaf958
touch --no-create %{_datadir}/icons/crystalsvg || :
eeaf958
%{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/crystalsvg || :
4553656
4553656
%postun
4553656
update-desktop-database &> /dev/null ||:
eeaf958
touch --no-create %{_datadir}/icons/crystalsvg || :
eeaf958
%{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/crystalsvg || :
eeaf958
4553656
4553656
%files
4553656
%defattr(-,root,root,-)
4553656
%doc README COPYING ChangeLog
4553656
%{_bindir}/kchmviewer
4553656
%{_datadir}/applications/*
4553656
%{_datadir}/pixmaps/*
4553656
%{_libdir}/kde3/kio_msits.so
4553656
%{_libdir}/kde3/kio_msits.la
4553656
%{_datadir}/services/msits.protocol
e824790
%{_datadir}/icons/crystalsvg/*/apps/kchmviewer.png
4553656
eeaf958
4553656
%changelog
eeaf958
* Mon Jan 29 2007 Patrice Dumas <pertusus@free.fr> 2.7-1
eeaf958
- update to 2.7
eeaf958
c24f9a3
* Tue Sep 12 2006 Patrice Dumas <pertusus@free.fr> 2.6-2
c24f9a3
- rebuild for FC6
c24f9a3
b0300d4
* Sat Jul 22 2006 Patrice Dumas <pertusus@free.fr> 2.6-1
b0300d4
- update to 2.6
b0300d4
- remove upstreamed patch kchmviewer-2.5-iconstorage.h.patch
b0300d4
e824790
* Thu May 18 2006 Patrice Dumas <pertusus@free.fr> 2.5-1
e824790
- update to 2.5
e824790
- patch from Jose Pedro Oliveira (jpo)
e824790
2979e2c
* Tue May 16 2006 Patrice Dumas <pertusus@free.fr> 2.0-4
2979e2c
- remove the old menu entry file from /usr/share/applnk/
2979e2c
4553656
* Mon Mar 13 2006 Patrice Dumas <pertusus@free.fr> 2.0-3
4553656
- use update-desktop-database
4553656
4553656
* Mon Mar 13 2006 Patrice Dumas <pertusus@free.fr> 2.0-2
4553656
- enable kde support
4553656
4553656
* Sun Mar 12 2006 Patrice Dumas <pertusus@free.fr> 2.0-1
4553656
- Fedora Extras submission