File psi.spec of Package psi

#
# spec file for package psi (Version 0.12)
#
# 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:           psi
Url:            http://psi-im.org/
License:        GPL v2 or later
Group:          Productivity/Networking/Talk/Clients
Version:        0.12
Release:        28.<RELEASE15>
Summary:        PSI Jabber client using Qt
Source:         http://downloads.sourceforge.net/psi/%{name}-%{version}.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}-%{version}-delete.patch
Patch1:         %{name}-%{version}-remote-overflow.patch
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildRequires:  libqt4-devel >= 4.2.3
BuildRequires:  libqca2-devel >= 2.0.0
BuildRequires:  update-desktop-files

%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
%patch0
%patch1

%build
# do not use %configure - not real configure script
export QMAKE_CXXFLAGS="%{optflags}"
./configure --prefix=%{_prefix} --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

%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
# %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
* Fri Feb 27 2009 prusnak@suse.cz
- fix remote integer overflow (remote-overflow.patch) [bnc#479815]
* Wed Nov 19 2008 prusnak@suse.cz
- fix wrong delete usage (delete.patch) [bnc#445429]
* Tue Oct 07 2008 prusnak@suse.cz
- fix filelist
* Wed Sep 17 2008 prusnak@suse.cz
- added translations from psi website (thanks Marek Stopka for suggestion)
* Tue Sep 09 2008 prusnak@suse.cz
- added debuginfo to package
* Mon Aug 11 2008 prusnak@suse.cz
- updated to 0.12
  (changes from 0.11 to 0.12)
  - Multi-user chat windows now join one on one chat windows and can be opened
  in tabbed form, either sharing a window, or seperately.
  - The roster search has been updated, and now triggers a filter when typing
  into the roster window.
  - An XML ringbuffer is now used, allowing access to already received XML in
  the XML console.
  - When resolving a name for new contacts, the full name is now used if the
  nick name is missing from the vcard.
  - Auto-connect on wake is now an independent option.
  - MUCs can now be bookmarked, and auto-joined.
  - The old config.xml file has been dropped in favour of the new options.xml
  format - all options in Psi can now be configured from the Advanced
  options pane (no more hand-editing of config files is required).
  - Vcard avatars are now transmitted for the benefit of legacy clients and
  servers not supporting PEP.
  - A new diagnostics group is available in the help menu, to allow debugging
  problems with the QCA security layer.
  - Launching several instances of the same profile on Windows and Unices with
  DBUS now behaves more sensibly.
  - On X11, the taskbar should now flash on new messages for compliant
  window managers.
* Fri Jul 18 2008 prusnak@suse.cz
- updated to 0.12-rc4
  * fix segfault when closing chat window with multiple tabs [bnc#402787]
* Thu Apr 03 2008 prusnak@suse.cz
- updated to 0.12-rc1
  * rewrite to Qt 4 and QCA 2
  * changes too numerous to list
* Thu Jul 19 2007 pcerny@suse.cz
- initial package version 0.10
openSUSE Build Service is sponsored by