File qterm.spec of Package qterm

#
# spec file for package qterm
#
# Copyright (c) 2011 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 openssl-devel python-devel update-desktop-files
BuildRequires:  libqt4-devel >= 4.5.0
BuildRequires:  libqt4-devel-doc
Summary:        QTerm is BBS client
Version:        0.5.12
Release:        0
License:        GPL v2 or later
Group:          System/X11/Terminals
Url:            http://qterm.sourceforge.net/
Source0:        %{name}-%{version}.tar.bz2
Source1:        qterm.desktop
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}

%build
# This package failed when testing with -Wl,-as-needed being default.
# So we disable it here, if you want to retest, just delete this comment and the line below.
export SUSE_ASNEEDED=0
mkdir build
pushd build
cmake .. -DCMAKE_INSTALL_PREFIX=/usr
make
popd

%install
# This package failed when testing with -Wl,-as-needed being default.
# So we disable it here, if you want to retest, just delete this comment and the line below.
export SUSE_ASNEEDED=0
pushd build
%makeinstall
popd
mkdir -p $RPM_BUILD_ROOT/usr/share/applications/
install -m 0644 $RPM_SOURCE_DIR/qterm.desktop $RPM_BUILD_ROOT/usr/share/applications/

%files
%defattr(-,root,root)
/usr/share/qterm
/usr/share/applications/*
/usr/share/icons/hicolor/
/usr/share/icons/hicolor/*/apps/*.png
%{_bindir}/*

%changelog
openSUSE Build Service is sponsored by