File qterm.spec of Package qterm
#
# spec file for package qterm
#
# Copyright (c) 2012 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/
#
Name: qterm
BuildRequires: cmake
BuildRequires: libjpeg-devel
BuildRequires: libqt4-devel >= 4.5.0
BuildRequires: libqt4-devel-doc
BuildRequires: openssl-devel
BuildRequires: python-devel
BuildRequires: qt4-qtscript
BuildRequires: update-desktop-files
Summary: QTerm is BBS client
License: GPL-2.0+
Group: System/X11/Terminals
Version: 0.5.12
Release: 0
Url: http://qterm.sourceforge.net/
Source0: %{name}-%{version}.tar.bz2
Patch1: qterm-0.5.12-gcc-4.7.patch
Patch2: qterm-0.5.12-cmake-2.6.patch
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 -q -n %{name}-%{version}
%patch1 -p0
%patch2 -p1
%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