ALT Linux repos
S: | 8.0-alt2 |
D: | 4.0-alt1.beta2 |
5.0: | 3.1-alt4 |
4.1: | 3.1-alt2 |
4.0: | 3.0-alt1 |
3.0: | 1.0-alt1 |
+backports: | 2.0-alt1.M30.1 |
Group :: Office
RPM: kchmviewer
Main Changelog Spec Patches Sources Download Gear Bugs and FR Repocop
%define _unpackaged_files_terminate_build 1
Name: kchmviewer
Version: 4.0
Release: alt1.beta2
Summary: KchmViewer is a chm (MS HTML help file format) viewer
License: %gpl2plus
Group: Office
Url: http://kchmviewer.net
Packager: Andrey Rahmatullin <wrar at altlinux.ru>
Source: %name-%version.tar.gz
Patch1: %name-4.0-alt-header-guards.patch
Patch2: %name-3.1-alt-desktop.patch
BuildPreReq: gcc-c++ libchm-devel libqt4-devel
BuildPreReq: rpm-build-licenses
Requires(post,postun): desktop-file-utils
BuildPreReq: desktop-file-utils
%description
KchmViewer is a chm (MS HTML help file format) viewer, written in C++.
Unlike most existing CHM viewers for Unix, it uses Trolltech Qt widget
library, and does not depend either on KDE or Gnome. It will be integrated
into KDE later, but there still will be a stand-alone version.
The main advantage of KchmViewer is non-English language support.
Unlike others, KchmViewer in most cases correctly detects help file
encoding, correctly shows tables of context of Russian, Korean and
Japanese help files, and correctly searches in Russian help files.
%prep
%setup
%patch1 -p2
%patch2 -p2
%build
export PATH=$PATH:%_qt4dir/bin
qmake
%__subst "s,debug,," kchmviewer.pro src/src.pro
%make_build
%install
install -pD -m755 bin/%name %buildroot%_bindir/%name
for i in 48 64 128; do
install -pD -m644 src/pics/cr$i-app-kchmviewer.png %buildroot%_iconsdir/hicolor/${i}x$i/apps/%name.png
done
install -pD -m644 lib/kio-msits/%name.desktop %buildroot%_desktopdir/%name.desktop
%post
%update_menus
%update_desktopdb
%postun
%clean_menus
%clean_desktopdb
%files
%doc ChangeLog DCOP-bingings FAQ README
%_bindir/%name
%_iconsdir/hicolor/*/apps/%name.png
%_desktopdir/%name.desktop
%changelog
…
Full changelog you can see here
Name: kchmviewer
Version: 4.0
Release: alt1.beta2
Summary: KchmViewer is a chm (MS HTML help file format) viewer
License: %gpl2plus
Group: Office
Url: http://kchmviewer.net
Packager: Andrey Rahmatullin <wrar at altlinux.ru>
Source: %name-%version.tar.gz
Patch1: %name-4.0-alt-header-guards.patch
Patch2: %name-3.1-alt-desktop.patch
BuildPreReq: gcc-c++ libchm-devel libqt4-devel
BuildPreReq: rpm-build-licenses
Requires(post,postun): desktop-file-utils
BuildPreReq: desktop-file-utils
%description
KchmViewer is a chm (MS HTML help file format) viewer, written in C++.
Unlike most existing CHM viewers for Unix, it uses Trolltech Qt widget
library, and does not depend either on KDE or Gnome. It will be integrated
into KDE later, but there still will be a stand-alone version.
The main advantage of KchmViewer is non-English language support.
Unlike others, KchmViewer in most cases correctly detects help file
encoding, correctly shows tables of context of Russian, Korean and
Japanese help files, and correctly searches in Russian help files.
%prep
%setup
%patch1 -p2
%patch2 -p2
%build
export PATH=$PATH:%_qt4dir/bin
qmake
%__subst "s,debug,," kchmviewer.pro src/src.pro
%make_build
%install
install -pD -m755 bin/%name %buildroot%_bindir/%name
for i in 48 64 128; do
install -pD -m644 src/pics/cr$i-app-kchmviewer.png %buildroot%_iconsdir/hicolor/${i}x$i/apps/%name.png
done
install -pD -m644 lib/kio-msits/%name.desktop %buildroot%_desktopdir/%name.desktop
%post
%update_menus
%update_desktopdb
%postun
%clean_menus
%clean_desktopdb
%files
%doc ChangeLog DCOP-bingings FAQ README
%_bindir/%name
%_iconsdir/hicolor/*/apps/%name.png
%_desktopdir/%name.desktop
%changelog
…
Full changelog you can see here