Name: kniga
Version: 0.1.11
Release: alt1

Summary: Kniga is Qt-based advanced text viewer for Linux

License: GPL
Group: Office
Url: http://kniga.linux.kiev.ua

Packager: Dmitry Marochko <mothlike@altlinux.ru>

Source: %name-%version.tar.bz2
Source1: %name.menu

# Automatically added by buildreq on Thu Jun 16 2005
BuildRequires: XFree86-devel XFree86-libs fontconfig freetype2 gcc-c++ libqt3-devel libstdc++-devel

%description
Kniga is Qt-based advanced text viewer for Linux


%prep
%setup -n %name
subst "s,/opt/kniga/doc,/usr/share/doc/kniga,g" kniga.pro src/config.h
subst "s,/opt/kniga/bin,/usr/bin,g" kniga.pro
subst "s,/opt/kniga,/usr/share/kniga,g" kniga.pro src/config.h
subst "s,/kniga/icons,/icons,g" kniga.pro
subst "s,i18n,translations,g" kniga.pro src/config.h
subst "s,icon.png,kniga_icon.png,g" kniga.pro src/kniga.cpp
%__mv  pic/icon.png pic/kniga_icon.png
%__mv  i18n translations

%build
/usr/lib/qt3/bin/lrelease kniga.pro
/usr/lib/qt3/bin/qmake kniga.pro
%make

%install
%make_install INSTALL_ROOT=%buildroot install
%__install -pD -m644 %SOURCE1 %buildroot%_menudir/%name

%post
%update_menus

%postun
%clean_menus

%files
%_bindir/*
%_iconsdir/*
%doc %_docdir/%name
%_datadir/%name
%_menudir/*

%changelog
* Wed Jun 15 2005 Dmitry Marochko <mothlike@altlinux.ru> 0.1.11-alt1
- First Sisyphus build
