File sim.spec of Package sim

#
# spec file for package sim (Version 0.9.4.3)
#
# 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:           sim
BuildRequires:  flex kdelibs3-devel zip
%if %suse_version < 1010
BuildRequires:  openssl-devel
%endif
Version:        0.9.4.3
Release:        152
Summary:        Plugins-based instant messenger for several protocols
License:        GPL v2 or later
Group:          Productivity/Networking/Instant Messenger
Url:            http://sim-im.org
Source0:        sim-%{version}.tar.bz2
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
Patch3:         sim-fix_compiler_warnings.diff

%description
SIM - Multiprotocol Instant Messenger

SIM (Simple Instant Messenger) is a plugins-based open- source instant
messenger that supports various protocols (ICQ, Jabber, AIM, MSN, YIM).
It uses the QT library and works on X11 with optional KDE-support.

SIM has a lot of features, many of them are listed at:
http://sim-icq.sourceforge.net/



Authors:
--------
    Maintainer: Vladimir Shutoff <vovan@shutoff.ru>
    Developemnt: Christian Ehrlicher <Ch.Ehrlicher@gmx.de>
    KAddressBook syncronization and some art: Stanislav Klyuhin <crz@hot.ee>
    
    Bulgarian translation: bugar@mail.bg
    Catalane translation: Pau Bosch i Crespo <paubcrespo@hotmail.com>
    Chinese translation: stacker_liew_200@yahoo.com.tw
    Czech translation: Pavel Rousar <rousarp@fel.cvut.cz>
    Dutch translation: Arend van Beelen jr. <junior@vergeetalles.nl>
    German translation, bug hunting (Win32): Tobias Franz <u15685@hs-harz.de>
    German translation, bug hunting (Linux): Christoph Thielecke <crissi99@gmx.de>
    Greek translation: Theodore Karkoulis <bilbo@debian.gr>
    Hebrew translation: Amir Tal <tal@whatsup.org.il>
    Franch translation: Rom351o VIU-BERGES <apostledemencia@free.fr>
    Italian translation: Lapo Luchini <lapo@lapo.it>
    Polish translation: Rafal Bera <rexx@dione.ids.pl>
    Russian translation: Vladimir Shutoff <vovan@shutoff.ru>
    Sloval translation:  Tom?Ol? <tomas.olah@alert.sk>
    Spain translation: Jorge Lopez <jorgelt@terra.es>
    Swabian translation: Robert Scheck <sim@robert-scheck.de>
    Turkish translation: Ismail Donmez <voidcartman@yahoo.com>
    Ukranian translation: Ivan O.Krutyholova <ivan@city.gov.te.ua>

%prep
%setup -q
%patch3

%build
. /etc/opt/kde3/common_options
%if "%_lib" == "lib64"
./configure $configkde --enable-libsuffix=64 --disable-final
%else
./configure $configkde --disable-final
%endif
make %{?jobs:-j %jobs}

%install
. /etc/opt/kde3/common_options
make DESTDIR=$RPM_BUILD_ROOT $INSTALL_TARGET
%if %suse_version > 1000
%suse_update_desktop_file -G "Instant Messenger" %name Network InstantMessaging
%else
%suse_update_desktop_file %name Network InstantMessaging
%endif
%find_lang %name
kde_post_install
rm $RPM_BUILD_ROOT/opt/kde3/share/mimelnk/application/x-icq.desktop
cd $RPM_BUILD_ROOT/opt/kde3/%_lib/sim/
find . -name \*.la | xargs perl -pi -w -e 's,-L/usr/src/packages/BUILD/sim-%{version}/sim/.libs,,g;'

%clean
rm -rf $RPM_BUILD_ROOT

%files -f %name.lang
%defattr(-,root,root)
%doc COPYING AUTHORS AUTHORS.sim README
/opt/kde3/bin/sim
/opt/kde3/bin/simctrl
/opt/kde3/%_lib/libsim.la
/opt/kde3/%_lib/libsim.so
/opt/kde3/%_lib/libsim.so.*
/opt/kde3/%_lib/sim
/opt/kde3/share/applications/kde/sim.desktop
/opt/kde3/share/apps/sim
/opt/kde3/share/icons/hicolor/*/apps/sim.*
/opt/kde3/share/services/simctrl.desktop

%post
%run_ldconfig

%postun
%run_ldconfig

%changelog
* Mon Oct 15 2007 schwab@suse.de
- Fix specfile.
* Sun Aug 19 2007 stbinner@suse.de
- fix build on 64bit and 10.0
* Sat Aug 04 2007 stbinner@suse.de
- update to version 0.9.4.3:
  * almost 3 years newer version, please see ChangeLog
* Fri Mar 30 2007 ssommer@suse.de
- add flex to BuildRequires
* Tue Jan 23 2007 stbinner@suse.de
- fix build for < 10.1
* Tue Jan 09 2007 dkukawka@suse.de
- Added patch for fix some compiler warnings, which prevent build
  the package for STABLE
* Wed Jan 25 2006 mls@suse.de
- converted neededforbuild to BuildRequires
* Mon Dec 12 2005 hmacht@suse.de
- add -fno-strict-aliasing
* Thu Nov 03 2005 dmueller@suse.de
- don't build as root
* Tue May 03 2005 mmj@suse.de
- Fix for gcc4
* Thu Feb 17 2005 adrian@suse.de
- menu entry move to xdg dir
* Fri Nov 26 2004 adrian@suse.de
- add %%suse_update_desktop_file
* Fri Oct 29 2004 ro@suse.de
- clean specfile
* Thu Oct 28 2004 hmacht@suse.de
- Initial checkin of new icq-client  sim