From cf49f79e427188914c2a425df05b066a3fb33b6e Mon Sep 17 00:00:00 2001 From: Huang Peng Date: Wed, 2 Jul 2008 17:44:51 +0800 Subject: Create PinYin project from template. --- .gitignore | 4 +- Makefile.am | 2 +- configure.ac | 6 +- engine/Makefile.am | 2 +- ibus-pinyin.spec.in | 50 +++++++++++++ ibus-tmpl.spec.in | 50 ------------- icons/Makefile.am | 6 +- icons/ibus-enchant.svg | 197 ------------------------------------------------- icons/ibus-pinyin.svg | 146 ++++++++++++++++++++++++++++++++++++ 9 files changed, 206 insertions(+), 257 deletions(-) create mode 100644 ibus-pinyin.spec.in delete mode 100644 ibus-tmpl.spec.in delete mode 100644 icons/ibus-enchant.svg create mode 100644 icons/ibus-pinyin.svg diff --git a/.gitignore b/.gitignore index da3b6ba..64ff685 100644 --- a/.gitignore +++ b/.gitignore @@ -32,5 +32,5 @@ ltmain.sh missing stamp-h1 py-compile -ibus-tmpl*.tar.* -ibus-tmpl.spec +ibus-pinyin*.tar.* +ibus-pinyin.spec diff --git a/Makefile.am b/Makefile.am index 8816dda..0e9034d 100644 --- a/Makefile.am +++ b/Makefile.am @@ -1,6 +1,6 @@ # vim:set noet ts=4: # -# ibus-tmpl - The Input Bus template project +# ibus-pinyin - The PinYin engine for IBus # # Copyright (c) 2007-2008 Huang Peng # diff --git a/configure.ac b/configure.ac index dd89e4b..c11b953 100644 --- a/configure.ac +++ b/configure.ac @@ -1,6 +1,6 @@ # vim:set noet ts=4: # -# ibus-tmpl - The Input Bus template project +# ibus-pinyin - The PinYin engine for IBus # # Copyright (c) 2007-2008 Huang Peng # @@ -19,7 +19,7 @@ # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. # if not 1, append datestamp to the version number. -m4_define([package_name], [ibus-tmpl]) +m4_define([package_name], [ibus-pinyin]) m4_define([ibus_released], [0]) m4_define([ibus_major_version], [0]) m4_define([ibus_minor_version], [1]) @@ -65,7 +65,7 @@ AM_GNU_GETTEXT_VERSION(0.16.1) # OUTPUT files AC_CONFIG_FILES(po/Makefile.in Makefile -ibus-tmpl.spec +ibus-pinyin.spec engine/Makefile engine/ibus-engine-enchant icons/Makefile diff --git a/engine/Makefile.am b/engine/Makefile.am index 8b58e86..c662fc8 100644 --- a/engine/Makefile.am +++ b/engine/Makefile.am @@ -1,6 +1,6 @@ # vim:set noet ts=4: # -# ibus-tmpl - The Input Bus template project +# ibus-pinyin - The PinYin engine for IBus # # Copyright (c) 2007-2008 Huang Peng # diff --git a/ibus-pinyin.spec.in b/ibus-pinyin.spec.in new file mode 100644 index 0000000..2c337c2 --- /dev/null +++ b/ibus-pinyin.spec.in @@ -0,0 +1,50 @@ +%{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} +%{!?python_sitearch: %define python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")} +%define mod_path ibus-@PACKAGE_VERSION_MAJOR@.@PACKAGE_VERSION_MINOR@ +Name: @PACKAGE_NAME@ +Version: @PACKAGE_VERSION@ +Release: 1%{?dist} +Summary: IBus template project +License: GPLv2+ +Group: System Environment/Libraries +URL: http://code.google.com/p/ibus/ +Source0: http://ibus.googlecode.com/files/%{name}-%{version}.tar.gz + +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) +BuildRequires: gettext-devel, libtool, python-devel, pygtk2-devel, perl(XML::Parser) gtk2-devel qt-devel +Requires: pygtk2 + +%description +IBus template project + +%prep +%setup -q + +%build +%configure --disable-static +# make -C po update-gmo +make %{?_smp_mflags} + +%install +rm -rf $RPM_BUILD_ROOT +make DESTDIR=${RPM_BUILD_ROOT} install + +# %find_lang %{name} + +%clean +rm -rf $RPM_BUILD_ROOT + +%files +# -f %{name}.lang +%defattr(-,root,root,-) +%doc AUTHORS COPYING README +# %dir %{python_sitearch}/ibus +# %{python_sitearch}/ibus/* +%dir %{_datadir}/ibus/engine/enchant +%{_datadir}/ibus/engine/enchant/* +%{_libexecdir}/ibus-engine-enchant +%{_datadir}/ibus/icons/ibus-pinyin.svg + +%changelog +* Wed Jun 25 2008 Huang Peng - 0.1.0-1 +- The first version. diff --git a/ibus-tmpl.spec.in b/ibus-tmpl.spec.in deleted file mode 100644 index c77fcde..0000000 --- a/ibus-tmpl.spec.in +++ /dev/null @@ -1,50 +0,0 @@ -%{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} -%{!?python_sitearch: %define python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")} -%define mod_path ibus-@PACKAGE_VERSION_MAJOR@.@PACKAGE_VERSION_MINOR@ -Name: @PACKAGE_NAME@ -Version: @PACKAGE_VERSION@ -Release: 1%{?dist} -Summary: IBus template project -License: GPLv2+ -Group: System Environment/Libraries -URL: http://code.google.com/p/ibus/ -Source0: http://ibus.googlecode.com/files/%{name}-%{version}.tar.gz - -BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) -BuildRequires: gettext-devel, libtool, python-devel, pygtk2-devel, perl(XML::Parser) gtk2-devel qt-devel -Requires: pygtk2 - -%description -IBus template project - -%prep -%setup -q - -%build -%configure --disable-static -# make -C po update-gmo -make %{?_smp_mflags} - -%install -rm -rf $RPM_BUILD_ROOT -make DESTDIR=${RPM_BUILD_ROOT} install - -# %find_lang %{name} - -%clean -rm -rf $RPM_BUILD_ROOT - -%files -# -f %{name}.lang -%defattr(-,root,root,-) -%doc AUTHORS COPYING README -# %dir %{python_sitearch}/ibus -# %{python_sitearch}/ibus/* -%dir %{_datadir}/ibus/engine/enchant -%{_datadir}/ibus/engine/enchant/* -%{_libexecdir}/ibus-engine-enchant -%{_datadir}/ibus/icons/ibus-enchant.svg - -%changelog -* Wed Jun 25 2008 Huang Peng - 0.1.0-1 -- The first version. diff --git a/icons/Makefile.am b/icons/Makefile.am index e6f219f..6d6ac65 100644 --- a/icons/Makefile.am +++ b/icons/Makefile.am @@ -1,6 +1,6 @@ # vim:set noet ts=4: # -# ibus-tmpl - The Input Bus template project +# ibus-pinyin - The PinYin engine for IBus # # Copyright (c) 2007-2008 Huang Peng # @@ -19,11 +19,11 @@ # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. icons_DATA = \ - ibus-enchant.svg \ + ibus-pinyin.svg \ $(NULL) iconsdir = $(datadir)/ibus/icons EXTRA_DIST = \ - ibus-enchant.svg \ + ibus-pinyin.svg \ $(NULL) diff --git a/icons/ibus-enchant.svg b/icons/ibus-enchant.svg deleted file mode 100644 index 3f9061d..0000000 --- a/icons/ibus-enchant.svg +++ /dev/null @@ -1,197 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - image/svg+xml - - - - - - - - - - E - - diff --git a/icons/ibus-pinyin.svg b/icons/ibus-pinyin.svg new file mode 100644 index 0000000..e27018c --- /dev/null +++ b/icons/ibus-pinyin.svg @@ -0,0 +1,146 @@ + + + + + + + + + + + + + + + + + + + + + + + + + image/svg+xml + + + + + + + + + + + -- cgit