Репозиторий Sisyphus
Последнее обновление: 1 октября 2023 | Пакетов: 18631 | Посещений: 37552586
en ru br
Репозитории ALT
S:8.0-alt2
D:4.0-alt1.beta2
5.1: 4.2-alt1
4.1: 3.1-alt2
4.0: 3.0-alt1
3.0: 1.0-alt1
+backports:2.0-alt1.M30.1
www.altlinux.org/Changes

Группа :: Офис
Пакет: kchmviewer

 Главная   Изменения   Спек   Патчи   Sources   Загрузить   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

Полный changelog можно просмотреть здесь

 
дизайн и разработка: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
текущий майнтейнер: Michael Shigorin