Package qtemu: Specfile

Name: qtemu
Version: 2.0
Release: alt0.1.1

Summary: QtEmu is a graphical user interface for QEMU written in Qt4
Summary(ru_RU.UTF-8): QtEmu - графический интерфейс для QEMU, написаный на Qt4
License: GPL
Group: Emulators
Url: http://qtemu.org

Packager: Alexey Morsov <swi@altlinux.ru>
Source: %name-%version.tar
Source1: %name.desktop
Patch0: qtemu-help-transl-alt.patch


# Automatically added by buildreq on Wed Sep 12 2007
BuildRequires: gcc-c++ libSM-devel libXcursor-devel libXi-devel libXinerama-devel libXrandr-devel libqt4-devel
BuildPreReq: cmake
BuildPreReq: libvncserver-devel

Requires: qemu

%description
QtEmu is a graphical user interface for QEMU written in Qt4. 

%description -l ru_RU.UTF8
QtEmu - графический интерфейс для QEMU, написаный на Qt4.   

%prep
%setup -q
%patch0 -p1

#subst 's|DESTINATION translations|DESTINATION %_datadir/qt4/translations/|g' CMakeLists.txt
#subst 's|DESTINATION help|DESTINATION %_docdir/%name-%version/|g' CMakeLists.txt

%build
cmake -DCMAKE_INSTALL_PREFIX=%_usr -DQT_QMAKE_EXECUTABLE=%_qt4dir/bin/qmake .
%make_build

%install
%make_install DESTDIR=%buildroot install
%find_lang %name

mkdir -p %buildroot%_desktopdir
cp %SOURCE1 %buildroot%_desktopdir/
mkdir -p %buildroot%_niconsdir
cp images/oxygen/%name.png %buildroot%_niconsdir/

%files -f %name.lang
%_bindir/*
%_datadir/%{name}/translations/*
%_datadir/%{name}/help/*
%_desktopdir/*
%_niconsdir/*
%doc COPYING CHANGELOG README help/

%changelog
* Sat Nov 28 2009 Alexey Morsov <swi@altlinux.ru> 2.0-alt0.1.1
- new version
- remove absoluted macros

* Fri Nov 16 2007 Alexey Morsov <swi@altlinux.ru> 1.0.5-alt2
- fix translations installation path (bug #13432)
- fix doc paths in CMakeLists.txt instead of manual mv

* Tue Nov 13 2007 Alexey Morsov <swi@altlinux.ru> 1.0.5-alt1
- Option for custom network settings.
- Possibility to set additional options which are not covered by QtEmu.
- Sound configuration.

* Fri Sep 14 2007 Alexey Morsov <swi@altlinux.ru> 1.0.4-alt2
- critical: fix machine starting
- fix: rebuild with full src-tree (my mistake while merge in git)

* Wed Sep 12 2007 Alexey Morsov <swi@altlinux.ru> 1.0.4-alt1
- version 1.0.4

* Wed Sep 12 2007 Terechkov Evgenii <evg@altlinux.ru> 1.0.3-alt2
- Spec cleanups
- #12748 fixed in spec

* Tue Mar 20 2007 Alexey Morsov <swi@altlinux.ru> 1.0.3-alt1
- first build for sisyphus