File qterm.spec of Package qterm

#
# spec file for package qterm (Version 0.5.1)
#
# Copyright (c) 2008 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via http://bugs.opensuse.org/
#

# norootforbuild


Name:           qterm
BuildRequires:  cmake libjpeg-devel libqt4-devel openssl-devel python-devel update-desktop-files
Summary:        QTerm is BBS client
Version:        0.5.1
Release:        1
License:        GPL v2 or later
Group:          System/X11/Terminals
Url:            http://qterm.sourceforge.net/
Source0:        %{name}-%{version}.tar.bz2
Source1:        qterm.desktop
Patch0:         compilefix.patch
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
QTerm is a full featured BBS client written in Qt.



Authors:
--------
    kingson <xiaokiangwang@yahoo.com.cn>
    fiasco <yinshouyi@peoplemail.com.cn>
    hooey <hephooey@hotmail.com>

%prep
%setup -n %{name}-%{version}
%patch0

%build
mkdir build
pushd build
cmake .. -DCMAKE_INSTALL_PREFIX=/usr
make
popd

%install
pushd build
%makeinstall
popd
mkdir -p %{_tmppath}/%{name}-%{version}-build/usr/share/pixmaps
install -m 0644 %{_tmppath}/%{name}-%{version}-build/usr/share/qterm/pic/qterm_32x32.png %{_tmppath}/%{name}-%{version}-build/usr/share/pixmaps/qterm.png
mkdir -p %{_tmppath}/%{name}-%{version}-build/usr/share/applications/
install -m 0644 $RPM_SOURCE_DIR/qterm.desktop %{_tmppath}/%{name}-%{version}-build/usr/share/applications/

%files
%defattr(-,root,root)
/usr/share/qterm
/usr/share/applications/*
/usr/share/pixmaps/*
%{_bindir}/*
#%{_libdir}/

%changelog
* Tue Mar 25 2008 xwhu@suse.de
- Initial import of qterm 0.5 serial
  - completely switch to cmake
  - port to qt4
  - upstream changelog no longer available
* Thu Jun 21 2007 adrian@suse.de
- fix changelog entry order
* Thu Jun 07 2007 sbrabec@suse.cz
- Fixed deskop file translation.
- Removed invalid desktop Category "Application" (#254654).
* Mon Mar 12 2007 xwhu@novell.com
- Explicitly cast QCString to const char* in qtermtelnet.cpp
* Thu Jun 22 2006 ro@suse.de
- remove selfprovides
* Wed Jan 25 2006 mls@suse.de
- converted neededforbuild to BuildRequires
* Mon Jan 16 2006 ro@suse.de
- change sequence in specfile
* Sun Jan 15 2006 xwhu@novell.com
- Minor fixes to meet the requirement of abuild system
* Sat Jan 14 2006 ro@suse.de
- fixed changelog again
* Wed Jan 11 2006 xwhu@novell.com
- Initial build of 0.4.0pre3
openSUSE Build Service is sponsored by