File kchmviewer.spec of Package kchmviewer
#
# spec file for package kchmviewer (Version 3.1)
#
# Copyright (c) 2007 SUSE LINUX Products GmbH, Nuernberg, Germany.
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
#
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
# norootforbuild
Name: kchmviewer
BuildRequires: kdelibs3-devel
%if %suse_version < 1000
BuildRequires: libjpeg-devel
%endif
%if %suse_version > 1010
BuildRequires: chmlib-devel
%endif
License: GPL v2 or later
Group: Productivity/Office/Other
Summary: KDE chm Viewer (MS Windows Compressed HTML Documents)
Version: 3.1
Release: 46
Url: http://www.kchmviewer.net/
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Source: %name-%version-2.tar.gz
Patch: %name.diff
Patch1: gcc-4.3.diff
%description
This is a viewer for the chm files known from the MS Windows world. It
supports complex searching for large books and has various viewing
features.
Authors:
--------
<tim@krasnogorsk.ru>
%prep
%setup -q
%patch
%patch1
. /etc/opt/kde3/common_options
update_admin --no-unsermake
%build
. /etc/opt/kde3/common_options
%if "%_lib" == "lib64"
./configure $configkde --with-kde --enable-libsuffix=64 --disable-final
%else
./configure $configkde --with-kde --disable-final
%endif
make %{?jobs:-j%jobs}
%install
. /etc/opt/kde3/common_options
make DESTDIR=$RPM_BUILD_ROOT $INSTALL_TARGET
#kde_post_install
%if %suse_version < 1010
%suse_update_desktop_file %name Office Viewer
%else
%suse_update_desktop_file -G "Compressed HTML Viewer" %name Office Viewer
%endif
%find_lang %name
%clean
rm -rf $RPM_BUILD_ROOT
%files -f %name.lang
%defattr(-,root,root)
/opt/kde3/bin/*
/opt/kde3/%_lib/*
/opt/kde3/share/appl*/*/*.desktop
/opt/kde3/share/icons/*/*/*/kchmviewer.*
/opt/kde3/share/services/msits.protocol
%dir /opt/kde3/share/locale/du
%dir /opt/kde3/share/locale/du/LC_MESSAGES
%changelog
* Mon Oct 29 2007 - dmueller@suse.de
- fix build against gcc 4.3
* Mon Oct 08 2007 - schwab@suse.de
- Fix specfile.
* Sun Jun 17 2007 - stbinner@suse.de
- update to version 3.1:
* Increased the speed of search engine indexing.
* Fixed the problem when kchmviewer is called from a browse
with URL like file://.
* Fixed the unability to run the program when the last opened file
does not exist anymore, and LoadLatestFileOnStartup is set to 1.
* Fixed CHMs with Unicode index/topic filenames inside CHM file.
* Fixed showing book images in QTextBrowser when file path contains
urlencoded symbols.
* Mon Apr 30 2007 - stbinner@suse.de
- with build with desktop-file-validate run
* Wed Mar 14 2007 - stbinner@suse.de
- update to version 3.0:
* new search engine, which can correctly search in any language
(including Asian languages), and can search for symbols
* Added DCOP bindings for KDE version.
* Chm procesing code moved in a separate library and was rewritten
resulted in up to 20x(!) speed increase for loading large chm files.
* Fixed a lot of old bugs, including 'Copy' in KDE, removing a
duplicated application title, and incorrect popup menu position.
* Mon Jan 29 2007 - stbinner@suse.de
- patch internal chmlib copy with 0.39 fixes for KDE:Backports
- update to version 2.7:
* You can now switch between tabs using Alt+[number].
* Now current window size and splitter position is also stored
on exit - separately for each chm file.
* Kchmviewer should now work correctly on non-x86 platforms,
including the codepage autodetection.
* TOC directory entries now could be opened/closed with double-
click on the entry name/icon, not just +/- icons.
* Added a warning when the browser or browser settings are changed
that application restart is required for changes to take effect.
* Fri Jul 07 2006 - adrian@suse.de
- update to version 2.6:
* Added shortcut help in context menus.
* Right-click menu is now available in Contents, Search, Index and Favorites windows.
* Fixed navigation buttons 'What's this' messages.
* Mon Jun 26 2006 - stbinner@suse.de
- fix build for 64 bit
* Wed May 31 2006 - adrian@suse.de
- fix build for < 10.1
* Mon May 22 2006 - stbinner@suse.de
- Use system-wide chmlib package (#153012)
* Wed May 17 2006 - stbinner@suse.de
- update to version 2.5:
* Application icon should now be correctly installed.
* Fixed handling of mailto: urls.
* 'Locate in content' button now opens a Contents tab, if hidden.
* Version 2.5 release.
* A tooltip is now shows the full text in all the tree and list views if truncated on screen.
* Fixed content tree parser, now the content table should be parsed correctly.
* Fixed crash after the encoding is changed, if any tree item is clicked.
* Added a bookmark menu. Ctrl-B is a shortcut to add a bookmark.
* Added tab browsing. Use right-click and 'Open in new tab'.
- Added right-click content menu to open pages in a new tab.
- Control-click on link or table of contents opens a page in a new tab in background.
- Shift-click on link or table of contents opens a page in a new tab in foreground.
* 'Setup' menu renamed to 'Settings'
* Fixed various navigation errors when 'Locate' button didn't locate the appropriate topic.
* Fixed forward navigation, and saved scroll position.
* Navigation history rewritten, now it stores text position too.
* Added 'Extract CHM content' menu item to extract the whole CHM file into a directory.
* Added i18n calls for complete internationalization. pot file created.
* Switched to a new, correct automake file structure.
* Fixed autotest.
* Now kchmviewer uses system libchm if found, and no --with-builtin-chmlib configure switch defined.
* Made configure more compatible with newest autoconf and Debian - thanks to Jose Luis Tallon.
* Added an application icon - thanks to Jose Luis Tallon.
* Fixed index parser for PHP manual - thanks to Dmitry Bakshaev.
* In full screen mode the menu bar and status bar are now hidden.
* Added 'locate in content window' button to open currently opened topic in the content window.
* Fixed compilation with gcc 4.1 - thanks to Jan Jitse Venselaar.
* The algorithm to detect the valid root offset in contents page is changed. Now there should be less
"CHMFile::ParseAndFillTopicsTree: child entry 1 with no root entry!" errors.
* Pages with images only are now shown correctly.
* Fixed kqrunprocess.h compilation bug on some platforms.
* Wed Feb 15 2006 - stbinner@suse.de
- add GenericName to .desktop file
* Wed Jan 25 2006 - mls@suse.de
- converted neededforbuild to BuildRequires
* Mon Nov 28 2005 - stbinner@suse.de
- update to version 1.3
* Mon Nov 21 2005 - stbinner@suse.de
- update to version 1.2
* Sun Oct 30 2005 - stbinner@suse.de
- update to version 1.1
* Wed Oct 26 2005 - stbinner@suse.de
- update internal CHM lib copy to 0.37 to fix exploitable buffer
overflow (#130751)
* Tue Oct 11 2005 - dmueller@suse.de
- fix build
* Tue Sep 27 2005 - dmueller@suse.de
- fix build
* Wed Aug 17 2005 - schwab@suse.de
- Fix to build.
* Tue Aug 02 2005 - coolo@suse.de
- cleaning up behind project management
* Fri Jul 29 2005 - adrian@suse.de
- initial package of version 1.0