File scim-pinyin.spec of Package scim-pinyin
#
# spec file for package scim-pinyin (Version 0.5.91.20060705)
#
# 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: scim-pinyin
BuildRequires: gtk2-devel kdelibs3-devel scim-devel skim
%if %suse_version < 1010
BuildRequires: unsermake
%endif
Version: 0.5.91.20060705
Release: 265
License: GPL v2 or later
Group: System/I18n/Chinese
AutoReqProv: on
Provides: locale(scim:zh)
PreReq: gconf2 libxml2 orbit2 glib2
Obsoletes: scim-chinese
Provides: scim-chinese
Url: http://www.scim-im.org/
# CVS repository:
# cvs -d:pserver:anonymous@scim.cvs.sourceforge.net:/cvsroot/scim login
# cvs -z3 -d:pserver:anonymous@scim.cvs.sourceforge.net:/cvsroot/scim co scim-pinyin
Source0: scim-pinyin-0.5.91.20060705.tar.bz2
Patch0: gcc4.patch
Patch1: build-fix.patch
Patch2: missing-includes.patch
Patch3: scim-pinyin-0.5.91-fix-load.patch
Patch4: scim-pinyin-0.5.91-save-in-temp.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Summary: Intelligent Pinyin input module for Smart Chinese/Common Input Method platform
%description
Intelligent Pinyin input module for Smart Chinese/Common Input Method
platform
Authors:
--------
James Su <suzhe@tsinghua.org.cn>
%package -n scim-pinyin-skim
License: GPL v2 or later
Summary: skim setup module for scim-pinyin
Group: System/I18n/Chinese
Requires: %{name} = %{version}
Provides: locale(skim:zh)
%description -n scim-pinyin-skim
skim setup module for scim-pinyin
Authors:
--------
James Su <suzhe@tsinghua.org.cn>
%prep
%define scim_binary_version 1.4.0
%setup -q -n %{name}-%{version}
#%patch0 -p1
%patch1 -p1
%patch2 -p1
%patch3 -p1
%patch4 -p1
%build
./bootstrap
#libtoolize --force
#autoreconf -I /opt/gnome/share/aclocal --force --install --verbose
export QTDIR=/usr/lib/qt3
export KDEDIR=/opt/kde3
export CFLAGS="$RPM_OPT_FLAGS"
export CXXFLAGS="$RPM_OPT_FLAGS"
./configure --prefix=/usr \
--sysconfdir=%{_sysconfdir} \
--libdir=%{_libdir} \
--disable-static \
--disable-schemas-install \
--with-gconf-schema-file-dir=/etc/opt/gnome/gconf/schemas \
--enable-debug
make
unsermake -C skim
%install
export QTDIR=/usr/lib/qt3
export KDEDIR=/opt/kde3
export GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL=1
make DESTDIR=${RPM_BUILD_ROOT} install
unsermake -C skim DESTDIR=${RPM_BUILD_ROOT} install
unset GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL
rm -f $RPM_BUILD_ROOT%{_libdir}/scim-1.0/%{scim_binary_version}/*/*.la
%find_lang scim-pinyin
%find_lang skim-scim-pinyin
%clean
# %post
# export GCONF_CONFIG_SOURCE=`opt/gnome/bin/gconftool-2 --get-default-source`
# opt/gnome/bin/gconftool-2 --makefile-install-rule etc/opt/gnome/gconf/schemas/scim-chinese.schemas >/dev/null
%files -f scim-pinyin.lang
%defattr(-, root, root)
%doc AUTHORS COPYING NEWS README ChangeLog
#%config %{_sysconfdir}/opt/gnome/gconf/schemas/*
%dir %{_libdir}/scim-1.0/
%dir %{_libdir}/scim-1.0/%{scim_binary_version}/
%dir %{_libdir}/scim-1.0/%{scim_binary_version}/IMEngine/
%{_libdir}/scim-1.0/%{scim_binary_version}/IMEngine/pinyin.so
%dir %{_libdir}/scim-1.0/%{scim_binary_version}/SetupUI/
%{_libdir}/scim-1.0/%{scim_binary_version}/SetupUI/pinyin-imengine-setup.so
%dir %{_datadir}/scim/
%dir %{_datadir}/scim/pinyin/
%{_datadir}/scim/pinyin/*
%dir %{_datadir}/scim/icons/
%{_datadir}/scim/icons/smart-pinyin.png
%files -n scim-pinyin-skim -f skim-scim-pinyin.lang
%defattr(-, root, root)
%dir /opt/kde3/share/apps/skim/
/opt/kde3/share/apps/skim/*
/opt/kde3/share/config.kcfg/*
/opt/kde3/share/services/*
/opt/kde3/%{_lib}/kde3/*
%changelog
* Fri Jan 11 2008 pwu@suse.de
- fix bug #352838, recover from corrupt scim-pinyin data files.
* Thu Nov 08 2007 mfabian@suse.de
- add missing includes to fix build with gcc 4.3.0.
* Tue Apr 24 2007 mfabian@suse.de
- add "BuildRequires: unsermake" for SUSE Linux 10.0.
* Wed Oct 11 2006 mfabian@suse.de
- fix to build with scim 1.4.5.
* Wed Jul 05 2006 mfabian@suse.de
- update to 0.5.91.20060705
(fix-include-hints.diff is now included).
- fix build for autoconf 2.60.
* Thu Feb 23 2006 mfabian@suse.de
- add "Provides: locale(skim:zh)" to scim-pinyin-skim sub-
package.
* Thu Feb 23 2006 mfabian@suse.de
- add "Provides: locale(scim:zh)".
* Wed Jan 25 2006 mls@suse.de
- converted neededforbuild to BuildRequires
* Thu Oct 13 2005 stbinner@suse.de
- remove unintended char in patch
* Wed Oct 12 2005 stbinner@suse.de
- fix wrong include hints for compilation against Qt 3.3.5
* Mon Aug 15 2005 mfabian@suse.de
- update to scim-pinyin-0.5.91.20050815 to fix a bug which
makes it impossible to switch beteen input modes.
* Thu Aug 11 2005 mfabian@suse.de
- update to current cvs HEAD and remove workaround for wrong prefix
from .spec file.
* Wed Aug 10 2005 mfabian@suse.de
- update to 0.5.90.20050808.
- new sub-package scim-pinyin-skim.
* Thu Aug 04 2005 mfabian@suse.de
- Bugzilla #97962: add configure option "--enable-debug" to
the .spec file.
* Tue Aug 02 2005 aj@suse.de
- Adjust neededforbuild.
* Thu Jul 28 2005 mfabian@suse.de
- use "make install" instead of "make install-strip" otherwise
the scim-pinyin-debuginfo package will be empty.
- use RPM_OPT_FLAGS.
* Fri Apr 15 2005 mfabian@suse.de
- make it build with gcc4.
* Tue Feb 15 2005 mfabian@suse.de
- update to 0.5.0.20050215 (Italian translations are available
now).
* Mon Jan 10 2005 mfabian@suse.de
- update to 0.5.0.20050110 (during this update, the package
has been renamed from scim-chinese to scim-pinyin).
* Fri Aug 13 2004 mfabian@suse.de
- update to 0.4.1.
* Thu Aug 05 2004 mfabian@suse.de
- update to 0.4.0.
* Tue Apr 27 2004 mfabian@suse.de
- create SuSE package (version 0.3.0).
* Mon Apr 26 2004 James Su <suzhe@tsinghua.org.cn>
- change the license to GPL.
* Thu Jun 19 2003 James Su <suzhe@tsinghua.org.cn>
- updated to include setup module.
* Thu May 22 2003 James Su <suzhe@tsinghua.org.cn>
- upto v0.2.1
* Mon Mar 31 2003 James Su <suzhe@tsinghua.org.cn>
- upto v0.2.0
* Sun Jul 07 2002 James Su <suzhe@tsinghua.org.cn>
- first public release of SCIM-chinese.