File qterm.spec of Package qterm

#
# spec file for package qterm (Version 0.5.1)
#
# Copyright (c) 2009 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:        4
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
# 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/pixmaps
install -m 0644 $RPM_BUILD_ROOT/usr/share/qterm/pic/qterm_32x32.png $RPM_BUILD_ROOT/usr/share/pixmaps/qterm.png
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/pixmaps/*
%{_bindir}/*
#%{_libdir}/

%changelog
openSUSE Build Service is sponsored by