1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107
|
%define nam @PACKAGE@
%define ver @VERSION@
%define skim @SCIM_PINYIN_ENABLE_SKIM_SUPPORT@
%define rel 1
Summary: Smart Pinyin IMEngine for Smart Common Input Method platform
Name: %{nam}
Version: %{ver}
Release: %{rel}
License: GPL
Group: System/I18n/Chinese
URL: http://sourceforge.net:/projects/scim
BuildRoot: %{_tmppath}/%{name}-%{version}-root
Source0: %{name}-%{version}.tar.gz
#NoSource: 0
PreReq: /sbin/ldconfig, /bin/sh
Requires: scim >= @SCIM_VERSION@
BuildRequires: scim-devel >= @SCIM_VERSION@
Requires: gtk2 >= 2.0.0
BuildRequires: gtk2-devel >= 2.0.0
%if %{skim}
BuildRequires: skim-devel >= 1.2.0
%endif
%description
This package includes Simplified Chinese Smart Pinyin IMEngine for SCIM.
%if %{skim}
%package skim
Summary: Skim support for Smart Pinyin IMEngine
Group: System/I18n/Chinese
Requires: %{name} = %{version}
Requires: skim >= 1.2.0
%description skim
This package includes Skim support for Simplified Chinese Smart Pinyin IMEngine.
%endif
%changelog
* Thu Jan 06 2005 James Su <suzhe@tsinghua.org.cn>
- Change package name to scim-pinyin.
* 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 7 2002 James Su <suzhe@tsinghua.org.cn>
- first public release of SCIM-chinese.
#--------------------------------------------------
%prep
%setup -n %{name}-%{version}
%build
./configure --prefix=%{_prefix} --sysconfdir=%{_sysconfdir} --disable-static
make
%install
[ -n "$RPM_BUILD_ROOT" -a "$RPM_BUILD_ROOT" != / ] && rm -rf $RPM_BUILD_ROOT
make DESTDIR=${RPM_BUILD_ROOT} install
rm -f $RPM_BUILD_ROOT/@SCIM_MODULEDIR@/IMEngine/*.{a,la}
rm -f $RPM_BUILD_ROOT/@SCIM_MODULEDIR@/SetupUI/*.{a,la}
%if %{skim}
rm -f $RPM_BUILD_ROOT/@KDEDIR@/lib/kde*/*.{a,la}
%endif
%clean
[ -n "$RPM_BUILD_ROOT" -a "$RPM_BUILD_ROOT" != / ] && rm -rf $RPM_BUILD_ROOT
%files
%defattr(-, root, root)
%doc AUTHORS COPYING NEWS README ChangeLog
@SCIM_MODULEDIR@/IMEngine/pinyin.so
@SCIM_MODULEDIR@/SetupUI/pinyin-imengine-setup.so
@SCIM_DATADIR@/pinyin/*
@SCIM_ICONDIR@/smart-pinyin.png
%{_datadir}/locale/*/LC_MESSAGES/scim-pinyin.mo
%if %{skim}
%files skim
%defattr(-, root, root)
@KDEDIR@/lib/kde*/*.so
@KDEDIR@/share/apps/skim/pics/smart-pinyin.png
@KDEDIR@/share/config.kcfg/smartpinyin.kcfg
@KDEDIR@/share/locale/*/LC_MESSAGES/skim-scim-pinyin.mo
@KDEDIR@/share/services/skimconfiguredialog/skimplugin_scim_smartpinyin_config.desktop
%endif
|