Репозитории 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 |
Группа :: Офис
Пакет: kchmviewer
Главная Изменения Спек Патчи Sources Загрузить Gear Bugs and FR Repocop
Name: kchmviewer
Version: 4.2
Release: alt1
Summary: A chm (MS HTML help file format) viewer (with KDE4 support)
License: %gpl3plus
Group: Office
Url: http://kchmviewer.net
Packager: Andrey Rahmatullin <wrar at altlinux.ru>
Source: %name-%version.tar
BuildRequires(pre): rpm-build-licenses kde-common-devel
BuildPreReq: gcc-c++ kde4libs-devel libchm-devel
Conflicts: kde4graphics-okular < 4.2.3-alt1
Obsoletes: kchmviewer4 <= 4.0-alt3
Provides: kchmviewer4 = %version-%release
%define _unpackaged_files_terminate_build 1
%define __kde4_alternate_placement 1
%package nokde
Summary: A chm (MS HTML help file format) viewer
Group: Office
Conflicts: kchmviewer
%description
KchmViewer is a chm (MS HTML help file format) viewer, written in C++.
The main advantage of KchmViewer is extended support for non-English
languages. Unlike others, KchmViewer in most cases correctly detects chm
file encoding, correctly shows tables of context of Russian, Korean,
Chinese and Japanese help files. It also correctly searches text in
non-English help files, including Korean, Chinese and Japanese.
This version is built with KDE4 support and uses KHTML engine.
%description nokde
KchmViewer is a chm (MS HTML help file format) viewer, written in C++.
The main advantage of KchmViewer is extended support for non-English
languages. Unlike others, KchmViewer in most cases correctly detects chm
file encoding, correctly shows tables of context of Russian, Korean,
Chinese and Japanese help files. It also correctly searches text in
non-English help files, including Korean, Chinese and Japanese.
This version is built without KDE4 support and uses Qt Webkit engine.
%prep
%setup
pushd src/kde
for icon in cr*.png; do
mv $icon hi${icon#cr}
done
popd
%build
%K4cmake -DKDE4_ENABLE_FINAL:BOOL=1
%K4make
mkdir build-nokde
pushd build-nokde
qmake-qt4 ../kchmviewer.pro %{!?_enable_debug:-after "CONFIG -= debug"}
%make lib/Makefile src/Makefile
%make -C lib libchmfile/Makefile
sed -i 's|-pipe |%optflags |g' lib/libchmfile/Makefile src/Makefile
%make_build
%install
%K4install
install -pD -m755 build-nokde/bin/kchmviewer %buildroot%_bindir/%name
%K4find_lang --with-kde %name
%files -f %name.lang
%doc ChangeLog DBUS-bindings FAQ README
%__kde4_bindir/*
%_K4lib/*.so
%_K4datadir/icons/hicolor/*/apps/*.png
%_K4datadir/applications/kde4/*.desktop
%_K4srv/*.protocol
%files nokde
%_bindir/%name
%doc ChangeLog DBUS-bindings FAQ README
%changelog
…
Полный changelog можно просмотреть здесь
Version: 4.2
Release: alt1
Summary: A chm (MS HTML help file format) viewer (with KDE4 support)
License: %gpl3plus
Group: Office
Url: http://kchmviewer.net
Packager: Andrey Rahmatullin <wrar at altlinux.ru>
Source: %name-%version.tar
BuildRequires(pre): rpm-build-licenses kde-common-devel
BuildPreReq: gcc-c++ kde4libs-devel libchm-devel
Conflicts: kde4graphics-okular < 4.2.3-alt1
Obsoletes: kchmviewer4 <= 4.0-alt3
Provides: kchmviewer4 = %version-%release
%define _unpackaged_files_terminate_build 1
%define __kde4_alternate_placement 1
%package nokde
Summary: A chm (MS HTML help file format) viewer
Group: Office
Conflicts: kchmviewer
%description
KchmViewer is a chm (MS HTML help file format) viewer, written in C++.
The main advantage of KchmViewer is extended support for non-English
languages. Unlike others, KchmViewer in most cases correctly detects chm
file encoding, correctly shows tables of context of Russian, Korean,
Chinese and Japanese help files. It also correctly searches text in
non-English help files, including Korean, Chinese and Japanese.
This version is built with KDE4 support and uses KHTML engine.
%description nokde
KchmViewer is a chm (MS HTML help file format) viewer, written in C++.
The main advantage of KchmViewer is extended support for non-English
languages. Unlike others, KchmViewer in most cases correctly detects chm
file encoding, correctly shows tables of context of Russian, Korean,
Chinese and Japanese help files. It also correctly searches text in
non-English help files, including Korean, Chinese and Japanese.
This version is built without KDE4 support and uses Qt Webkit engine.
%prep
%setup
pushd src/kde
for icon in cr*.png; do
mv $icon hi${icon#cr}
done
popd
%build
%K4cmake -DKDE4_ENABLE_FINAL:BOOL=1
%K4make
mkdir build-nokde
pushd build-nokde
qmake-qt4 ../kchmviewer.pro %{!?_enable_debug:-after "CONFIG -= debug"}
%make lib/Makefile src/Makefile
%make -C lib libchmfile/Makefile
sed -i 's|-pipe |%optflags |g' lib/libchmfile/Makefile src/Makefile
%make_build
%install
%K4install
install -pD -m755 build-nokde/bin/kchmviewer %buildroot%_bindir/%name
%K4find_lang --with-kde %name
%files -f %name.lang
%doc ChangeLog DBUS-bindings FAQ README
%__kde4_bindir/*
%_K4lib/*.so
%_K4datadir/icons/hicolor/*/apps/*.png
%_K4datadir/applications/kde4/*.desktop
%_K4srv/*.protocol
%files nokde
%_bindir/%name
%doc ChangeLog DBUS-bindings FAQ README
%changelog
…
Полный changelog можно просмотреть здесь