scim-pinyin.spec 2.67 KB
Newer Older
1
%define nam             scim-pinyin
2 3
%define ver             0.5.91
%define skim            1
4 5 6 7 8 9 10
%define rel             1

Summary:        Smart Pinyin IMEngine for Smart Common Input Method platform
Name:           %{nam}
Version:        %{ver}
Release:        %{rel}
License:        GPL
11
Group:          System/I18n/Chinese
12 13 14 15 16 17 18 19
URL:            http://sourceforge.net:/projects/scim
BuildRoot:      %{_tmppath}/%{name}-%{version}-root

Source0:        %{name}-%{version}.tar.gz
#NoSource:	0

PreReq:         /sbin/ldconfig, /bin/sh

20 21
Requires:	scim >= 1.2.0
BuildRequires:  scim-devel >= 1.2.0
22 23 24 25

Requires:	gtk2 >= 2.0.0
BuildRequires:	gtk2-devel >= 2.0.0

26 27 28 29
%if %{skim}
BuildRequires:	skim-devel >= 1.2.0
%endif

30 31 32
%description
This package includes Simplified Chinese Smart Pinyin IMEngine for SCIM.

33 34 35 36 37 38 39 40 41 42 43
%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

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
%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
70
./configure --prefix=%{_prefix} --sysconfdir=%{_sysconfdir} --disable-static
71 72 73 74 75 76

make 

%install
[ -n "$RPM_BUILD_ROOT" -a "$RPM_BUILD_ROOT" != / ] && rm -rf $RPM_BUILD_ROOT

77
make DESTDIR=${RPM_BUILD_ROOT} install
78 79 80 81

rm -f $RPM_BUILD_ROOT//usr/lib/scim-1.0/IMEngine/*.{a,la}
rm -f $RPM_BUILD_ROOT//usr/lib/scim-1.0/SetupUI/*.{a,la}

82 83 84 85
%if %{skim}
rm -f $RPM_BUILD_ROOT//opt/kde3/lib/kde*/*.{a,la}
%endif

86 87 88 89 90 91 92 93 94 95 96
%clean
[ -n "$RPM_BUILD_ROOT" -a "$RPM_BUILD_ROOT" != / ] && rm -rf $RPM_BUILD_ROOT

%files
%defattr(-, root, root)
%doc AUTHORS COPYING NEWS README ChangeLog
/usr/lib/scim-1.0/IMEngine/pinyin.so
/usr/lib/scim-1.0/SetupUI/pinyin-imengine-setup.so
/usr/share/scim/pinyin/*
/usr/share/scim/icons/smart-pinyin.png
%{_datadir}/locale/*/LC_MESSAGES/scim-pinyin.mo
97 98 99 100 101 102 103 104 105 106 107

%if %{skim}
%files skim
%defattr(-, root, root)
/opt/kde3/lib/kde*/*.so
/opt/kde3/share/apps/skim/pics/smart-pinyin.png
/opt/kde3/share/config.kcfg/smartpinyin.kcfg
/opt/kde3/share/locale/*/LC_MESSAGES/skim-scim-pinyin.mo
/opt/kde3/share/services/skimconfiguredialog/skimplugin_scim_smartpinyin_config.desktop
%endif