commit 79155a7f8abe3bf83098f0e69301509cbd1f943724328b7504a7e6c886c73c95 Author: OBS User mrdocs Date: Thu Jun 2 05:40:09 2011 +0000 Accepting request 72459 from home:stecue Hi, I haven't known how to use IRC now..So just modifying the packages by comparing them with others...and most of the warnings are gone now. Are they better now? Thanks! OBS-URL: https://build.opensuse.org/request/show/72459 OBS-URL: https://build.opensuse.org/package/show/M17N/fcitx?expand=0&rev=1 diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/fcitx-4.0.1.tar.bz2 b/fcitx-4.0.1.tar.bz2 new file mode 100644 index 0000000..2bfdfd1 --- /dev/null +++ b/fcitx-4.0.1.tar.bz2 @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:6f6bb1584c5573016884626085baf25ead2b37b014d127c99f12e19425a45bbf +size 6726361 diff --git a/fcitx-configtool.desktop b/fcitx-configtool.desktop new file mode 100644 index 0000000..c9268a6 --- /dev/null +++ b/fcitx-configtool.desktop @@ -0,0 +1,13 @@ +[Desktop Entry] +X-SuSE-translate=true +Exec=fcitx-config +GenericName=Fcitx Configuration Tool +GenericName[zh_CN]=Fcitx配置工具 +Comment=Fcitx GUI Config Tool +Comment[zh_CN]=Fcitx图形化配置工具 +Name=Fcitx Config Tool +Name[zh_CN]=Fcitx配置工具 +Icon=fcitx +StartupNotify=true +Type=Application +Categories=Settings;Utility;X-SuSE-DesktopUtility; diff --git a/fcitx.changes b/fcitx.changes new file mode 100644 index 0000000..a2f10bc --- /dev/null +++ b/fcitx.changes @@ -0,0 +1,16 @@ +------------------------------------------------------------------- +* Tue May 17 00:00:00 UTC 2011 stecue +- upstream version 4.0.1. +- Add xim dependency for openSUSE 11.4 +------------------------------------------------------------------- +* Sat Sep 18 00:00:00 UTC 2010 CSSlayer +- Make it works with newest +------------------------------------------------------------------- +* Fri Jun 11 00:00:00 UTC 2004 xyb +- Add data/tables.conf +------------------------------------------------------------------- +* Mon Feb 2 00:00:00 UTC 2004 xyb +- Fix spec bug(patch by hamigua). +------------------------------------------------------------------- +* Thu Jan 15 00:00:00 UTC 2004 xyb +- skeleton RPM diff --git a/fcitx.desktop b/fcitx.desktop new file mode 100644 index 0000000..2bb58dc --- /dev/null +++ b/fcitx.desktop @@ -0,0 +1,18 @@ +[Desktop Entry] +X-SuSE-translate=true +Encoding=UTF-8 +Name=Fcitx +Name[zh_CN]=Fcitx +GenericName=Free Chinese Input Toy of X +GenericName[zh_CN]=Free Chinese Input Toy of X +Comment=Chinese Input Method +Comment[zh_CN]=中文输入法 +Exec=fcitx +Icon=fcitx +Terminal=false +Type=Application +Categories=Settings;Utility;X-SuSE-DesktopUtility; +X-GNOME-Autostart-Phase=Applications +X-GNOME-AutoRestart=false +X-GNOME-Autostart-Notify=true +X-KDE-autostart-after=panel diff --git a/fcitx.spec b/fcitx.spec new file mode 100644 index 0000000..c13393e --- /dev/null +++ b/fcitx.spec @@ -0,0 +1,118 @@ +%define name fcitx +%define version 4.0.1 +%define release 1 +%define prefix /usr +%define fcitxbindir /usr/bin + +Name: %{name} +Version: %{version} +Release: %{release} +Summary: Free Chinese Input Toy for X (XIM) +URL: http://www.fcitx.org/ +Group: System/I18n/Chinese +License: GPL +Source0: %{name}-%{version}.tar.bz2 +Source1: %{name}.desktop +Source2: %{name}-configtool.desktop +BuildRequires: cairo-devel +BuildRequires: pango-devel +%if 0%{?suse_version} +#patch: catagories.patch +BuildRequires: dbus-1-devel +%else +BuildRequires: dbus-devel +%endif + +%if 0%{?suse_version} >= 1140 +Requires: gtk2-immodule-xim +#Obsoletes: gtk2-immodule-amharic +#Obsoletes: gtk2-immodule-thai +#Obsoletes: gtk2-immodule-vietnamese +#Obsoletes: gtk2-immodules-tigrigna +#Obsoletes: gtk2-immodule-inuktitut +#Obsoletes: gtk2-immodule-multipress +%endif +BuildRequires: intltool +BuildRequires: libtool +#BuildRequires: wget +BuildRequires: fdupes +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release} + +%description +FCITX is a simplified Chinese input server. It supports Tables, +Pinyin and QuWei input method. It's small and fast. + +%description -l zh_CN +Fcitx──小企鹅输入法即Free Chinese Input Toy for X,它是一个以GPL方式 +发布的、基于XIM的简体中文输入法(即原来的G五笔),包括码表、全拼拼音、双拼 +拼音输入法,并可运行在Linux及其它类UNIX平台上。 +Designed by Yuking + +%package devel +Summary: Development files for %{name} +Group: Development/Libraries/C and C++ +%if 0%{?suse_version} +Requires: xorg-x11-libX11-devel +%else +Requires: libX11-devel +%endif + +%description devel +The %{name}-devel package includes the header files for the FCITX package. + +%prep +%setup -q + +%build +%configure \ + --enable-dbus \ + --enable-tray +make + +%install + +make DESTDIR=$RPM_BUILD_ROOT install-strip +install -m 644 %{SOURCE1} %{buildroot}%{_datadir}/applications/ +install -m 644 %{SOURCE2} %{buildroot}%{_datadir}/applications/ +rm -f $RPM_BUILD_ROOT%{_libdir}/libfcitx-config.la + +%find_lang %{name} + +%fdupes -s %{buildroot} + +%clean +[ ${RPM_BUILD_ROOT} != "/" ] && rm -rf ${RPM_BUILD_ROOT} + +%files -f %{name}.lang +%defattr(-,root,root,-) +%doc AUTHORS ChangeLog COPYING INSTALL README +%doc %{_datadir}/doc/fcitx/ +%dir %{_datadir}/fcitx +%dir %{_datadir}/fcitx/data +%dir %{_datadir}/fcitx/skin +%{_bindir}/* +%{_datadir}/applications/fcitx* +%{_datadir}/pixmaps/* +%{_datadir}/fcitx/data/* +%{_datadir}/fcitx/skin/* +%{_libdir}/libfcitx* +%{_mandir}/man1/createPYMB.1.gz +%{_mandir}/man1/fcitx-remote.1.gz +%{_mandir}/man1/fcitx.1.gz +%{_mandir}/man1/mb2org.1.gz +%{_mandir}/man1/mb2txt.1.gz +%{_mandir}/man1/readPYBase.1.gz +%{_mandir}/man1/readPYMB.1.gz +%{_mandir}/man1/scel2org.1.gz +%{_mandir}/man1/txt2mb.1.gz + +%post -p /sbin/ldconfig + +%postun -p /sbin/ldconfig + +%files devel +%defattr(-,root,root,-) +%{_libdir}/pkgconfig/*.pc +%{_includedir}/* + +%changelog