File psi.spec of Package psi

#
# spec file for package psi (Version 0.13)
#
# 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

%define realver 0.13

Name:           psi
Url:            http://psi-im.org/
License:        GPL v2 or later
Group:          Productivity/Networking/Talk/Clients
Version:        0.13
Release:        1
Summary:        PSI Jabber client using Qt
Source:         http://downloads.sourceforge.net/psi/%{name}-%{realver}.tar.bz2
Source1:        http://psi-im.org/download/lang/psi_cs.qm
Source2:        http://psi-im.org/download/lang/qt_de.qm
Source3:        http://psi-im.org/download/lang/psi_de.qm
Source4:        http://psi-im.org/download/lang/psi_eo.qm
Source5:        http://psi-im.org/download/lang/psi_es_ES.qm
Source6:        http://psi-im.org/download/lang/psi_fr.qm
Source7:        http://psi-im.org/download/lang/qt_fr.qm
Source8:        http://psi-im.org/download/lang/psi_it.qm
Source9:        http://psi-im.org/download/lang/psi_mk.qm
Source10:       http://psi-im.org/download/lang/psi_pl.qm
Source11:       http://psi-im.org/download/lang/psi_pt_BR.qm
Source12:       http://psi-im.org/download/lang/psi_ru.qm
Source13:       http://psi-im.org/download/lang/qt_ru.qm
Source14:       http://psi-im.org/download/lang/psi_uk.qm
Source15:       http://psi-im.org/download/lang/qt_uk.qm
Source16:       http://psi-im.org/download/lang/psi_ur_pk.qm
Source17:       http://psi-im.org/download/lang/psi_vi.qm
Source18:       http://psi-im.org/download/lang/psi_zh.qm
Source19:       http://psi-im.org/download/lang/psi_zh_TW.qm
Patch0:         %{name}-0.13-dbus-sleepwake.patch
Patch1:         %{name}-0.13-mpris.patch
Patch2:         %{name}-0.13-whiteboarding.patch
Patch3:         %{name}-0.13-sxe-debug.patch
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildRequires:  aspell-devel libqca2-devel libqt4-devel
BuildRequires:  update-desktop-files
Recommends:     psimedia >= 1.0.3

%description
Psi is the premiere Instant Messaging application designed for
GNU/Linux, Microsoft Windows, Apple Mac OS X. Built upon an open
protocol named Jabber, Psi is a fast and lightweight messaging client
that utilises the best in open source technologies. Psi contains all
the features necessary to chat, with no bloated extras that slow your
computer down.



Authors:
--------
    Justin Karneges <infiniti@affinix.com>
    Kevin Smith <psi-changelog@kismith.co.uk>
    Michail Pishchagin <mblsha@users.sourceforge.net>
    Remko Troncon <remko@psi-im.org>
    Maciej Niedzielski

%prep
%setup -q -n %{name}-%{realver}
%patch0
%patch1
%patch2
%patch3

%build
# do not use %configure - not real configure script
export QMAKE_CXXFLAGS="%{optflags}"
./configure --prefix=%{_prefix} --libdir=%{_libdir} --disable-bundled-qca --enable-debug
make %{?jobs:-j%jobs}

%install
make INSTALL_ROOT=%{buildroot} install
rm -f %{buildroot}%{_datadir}/psi/{COPYING,README}
%suse_update_desktop_file psi
install -m 0644 -t %{buildroot}%{_datadir}/%{name} $RPM_SOURCE_DIR/*.qm
mkdir -p %{buildroot}%{_libdir}/psi/plugins

%clean
rm -rf %{buildroot}

%files
%defattr(-,root,root)
%doc COPYING README
%{_bindir}/psi
%{_datadir}/applications/psi.desktop
%dir %{_datadir}/icons/hicolor
%dir %{_datadir}/icons/hicolor/16x16
%dir %{_datadir}/icons/hicolor/16x16/apps
%dir %{_datadir}/icons/hicolor/32x32
%dir %{_datadir}/icons/hicolor/32x32/apps
%dir %{_datadir}/icons/hicolor/48x48
%dir %{_datadir}/icons/hicolor/48x48/apps
%dir %{_datadir}/icons/hicolor/64x64
%dir %{_datadir}/icons/hicolor/64x64/apps
%dir %{_datadir}/icons/hicolor/128x128
%dir %{_datadir}/icons/hicolor/128x128/apps
%{_datadir}/icons/hicolor/*/apps/psi.png
%dir %{_datadir}/psi
%{_datadir}/psi/certs
%{_datadir}/psi/iconsets
%{_datadir}/psi/sound
%{_datadir}/psi/*.qm
%dir %{_libdir}/psi
%dir %{_libdir}/psi/plugins
# %lang(cs) %{_datadir}/psi/*_cs.qm
# %lang(de) %{_datadir}/psi/*_de.qm
# %lang(eo) %{_datadir}/psi/*_eo.qm
# %lang(es_ES) %{_datadir}/psi/*_es_ES.qm
# %lang(fr) %{_datadir}/psi/*_fr.qm
# %lang(it) %{_datadir}/psi/*_it.qm
# %lang(mk) %{_datadir}/psi/*_mk.qm
# %lang(pl) %{_datadir}/psi/*_pl.qm
# %lang(pt_BR) %{_datadir}/psi/*_pt_BR.qm
# %lang(ru) %{_datadir}/psi/*_ru.qm
# %lang(uk) %{_datadir}/psi/*_uk.qm
# %lang(ur_pk) %{_datadir}/psi/*_ur_pk.qm
# %lang(vi) %{_datadir}/psi/*_vi.qm
# %lang(zh) %{_datadir}/psi/*_zh.qm
# %lang(zh_TW) %{_datadir}/psi/*_zh_TW.qm

%changelog
openSUSE Build Service is sponsored by