File qterm.spec of Package qterm
#
# spec file for package qterm
#
# Copyright (c) 2015 SUSE LINUX 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
Version: 0.5.12
Release: 0
Summary: QTerm is BBS client
License: GPL-2.0+
Group: System/X11/Terminals
Url: http://qterm.sourceforge.net/
Source0: http://prdownloads.sourceforge.net/qterm/%{name}-%{version}.tar.bz2
Source1: qterm.desktop
Patch1: qterm-0.5.12-gcc-4.7.patch
Patch2: qterm-0.5.12-cmake-2.6.patch
BuildRequires: cmake
BuildRequires: fdupes
BuildRequires: hicolor-icon-theme
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
Requires: hicolor-icon-theme
Requires(post): update-desktop-files
Requires(postun): update-desktop-files
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
QTerm is a full featured BBS client written in Qt.
%prep
%setup -q
%patch1
%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
%cmake
make %{?_smp_mflags}
%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
%cmake_install
install -D -m 0644 %{SOURCE1} %{buildroot}%{_datadir}/applications/
%fdupes -s %{buildroot}
%post
%desktop_database_post
%icon_theme_cache_post
%postun
%desktop_database_postun
%icon_theme_cache_postun
%files
%defattr(-,root,root)
%{_datadir}/qterm
%{_datadir}/applications/*
%{_datadir}/icons/hicolor/*/apps/*.png
%{_bindir}/*
%changelog