2010-04-18 02:06:31 +00:00
|
|
|
%define _xinputconf %{_sysconfdir}/X11/xinit/xinput.d/fcitx.conf
|
|
|
|
|
2010-05-16 02:25:09 +00:00
|
|
|
Name: fcitx
|
2010-07-20 02:56:31 +00:00
|
|
|
Summary: Free Chinese Input Toy for X (XIM)
|
2010-12-17 11:58:48 +00:00
|
|
|
Version: 4.0.1
|
2011-08-01 18:03:05 +00:00
|
|
|
Release: 4%{?dist}
|
2010-07-20 02:56:31 +00:00
|
|
|
License: GPLv2+
|
2010-11-19 12:47:05 +00:00
|
|
|
Group: User Interface/Desktops
|
2010-07-20 02:56:31 +00:00
|
|
|
URL: http://code.google.com/p/%{name}/
|
2010-11-19 12:47:05 +00:00
|
|
|
Source0: http://%{name}.googlecode.com/files/%{name}-%{version}_all.tar.gz
|
2010-07-20 02:56:31 +00:00
|
|
|
Source1: xinput-%{name}
|
2011-07-02 16:56:08 +00:00
|
|
|
Patch0: gnome3-tray-fix.patch
|
|
|
|
Patch1: gnome3-mainwindow-pos-walkaround.patch
|
|
|
|
# These two patches are provide by Weng Xuetian, who is fcitx's author.
|
2010-11-19 12:47:05 +00:00
|
|
|
BuildRequires: pango-devel dbus-devel
|
2011-07-02 16:56:08 +00:00
|
|
|
BuildRequires: wget intltool chrpath sysconftool
|
|
|
|
BuildRequires: automake, autoconf, libtool
|
2011-08-01 18:03:05 +00:00
|
|
|
Requires: %{name}-data = %{version}-%{release}
|
|
|
|
Requires: imsettings
|
2010-12-17 11:58:48 +00:00
|
|
|
Requires(post): %{_sbindir}/alternatives
|
2010-04-18 02:06:31 +00:00
|
|
|
Requires(postun): %{_sbindir}/alternatives
|
2011-08-01 18:06:39 +00:00
|
|
|
Provides: %{name}-libs = %{version}-%{release}
|
2010-04-18 02:06:31 +00:00
|
|
|
|
|
|
|
%description
|
2010-11-19 12:47:05 +00:00
|
|
|
FCITX(Free Chinese Input Toy of X) is a collection of Simplified Chinese
|
2010-04-18 02:06:31 +00:00
|
|
|
input methods for Linux. It supports Pinyin, QuWei and Table-based input
|
|
|
|
methods. It's small and fast.
|
|
|
|
|
2011-08-01 18:03:05 +00:00
|
|
|
%package data
|
|
|
|
Summary: Data files of FCITX
|
2010-11-19 12:47:05 +00:00
|
|
|
Group: System Environment/Libraries
|
|
|
|
|
2011-08-01 18:03:05 +00:00
|
|
|
%description data
|
|
|
|
The %{name}-data package provides shared libraries for FCITX.
|
2010-11-19 12:47:05 +00:00
|
|
|
|
|
|
|
%package devel
|
|
|
|
Summary: Development files for FCITX
|
|
|
|
Group: Development/Libraries
|
|
|
|
Requires: %{name}-libs = %{version}-%{release}
|
|
|
|
Requires: libX11-devel
|
|
|
|
|
|
|
|
%description devel
|
|
|
|
The %{name}-devel package contains libraries and header files necessary for
|
|
|
|
developing programs using FCITX libraries.
|
2010-04-18 02:06:31 +00:00
|
|
|
|
2011-08-01 18:03:05 +00:00
|
|
|
%package table-bingchan
|
|
|
|
Summary: Bingchan table of FCITX
|
|
|
|
Group: System Environment/Libraries
|
|
|
|
BuildArch: noarch
|
|
|
|
|
|
|
|
%description table-bingchan
|
|
|
|
The %{name}-table-bingchan package provides Bingchan table for FCITX.
|
|
|
|
|
|
|
|
%package table-cangjie
|
|
|
|
Summary: Cangjie table of FCITX
|
|
|
|
Group: System Environment/Libraries
|
|
|
|
BuildArch: noarch
|
|
|
|
|
|
|
|
%description table-cangjie
|
|
|
|
The %{name}-table-bingchan package provides Cangjie table for FCITX.
|
|
|
|
|
|
|
|
%package table-dianbaoma
|
|
|
|
Summary: Dianbaoma table of FCITX
|
|
|
|
Group: System Environment/Libraries
|
|
|
|
BuildArch: noarch
|
|
|
|
|
|
|
|
%description table-dianbaoma
|
|
|
|
The %{name}-table-dianbaoma package provides Dianbaoma table for FCITX.
|
|
|
|
|
|
|
|
%package table-erbi
|
|
|
|
Summary: Erbi table of FCITX
|
|
|
|
Group: System Environment/Libraries
|
|
|
|
BuildArch: noarch
|
|
|
|
|
|
|
|
%description table-erbi
|
|
|
|
The %{name}-table-erbi package provides Erbi table for FCITX.
|
|
|
|
|
|
|
|
%package table-wanfeng
|
|
|
|
Summary: Wanfeng table of FCITX
|
|
|
|
Group: System Environment/Libraries
|
|
|
|
BuildArch: noarch
|
|
|
|
|
|
|
|
%description table-wanfeng
|
|
|
|
The %{name}-table-wanfeng package provides Wanfeng table for FCITX.
|
|
|
|
|
|
|
|
%package table-wbpy
|
|
|
|
Summary: Wubi-pinyin table of FCITX
|
|
|
|
Group: System Environment/Libraries
|
|
|
|
BuildArch: noarch
|
|
|
|
|
|
|
|
%description table-wbpy
|
|
|
|
The %{name}-table-wbpy package provides Wubi-pinyin table for FCITX.
|
|
|
|
|
|
|
|
%package table-wubi
|
|
|
|
Summary: Wubi table of FCITX
|
|
|
|
Group: System Environment/Libraries
|
|
|
|
BuildArch: noarch
|
|
|
|
|
|
|
|
%description table-wubi
|
|
|
|
The %{name}-table-wubi package provides Wubi table for FCITX.
|
|
|
|
|
|
|
|
%package table-ziranma
|
|
|
|
Summary: Ziranma table of FCITX
|
|
|
|
Group: System Environment/Libraries
|
|
|
|
BuildArch: noarch
|
|
|
|
|
|
|
|
%description table-ziranma
|
|
|
|
The %{name}-table-ziranma package provides Ziranma table for FCITX.
|
|
|
|
|
2010-04-18 02:06:31 +00:00
|
|
|
%prep
|
2010-11-19 12:47:05 +00:00
|
|
|
%setup -q
|
2011-07-02 16:56:08 +00:00
|
|
|
%patch0 -p1
|
|
|
|
%patch1 -p1
|
2010-04-18 02:06:31 +00:00
|
|
|
|
|
|
|
%build
|
2011-07-02 16:56:08 +00:00
|
|
|
./autogen.sh
|
2010-11-19 12:47:05 +00:00
|
|
|
%configure --disable-static \
|
|
|
|
--enable-dbus \
|
|
|
|
--enable-tray
|
2010-04-18 02:06:31 +00:00
|
|
|
make %{?_smp_mflags}
|
|
|
|
|
|
|
|
%install
|
|
|
|
make install INSTALL="install -p" DESTDIR=%{buildroot}
|
2010-11-19 12:47:05 +00:00
|
|
|
rm -f %{buildroot}%{_libdir}/*.la
|
2010-04-18 02:06:31 +00:00
|
|
|
|
2010-11-19 13:44:58 +00:00
|
|
|
# remove rpath
|
|
|
|
chrpath --delete %{buildroot}%{_bindir}/{*PYMB,mb2org,fcitx,readPYBase}
|
|
|
|
|
|
|
|
# fix doc path
|
2010-12-17 11:58:48 +00:00
|
|
|
#mkdir __doc
|
|
|
|
#mv %{buildroot}%{_datadir}/%{name}/doc/* __doc
|
|
|
|
#rm -rf %{buildroot}%{_datadir}/%{name}/doc
|
|
|
|
#rm -f __doc/{API.txt,Develop_Readme*,fcitx_trunk.doxyfile}
|
2010-04-18 02:06:31 +00:00
|
|
|
|
|
|
|
# install xinput config file
|
|
|
|
install -pm 644 -D %{SOURCE1} %{buildroot}%{_xinputconf}
|
|
|
|
|
2010-11-19 12:47:05 +00:00
|
|
|
%find_lang %{name}
|
2010-04-18 02:06:31 +00:00
|
|
|
|
|
|
|
%clean
|
|
|
|
rm -rf %{buildroot}
|
|
|
|
|
|
|
|
%post
|
|
|
|
%{_sbindir}/alternatives --install %{_sysconfdir}/X11/xinit/xinputrc xinputrc %{_xinputconf} 55 || :
|
|
|
|
|
|
|
|
%postun
|
|
|
|
if [ "$1" = "0" ]; then
|
|
|
|
%{_sbindir}/alternatives --remove xinputrc %{_xinputconf} || :
|
|
|
|
# if alternative was set to manual, reset to auto
|
|
|
|
[ -L %{_sysconfdir}/alternatives/xinputrc -a "`readlink %{_sysconfdir}/alternatives/xinputrc`" = "%{_xinputconf}" ] && %{_sbindir}/alternatives --auto xinputrc || :
|
|
|
|
fi
|
|
|
|
|
2011-08-01 18:08:31 +00:00
|
|
|
%post -p /sbin/ldconfig
|
2010-11-19 12:47:05 +00:00
|
|
|
|
2011-08-01 18:08:31 +00:00
|
|
|
%postun -p /sbin/ldconfig
|
2010-11-19 12:47:05 +00:00
|
|
|
|
|
|
|
%files -f %{name}.lang
|
2010-04-18 02:06:31 +00:00
|
|
|
%defattr(-,root,root,-)
|
2011-08-01 18:03:05 +00:00
|
|
|
%doc AUTHORS ChangeLog THANKS TODO COPYING
|
2010-12-17 11:58:48 +00:00
|
|
|
#%doc __doc/*
|
2010-04-18 02:06:31 +00:00
|
|
|
%config %{_xinputconf}
|
|
|
|
%{_bindir}/*
|
2010-12-17 11:58:48 +00:00
|
|
|
%{_datadir}/applications/%{name}-configtool.desktop
|
|
|
|
%{_datadir}/applications/%{name}.desktop
|
|
|
|
%{_docdir}/%{name}/
|
2011-08-01 18:03:05 +00:00
|
|
|
%{_libdir}/libfcitx*.so.*
|
2010-12-17 11:58:48 +00:00
|
|
|
%{_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
|
|
|
|
|
2010-04-18 02:06:31 +00:00
|
|
|
|
2011-08-01 18:03:05 +00:00
|
|
|
%files data
|
2010-11-19 12:47:05 +00:00
|
|
|
%defattr(-,root,root,-)
|
2011-08-01 18:03:05 +00:00
|
|
|
%doc
|
|
|
|
%{_datadir}/%{name}/skin/*
|
|
|
|
%{_datadir}/pixmaps/*
|
|
|
|
%{_datadir}/%{name}/data/AutoEng.dat
|
|
|
|
%{_datadir}/%{name}/data/addon.desc
|
|
|
|
%{_datadir}/%{name}/data/config.desc
|
|
|
|
%{_datadir}/%{name}/data/gbks2t.tab
|
|
|
|
%{_datadir}/%{name}/data/profile.desc
|
|
|
|
%{_datadir}/%{name}/data/punc.mb
|
|
|
|
%{_datadir}/%{name}/data/pySym.mb
|
|
|
|
%{_datadir}/%{name}/data/pybase.mb
|
|
|
|
%{_datadir}/%{name}/data/pyphrase.mb
|
|
|
|
%{_datadir}/%{name}/data/skin.desc
|
|
|
|
%{_datadir}/%{name}/data/sp.dat
|
|
|
|
%{_datadir}/%{name}/data/table.desc
|
|
|
|
%{_datadir}/%{name}/data/table/disable-table.conf.template
|
|
|
|
%{_datadir}/%{name}/data/vk.conf
|
|
|
|
|
|
|
|
|
2010-11-19 12:47:05 +00:00
|
|
|
|
|
|
|
%files devel
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%doc
|
|
|
|
%{_libdir}/libfcitx*.so
|
|
|
|
%{_libdir}/pkgconfig/fcitx*.pc
|
|
|
|
%{_includedir}/fcitx*
|
|
|
|
|
2011-08-01 18:03:05 +00:00
|
|
|
%files table-bingchan
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%doc
|
|
|
|
%{_datadir}/%{name}/data/qxm.conf
|
|
|
|
%{_datadir}/%{name}/data/qxm.mb
|
|
|
|
|
|
|
|
%files table-cangjie
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%doc
|
|
|
|
%{_datadir}/%{name}/data/cangjie.conf
|
|
|
|
%{_datadir}/%{name}/data/cj.mb
|
|
|
|
|
|
|
|
%files table-erbi
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%doc
|
|
|
|
%{_datadir}/%{name}/data/erbi.conf
|
|
|
|
%{_datadir}/%{name}/data/erbi.mb
|
|
|
|
|
|
|
|
%files table-wanfeng
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%doc
|
|
|
|
%{_datadir}/%{name}/data/wanfeng.conf
|
|
|
|
%{_datadir}/%{name}/data/wanfeng.mb
|
|
|
|
|
|
|
|
%files table-wbpy
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%doc
|
|
|
|
%{_datadir}/%{name}/data/wbpy.conf
|
|
|
|
%{_datadir}/%{name}/data/wbpy.mb
|
|
|
|
|
|
|
|
%files table-wubi
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%doc
|
|
|
|
%{_datadir}/%{name}/data/wubi.conf
|
|
|
|
%{_datadir}/%{name}/data/wubi.mb
|
|
|
|
|
|
|
|
%files table-ziranma
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%doc
|
|
|
|
%{_datadir}/%{name}/data/zrm.conf
|
|
|
|
%{_datadir}/%{name}/data/zrm.mb
|
|
|
|
|
2010-04-18 02:06:31 +00:00
|
|
|
%changelog
|
2011-08-01 18:03:05 +00:00
|
|
|
* Tue Aug 02 2011 Liang Suilong <liangsuilong@gmail.com> - 4.0.1-4
|
|
|
|
- Separates varieties of tables from FCITX
|
|
|
|
- Merge fcitx-libs into fcitx
|
|
|
|
|
2011-07-02 16:56:08 +00:00
|
|
|
* Sun Jul 03 2011 Liang Suilong <liangsuilong@gmail.com> - 4.0.1-3
|
|
|
|
- Support GNOME 3 tray icon
|
|
|
|
- Fix that main window is covered by GNOME Shell
|
|
|
|
|
2011-02-08 19:25:10 +00:00
|
|
|
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.0.1-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
|
|
|
|
|
2010-11-19 12:47:05 +00:00
|
|
|
* Fri Nov 19 2010 Chen Lei <supercyper@163.com> - 4.0.0-1
|
|
|
|
- Update to 4.0.0
|
2010-07-20 02:56:31 +00:00
|
|
|
|
2010-06-14 12:05:03 +00:00
|
|
|
* Mon Jun 14 2010 Chen Lei <supercyper@163.com> - 3.6.3-5.20100514svn_utf8
|
|
|
|
- Remove BR:libXext-devel
|
|
|
|
|
2010-05-16 02:25:09 +00:00
|
|
|
* Fri May 14 2010 Chen Lei <supercyper@163.com> - 3.6.3-4.20100514svn_utf8
|
|
|
|
- svn 365
|
|
|
|
|
2010-04-18 16:08:51 +00:00
|
|
|
* Sun Apr 18 2010 Chen Lei <supercyper@163.com> - 3.6.3-3.20100410svn_utf8
|
|
|
|
- Exclude xpm files
|
|
|
|
|
2010-04-18 02:06:31 +00:00
|
|
|
* Sat Apr 17 2010 Chen Lei <supercyper@163.com> - 3.6.3-2.20100410svn_utf8
|
|
|
|
- Update License tag
|
|
|
|
- Add more explanation for UTF-8 branch
|
|
|
|
|
|
|
|
* Mon Apr 12 2010 Chen Lei <supercyper@163.com> - 3.6.3-1.20100410svn_utf8
|
|
|
|
- Initial Package
|