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-07-02 16:56:08 +00:00
|
|
|
Release: 3%{?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
|
2010-11-19 12:47:05 +00:00
|
|
|
Requires: %{name}-libs = %{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
|
|
|
|
|
|
|
|
%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.
|
|
|
|
|
2010-11-19 12:47:05 +00:00
|
|
|
%package libs
|
|
|
|
Summary: Libraries for FCITX
|
|
|
|
Group: System Environment/Libraries
|
|
|
|
|
|
|
|
%description libs
|
|
|
|
The %{name}-libs package provides shared libraries for FCITX.
|
|
|
|
|
|
|
|
%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
|
|
|
|
|
|
|
%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
|
|
|
|
|
2010-11-19 12:47:05 +00:00
|
|
|
%post libs -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%postun libs -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%files -f %{name}.lang
|
2010-04-18 02:06:31 +00:00
|
|
|
%defattr(-,root,root,-)
|
2010-11-19 12:47:05 +00:00
|
|
|
%doc AUTHORS ChangeLog THANKS TODO
|
2010-12-17 11:58:48 +00:00
|
|
|
#%doc __doc/*
|
2010-04-18 02:06:31 +00:00
|
|
|
%config %{_xinputconf}
|
|
|
|
%{_bindir}/*
|
|
|
|
%{_datadir}/%{name}
|
2010-05-16 02:25:09 +00:00
|
|
|
%{_datadir}/pixmaps/*
|
2010-12-17 11:58:48 +00:00
|
|
|
%{_datadir}/applications/%{name}-configtool.desktop
|
|
|
|
%{_datadir}/applications/%{name}.desktop
|
|
|
|
%{_docdir}/%{name}/
|
|
|
|
%{_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
|
|
|
|
2010-11-19 12:47:05 +00:00
|
|
|
%files libs
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%doc COPYING
|
|
|
|
%{_libdir}/libfcitx*.so.*
|
|
|
|
|
|
|
|
%files devel
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%doc
|
|
|
|
%{_libdir}/libfcitx*.so
|
|
|
|
%{_libdir}/pkgconfig/fcitx*.pc
|
|
|
|
%{_includedir}/fcitx*
|
|
|
|
|
2010-04-18 02:06:31 +00:00
|
|
|
%changelog
|
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
|