File scim-qtimm.spec of Package scim-qtimm

#
# spec file for package scim-qtimm (Version 0.9.4)
#
# Copyright (c) 2008 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:           scim-qtimm
BuildRequires:  kdelibs3-devel scim-devel skim
License:        GPL v2 or later
Group:          System/I18n/Chinese
AutoReqProv:    on
Supplements:    packageand(scim:qt3)
Summary:        Qt input module plugin for SCIM
Version:        0.9.4
Release:        269
Url:            http://www.scim-im.org/
# CVS repository:
# cvs -d:pserver:anonymous@cvs.sourceforge.net:/cvsroot/scim login 
# cvs -z3 -d:pserver:anonymous@cvs.sourceforge.net:/cvsroot/scim co scim-qtimm
Source0:        scim-qtimm-%version.tar.bz2
Patch1:         disable-debug.diff
Patch3:         bugzilla-116220-keyboard-layout.patch
Patch4:         bugzilla-206547-scim-qtimm-crash.patch
Patch5:         fix-build.patch
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
Qt input module plugin for SCIM



Authors:
--------
    Liu Cougar <liuspider@users.sourceforge.net>

%prep
%setup -q
%patch1 -p1
%patch3 -p1
%patch4 -p1
%patch5 -p1
chmod -R u+w .
rm -f config.cache
rm -f configure
. /etc/opt/kde3/common_options
%if %suse_version > 1020
update_admin 
%else
update_admin --no-unsermake
%endif

%build
. /etc/opt/kde3/common_options
export QTDIR=/usr/lib/qt3
export KDEDIR=/opt/kde3
./configure $configkde \
%ifarch x86_64 ppc64 s309x
            --enable-libsuffix=64 \
%endif
            --enable-tests \
	    --enable-scim-debug 
make

%install
. /etc/opt/kde3/common_options
export QTDIR=/usr/lib/qt3
make DESTDIR=$RPM_BUILD_ROOT $INSTALL_TARGET
mkdir -p $RPM_BUILD_ROOT/%{_bindir}
install -m 755 tests/edittest $RPM_BUILD_ROOT/%{_bindir}
%find_lang %{name}
pushd $RPM_BUILD_ROOT/usr/lib/qt3/plugins/inputmethods/
    if [ %_lib = lib64 ]; then
	mv libqscim.so libqscim.lib64.so
	mv libqscim.la libqscim.lib64.la
    else
    	:
    fi
popd
rm  $RPM_BUILD_ROOT/usr/lib/qt3/plugins/inputmethods/*la

%clean
#rm -rf $RPM_BUILD_ROOT

%files -f %{name}.lang 
%defattr(-,root,root)
%doc AUTHORS ChangeLog COPYING README TODO NEWS THANKS
%dir /usr/lib/qt3/plugins/inputmethods/
/usr/lib/qt3/plugins/inputmethods/*.so
%{_bindir}/*

%changelog
* Tue Nov 25 2008 sbrabec@suse.cz
- Supplement qt3-32bit/qt3-64bit in baselibs.conf (bnc#354164).
* Thu Apr 10 2008 ro@suse.de
- added baselibs.conf file to build xxbit packages
  for multilib support
* Mon Jan 21 2008 coolo@suse.de
- don't try to be too greedy and only install when scim and qt3
  is installed, not again per locale
* Tue Jan 15 2008 mfabian@suse.de
- add "Supplements: packageand(scim:qt3)" to install this package
  automatically when scim *and* qt3 are installed.
* Wed Nov 21 2007 mfabian@suse.de
- fix build for openSUSE > 10.3 (gcc 4.3 and autoconf problem).
* Fri Jan 26 2007 mfabian@suse.de
- fix build for openSUSE > 10.2.
* Fri Dec 22 2006 zsu@suse.de
- Bugzilla #206547: Fix crash of many kde applications caused by
  scim-qtimm when closing/opening/switching application windows.
* Tue Feb 28 2006 mfabian@suse.de
- Bugzilla #153791: use ';' in Provides locale(...).
* Thu Feb 23 2006 mfabian@suse.de
- add "Provides: locale(qt3:ja,ko,zh)".
* Wed Jan 25 2006 mls@suse.de
- converted neededforbuild to BuildRequires
* Fri Jan 13 2006 zsu@suse.de
- update to 0.9.4.
* Mon Sep 12 2005 mfabian@suse.de
- Bugzilla #116220: Fix a keyboard layout related bug in scim-qtimm
  (patch by the author (Zhe Su <zsu@novell.com>).
* Mon Aug 15 2005 mfabian@suse.de
- apply a patch by the author (Zhe Su <zsu@novell.com>) to fix
  a focus ic handling problem.
* Thu Aug 04 2005 mfabian@suse.de
- Bugzilla #97962: add configure option "--enable-scim-debug" to
  the .spec file.
* Mon Jul 25 2005 mfabian@suse.de
- update to 0.9.3.
* Thu Jul 07 2005 mfabian@suse.de
- update to 0.9.2.20050707.
* Mon Jul 04 2005 mfabian@suse.de
- update to 0.9.1.20050704.
* Thu Jun 23 2005 mfabian@suse.de
- update to 0.9.1.20050623 (updated German translation).
* Tue Jun 21 2005 mfabian@suse.de
- update to version 0.9.1.
* Tue Jun 07 2005 mfabian@suse.de
- make the test program build again (Thanks to <coolo@suse.de>).
* Mon Jun 06 2005 adrian@suse.de
- update to version 0.9.0
* Thu Mar 17 2005 adrian@suse.de
- apply fix for using SCIM with Numlock On (by Zhe Su #73067)
* Tue Mar 01 2005 mfabian@suse.de
- make the skim support build.
* Mon Feb 28 2005 mfabian@suse.de
- update to 0.8.5.
* Tue Feb 15 2005 mfabian@suse.de
- update to 0.8.0.20050215 (CVS HEAD).
- build and install edittest
- mv to libqscim.lib64.so on platforms where %%_lib = lib64.
* Fri Feb 11 2005 adrian@suse.de
- update to version 0.8.0 (1.0.0 did never exist yet)
- use kde build system
- disable debug
* Tue Feb 08 2005 mfabian@suse.de
- update to 1.0.0.20050208 to make it build with scim-1.1.3.
* Mon Jan 24 2005 mfabian@suse.de
- update to 1.0.0.20050124.
* Mon Jan 10 2005 mfabian@suse.de
- update to 1.0.0.20050110 (has been ported to scim 1.1.1).
* Wed Oct 20 2004 mfabian@suse.de
- update to 0.7.5svn94 which fixes Bugzilla #46646.
* Tue Oct 12 2004 mfabian@suse.de
- Bugzilla #47019: (SCIM should commit the preedit string before
  switching off): partly fixed by updating scim-qtimm to
  0.7.5svn90. Now scim-qtimm forces a commit when switching off
  but scim still remembers the current preedit string and inserts
  it again when switching it on the next time.
* Wed Oct 06 2004 mfabian@suse.de
- Bugzilla #46670: make scim usable remotely via QT_IM_MODULE.
* Fri Sep 24 2004 adrian@suse.de
- fix extension for plugins on lib64 systems
- remove unneeded %%post/%%pre scripts
- use correct QTDIR (no lib64)
* Thu Sep 23 2004 adrian@suse.de
- disable debug output
* Mon Sep 20 2004 mfabian@suse.de
- update to 0.7.5 release
  - fixed crash bug when change from XIM to scim immodule in
  the 'select input method' menu.
- build fix for qt-x11-immodule-unified-qt3.3.3-20040910.diff
  now included.
* Fri Sep 10 2004 mfabian@suse.de
- fix build with qt-x11-immodule-unified-qt3.3.3-20040910.diff.
* Thu Sep 09 2004 mfabian@suse.de
- update to 0.7svn81 (some bug fixes).
  (my German translation is now included)
* Mon Sep 06 2004 mfabian@suse.de
- update to 0.7svn77 (makes it work with qtimmodule patch 20040819)
- add German translation.
* Sat Sep 04 2004 mfabian@suse.de
- new package: scim-qtimm, version 0.7.
openSUSE Build Service is sponsored by