Compare commits

...

6 Commits
master ... f11

Author SHA1 Message Date
Fedora Release Engineering
ca587f7aa5 dist-git conversion 2010-07-28 14:14:34 +00:00
supercyper
4679732bc8 *** empty log message *** 2010-06-14 12:16:58 +00:00
supercyper
c4b7549462 sync with devel 2010-05-26 01:33:34 +00:00
supercyper
7dccff22d4 Exclude xpm files 2010-04-18 16:12:33 +00:00
supercyper
24d803f531 Initial import 2010-04-18 02:09:49 +00:00
Kevin Fenzi
a083578817 Initialize branch F-11 for fcitx 2010-04-18 01:53:01 +00:00
5 changed files with 116 additions and 21 deletions

View File

View File

@ -1,21 +0,0 @@
# Makefile for source rpm: fcitx
# $Id$
NAME := fcitx
SPECFILE = $(firstword $(wildcard *.spec))
define find-makefile-common
for d in common ../common ../../common ; do if [ -f $$d/Makefile.common ] ; then if [ -f $$d/CVS/Root -a -w $$d/Makefile.common ] ; then cd $$d ; cvs -Q update ; fi ; echo "$$d/Makefile.common" ; break ; fi ; done
endef
MAKEFILE_COMMON := $(shell $(find-makefile-common))
ifeq ($(MAKEFILE_COMMON),)
# attept a checkout
define checkout-makefile-common
test -f CVS/Root && { cvs -Q -d $$(cat CVS/Root) checkout common && echo "common/Makefile.common" ; } || { echo "ERROR: I can't figure out how to checkout the 'common' module." ; exit -1 ; } >&2
endef
MAKEFILE_COMMON := $(shell $(checkout-makefile-common))
endif
include $(MAKEFILE_COMMON)

107
fcitx.spec Normal file
View File

@ -0,0 +1,107 @@
%define svndate 20100514
%define svnver 365
%define _xinputconf %{_sysconfdir}/X11/xinit/xinput.d/fcitx.conf
Name: fcitx
Summary: Free Chinese Input Toy for X (XIM)
Version: 3.6.3
Release: 5.%{?svndate}svn_utf8%{?dist}
License: GPLv2+
Group: System Environment/Libraries
URL: http://code.google.com/p/%{name}/
#
# The upstream svn trunk and the released tar ball are in GBK coding. We use the
# UTF-8 branch. And upstream has planned to move to UTF-8 coding in some future
# release.
#
#Source0: http://%{name}.googlecode.com/files/%{name}-%{version}.tar.bz2
# The source for this package was pulled from upstream's vcs. Use the
# following commands to generate the tarball:
# svn export -r %{svnver} http://fcitx.googlecode.com/svn/branches/fcitx-utf8 fcitx-%{svndate}
# tar -cjvf fcitx-%{svndate}.tar.bz2 fcitx-%{svndate}
Source0: %{name}-%{svndate}.tar.bz2
Source1: xinput-%{name}
BuildRequires: autoconf automake
BuildRequires: gettext-devel
BuildRequires: libXtst-devel
BuildRequires: libXft-devel
BuildRequires: libXpm-devel
BuildRequires: dbus-devel
Requires: im-chooser
Requires(post): %{_sbindir}/alternatives
Requires(postun): %{_sbindir}/alternatives
%description
Fcitx(Free Chinese Input Toy of X) is a collection of Simplified Chinese
input methods for Linux. It supports Pinyin, QuWei and Table-based input
methods. It's small and fast.
This package is the UTF-8 branch of fcitx.
%prep
%setup -q -n %{name}-%{svndate}
%build
# fix DSOLinking
sed -i -e 's/fcitx_LDFLAGS =/fcitx_LDFLAGS = -ldl/g' src/core/Makefile.am
./autogen.sh
%configure --enable-dbus
make %{?_smp_mflags}
%install
rm -rf %{buildroot}
make install INSTALL="install -p" DESTDIR=%{buildroot}
#fix doc path
mkdir __doc
mv %{buildroot}%{_datadir}/%{name}/doc/* __doc
rm -rf %{buildroot}%{_datadir}/%{name}/doc
rm -f __doc/{API.txt,Develop_Readme*,fcitx_trunk.doxyfile}
# install xinput config file
install -pm 644 -D %{SOURCE1} %{buildroot}%{_xinputconf}
chmod 0755 %{buildroot}%{_datadir}/%{name}/tools/winmb2fcitx.py
%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
%files
%defattr(-,root,root,-)
%doc AUTHORS ChangeLog COPYING THANKS TODO
%doc __doc/*
# winmb2fcitx.py is a utility script, byte-compilation is useless.
%exclude %{_datadir}/%{name}/tools/winmb2fcitx.pyc
%exclude %{_datadir}/%{name}/tools/winmb2fcitx.pyo
%config %{_xinputconf}
%{_bindir}/*
%{_datadir}/%{name}
%{_datadir}/pixmaps/*
%changelog
* Mon Jun 14 2010 Chen Lei <supercyper@163.com> - 3.6.3-5.20100514svn_utf8
- Remove BR:libXext-devel
* Fri May 14 2010 Chen Lei <supercyper@163.com> - 3.6.3-4.20100514svn_utf8
- svn 365
* Sun Apr 18 2010 Chen Lei <supercyper@163.com> - 3.6.3-3.20100410svn_utf8
- Exclude xpm files
* 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

View File

@ -0,0 +1,2 @@
b2f08f13936566ec09a1c3ee5a908b64 fcitx-20100410.tar.bz2
f95e24c760777dc85cafb2772f76a950 fcitx-20100514.tar.bz2

7
xinput-fcitx Normal file
View File

@ -0,0 +1,7 @@
XIM=fcitx
XIM_PROGRAM=/usr/bin/fcitx
ICON="/usr/share/pixmaps/fcitx.png"
XIM_ARGS="-D"
SHORT_DESC="Fcitx"
GTK_IM_MODULE=xim
QT_IM_MODULE=xim