ibus-anthy/ibus-anthy.spec

381 lines
13 KiB
RPMSpec
Raw Normal View History

2012-11-21 10:51:51 +00:00
%global sub_version 1.0
2013-09-09 05:19:49 +00:00
%global require_ibus_version 1.5.3
2012-11-21 10:51:51 +00:00
%global have_default_layout 1
%global have_bridge_hotkey 1
2011-07-29 15:09:04 +00:00
2013-09-09 05:19:49 +00:00
%if (0%{?fedora} > 19 || 0%{?rhel} > 6)
%global with_python_pkg 1
%else
%global with_python_pkg 0
%endif
2012-10-06 13:14:13 +00:00
2014-02-06 03:35:24 +00:00
# for bytecompile in %%{_datadir}/ibus-anthy
%global __python %{__python3}
2013-09-09 05:19:49 +00:00
Name: ibus-anthy
2014-02-06 03:35:24 +00:00
Version: 1.5.5
Release: 5%{?dist}
2013-09-09 05:19:49 +00:00
Summary: The Anthy engine for IBus input platform
License: GPLv2+
Group: System Environment/Libraries
URL: http://code.google.com/p/ibus/
2014-02-06 03:35:24 +00:00
# https://docs.google.com/file/d/0B3GBdbLj_9YgY0tvRXdMWHVYd2s
Source0: %{name}-%{version}.tar.gz
2008-08-10 11:49:30 +00:00
2013-09-09 05:19:49 +00:00
# Upstreamed patches.
# Patch0: %%{name}-HEAD.patch
Patch0: %{name}-HEAD.patch
2012-10-06 13:14:13 +00:00
2010-04-23 02:20:21 +00:00
BuildRequires: anthy-devel
2012-11-21 10:51:51 +00:00
BuildRequires: desktop-file-utils
2008-08-10 11:49:30 +00:00
BuildRequires: gettext-devel
2012-03-04 13:58:08 +00:00
BuildRequires: glib2-devel
2012-11-21 10:51:51 +00:00
BuildRequires: gobject-introspection-devel
BuildRequires: ibus
2010-04-23 02:20:21 +00:00
BuildRequires: intltool
2008-08-10 11:49:30 +00:00
BuildRequires: libtool
2010-04-23 02:20:21 +00:00
BuildRequires: pkgconfig
2014-02-06 03:35:24 +00:00
BuildRequires: python3-devel
BuildRequires: python3-gobject
2008-08-10 11:49:30 +00:00
2013-09-09 05:19:49 +00:00
Requires: ibus >= %{require_ibus_version}
Requires: kasumi
Requires: anthy
%if %with_python_pkg
Requires: %{name}-python = %{version}-%{release}
%else
Requires: gtk3
Requires: python3-cairo
Requires: python3-gobject
2013-09-09 05:19:49 +00:00
%endif
2008-08-10 11:49:30 +00:00
%description
The Anthy engine for IBus platform. It provides Japanese input method from
2012-07-31 13:18:34 +00:00
a library of the Anthy.
2008-08-10 11:49:30 +00:00
2013-09-09 05:19:49 +00:00
%if %with_python_pkg
%package python
Summary: Anthy Python files for IBus
Group: System Environment/Libraries
BuildArch: noarch
Requires: %{name} = %{version}-%{release}
Requires: gtk3
Requires: python3-cairo
Requires: python3-gobject
2013-09-09 05:19:49 +00:00
%description python
This package contains the Anthy Python files for IBus
%endif
2012-03-04 13:58:08 +00:00
%package devel
2013-09-09 05:19:49 +00:00
Summary: Development tools for IBus
Group: Development/Libraries
Requires: %{name} = %{version}-%{release}
Requires: glib2-devel
Requires: anthy-devel
2012-03-04 13:58:08 +00:00
%description devel
The ibus-anthy-devel package contains .so file and .gir files
for developers.
2008-08-10 11:49:30 +00:00
%prep
%setup -q
# %%patch0 -p1
%patch0 -p1
2008-08-10 11:49:30 +00:00
%build
autoreconf
2011-06-22 04:45:22 +00:00
%configure \
%if %have_default_layout
--with-layout='default' \
%endif
2011-06-22 04:45:22 +00:00
%if %have_bridge_hotkey
--with-hotkeys \
2013-05-11 13:56:25 +00:00
%endif
--with-on-off-keys="'Zenkaku_Hankaku', 'Ctrl+space', 'Ctrl+J'" \
2014-02-06 03:35:24 +00:00
--with-python=python3 \
2011-06-22 04:45:22 +00:00
--disable-static
2008-08-10 11:49:30 +00:00
# make -C po update-gmo
make %{?_smp_mflags}
%install
2012-11-21 10:51:51 +00:00
make install DESTDIR=$RPM_BUILD_ROOT INSTALL='install -p'
2012-03-04 13:58:08 +00:00
rm -f $RPM_BUILD_ROOT%{_libdir}/libanthygobject-%{sub_version}.la
2008-08-10 11:49:30 +00:00
2008-08-15 04:01:59 +00:00
%find_lang %{name}
2008-08-10 11:49:30 +00:00
2012-11-21 10:51:51 +00:00
%check
desktop-file-validate \
$RPM_BUILD_ROOT%{_datadir}/applications/ibus-setup-anthy.desktop
2008-08-10 11:49:30 +00:00
2012-10-06 13:14:13 +00:00
%post
2012-11-21 10:51:51 +00:00
/sbin/ldconfig
2012-10-06 13:14:13 +00:00
# recreate icon cache
touch --no-create %{_datadir}/icons/hicolor || :
[ -x %{_bindir}/gtk-update-icon-cache ] && \
%{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || :
2013-09-09 05:19:49 +00:00
[ -x %{_bindir}/ibus ] && \
%{_bindir}/ibus write-cache --system &>/dev/null || :
2012-10-06 13:14:13 +00:00
%postun
2012-11-21 10:51:51 +00:00
/sbin/ldconfig
2012-10-06 13:14:13 +00:00
# recreate icon cache
touch --no-create %{_datadir}/icons/hicolor || :
[ -x %{_bindir}/gtk-update-icon-cache ] && \
%{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || :
2013-09-09 05:19:49 +00:00
[ -x %{_bindir}/ibus ] && \
%{_bindir}/ibus write-cache --system &>/dev/null || :
2012-10-06 13:14:13 +00:00
2008-08-15 04:01:59 +00:00
%files -f %{name}.lang
2008-08-10 11:49:30 +00:00
%doc AUTHORS COPYING README
2012-11-22 04:18:55 +00:00
# dir {python2_sitearch}/ibus
2012-03-04 13:58:08 +00:00
%{_libdir}/libanthygobject-%{sub_version}.so.*
%{_libdir}/girepository-1.0/Anthy*.typelib
2013-09-09 05:19:49 +00:00
%if %with_python_pkg
%dir %{_datadir}/ibus-anthy
%{_datadir}/ibus-anthy/dicts
%else
%{_libexecdir}/ibus-*-anthy
2012-10-06 13:14:13 +00:00
%{_datadir}/applications/ibus-setup-anthy.desktop
2009-02-05 07:45:04 +00:00
%{_datadir}/ibus-anthy
%{_datadir}/ibus/component/*
2013-09-09 05:19:49 +00:00
%endif
2012-10-06 13:14:13 +00:00
%{_datadir}/icons/hicolor/scalable/apps/ibus-anthy.svg
2008-08-10 11:49:30 +00:00
2013-09-09 05:19:49 +00:00
%if %with_python_pkg
%files python
%{_libexecdir}/ibus-*-anthy
%{_datadir}/applications/ibus-setup-anthy.desktop
%{_datadir}/ibus-anthy/engine
%{_datadir}/ibus-anthy/setup
%{_datadir}/ibus/component/*
%endif
2012-03-04 13:58:08 +00:00
%files devel
%{_datadir}/gir-1.0/Anthy*.gir
%{_includedir}/ibus-anthy-%{sub_version}
%{_libdir}/libanthygobject-%{sub_version}.so
2008-08-10 11:49:30 +00:00
%changelog
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.5.5-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
* Mon May 19 2014 Takao Fujiwara <tfujiwar@redhat.com> - 1.5.5-4
- Updated ibus-anthy-HEAD.patch to fix clear() in input mode.
* Mon Apr 21 2014 Takao Fujiwara <tfujiwar@redhat.com> - 1.5.5-3
- Updated ibus-anthy-HEAD.patch to unref pixbuf on destroy.
* Thu Feb 27 2014 Takao Fujiwara <tfujiwar@redhat.com> - 1.5.5-2
- Updated ibus-anthy-HEAD.patch to enable property icon.
2014-02-06 03:35:24 +00:00
* Wed Feb 05 2014 Takao Fujiwara <tfujiwar@redhat.com> - 1.5.5-1
- Bumped to 1.5.5
- Enabled python3.
* Tue Dec 24 2013 Takao Fujiwara <tfujiwar@redhat.com> - 1.5.4-2
- Required ibus-anthy by ibus-anthy-python
2013-09-09 05:19:49 +00:00
* Mon Sep 09 2013 Takao Fujiwara <tfujiwar@redhat.com> - 1.5.4-1
- Bumped to 1.5.4
- Added ibus-anthy-python subpackage for noarch.
- Deleted ibus-anthy-xx-disable-prop-symbol.patch
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.5.3-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
2013-05-13 06:10:59 +00:00
* Mon May 13 2013 Takao Fujiwara <tfujiwar@redhat.com> - 1.5.3-1
- Bumped to 1.5.3
2013-05-13 05:20:45 +00:00
* Mon May 13 2013 Takao Fujiwara <tfujiwar@redhat.com> - 1.5.2-1
- Bumped to 1.5.2
2013-05-11 13:56:25 +00:00
* Sat May 11 2013 Takao Fujiwara <tfujiwar@redhat.com> - 1.5.1-1
- Bumped to 1.5.1
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.5.0-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
2013-01-16 09:54:06 +00:00
* Wed Jan 16 2013 Takao Fujiwara <tfujiwar@redhat.com> - 1.5.0-1
- Bumped to 1.5.0
* Wed Dec 12 2012 Takao Fujiwara <tfujiwar@redhat.com> - 1.4.99.20121006-3
- Resolved #884031. Deleted arch depended files.
2012-11-22 04:18:55 +00:00
* Thu Nov 22 2012 Takao Fujiwara <tfujiwar@redhat.com> - 1.4.99.20121006-2
- Updated to save the spec update.
2012-10-06 13:14:13 +00:00
* Sat Oct 06 2012 Takao Fujiwara <tfujiwar@redhat.com> - 1.4.99.20121006-1
- Bumped to 1.4.99.20121006
- Added ibus-anthy-xx-disable-prop-symbol.patch for Fedora 17
* Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.4.99.20120327-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
2012-03-27 04:39:08 +00:00
* Tue Mar 27 2012 Takao Fujiwara <tfujiwar@redhat.com> - 1.4.99.20120327-1
- Bumped to 1.4.99.20120327
2012-03-04 13:58:08 +00:00
* Sun Mar 04 2012 Takao Fujiwara <tfujiwar@redhat.com> - 1.3.99.20120304-1
- Bumped to 1.3.99.20120304
* Mon Feb 06 2012 Takao Fujiwara <tfujiwar@redhat.com> - 1.2.6-5
- Added ibus-anthy-xx-layout.patch to set 'default' layout in f17.
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2.6-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
2011-07-29 15:09:04 +00:00
* Fri Jul 29 2011 Takao Fujiwara <tfujiwar@redhat.com> - 1.2.6-3
- Added ibus-anthy-xx-icon-symbol.patch to enable the engine symbol & hotkeys.
2011-05-16 02:34:33 +00:00
* Mon May 16 2011 Takao Fujiwara <tfujiwar@redhat.com> - 1.2.6-1
- Bumped to 1.2.6
Fixed Bug 661943 - the latest page_size for ibus.LookupTable.
* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2.5-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
2010-12-01 05:58:39 +00:00
* Wed Dec 01 2010 Takao Fujiwara <tfujiwar@redhat.com> - 1.2.5-1
- Updated to 1.2.5
Fixed Bug 652881 - SEGV when key tables are customized in new gconf.
Fixed Bug 654322 - new custom keys are not loaded.
* Tue Oct 26 2010 Takao Fujiwara <tfujiwar@redhat.com> - 1.2.4-1
- Updated to 1.2.4
- Resolves #644771 ibus-anthy [F7] key cannot work with SEGV
* Sat Oct 16 2010 Takao Fujiwara <tfujiwar@redhat.com> - 1.2.3-1
2010-10-16 14:45:07 +00:00
- Updated to 1.2.3
- Updated translations.
* Fri Oct 15 2010 Takao Fujiwara <tfujiwar@redhat.com> - 1.2.2.20101015-1
- Updated to 1.2.2.20101015
2010-10-16 14:45:07 +00:00
- Fixed Bug 643291 - ibus-anthy commit_first_segment
* Wed Jul 21 2010 David Malcolm <dmalcolm@redhat.com> - 1.2.1-2
- Rebuilt for https://fedoraproject.org/wiki/Features/Python_2.7/MassRebuild
2010-04-23 02:20:21 +00:00
* Fri Apr 23 2010 Takao Fujiwara <takao.fujiwara1@gmail.com> - 1.2.1-1
- Update to 1.2.1
2010-04-05 03:02:49 +00:00
* Mon Apr 05 2010 Takao Fujiwara <takao.fujiwara1@gmail.com> - 1.2.0.20100313-3
2010-04-05 01:49:28 +00:00
- Update icon
2010-03-13 01:04:00 +00:00
* Fri Mar 12 2010 Takao Fujiwara <takao.fujiwara1@gmail.com> - 1.2.0.20100313-1
- Update to 1.2.0.20100313
- Update fr.po
* Fri Mar 12 2010 Takao Fujiwara <takao.fujiwara1@gmail.com> - 1.2.0.20100312.1-1
- Update to 1.2.0.20100312.1
- Minor fix for a translation
* Fri Mar 12 2010 Takao Fujiwara <takao.fujiwara1@gmail.com> - 1.2.0.20100312-1
- Update to 1.2.0.20100312
- Fix bug 571728 - ibus-anthy support to switch dicts
- Fix bug 572412 - ibus-anthy: Segment convertion mode
* Fri Mar 05 2010 Takao Fujiwara <takao.fujiwara1@gmail.com> - 1.2.0.20100115-2
- Fix bug 564268 - Crash with enabled global input method
- Fix bug 570680 - Support NICOLA-F and NICOLA-A
- Fix romaji_typing_rule. #777
- Fix Shift + char with CapsLock ON in romaji mode.
- Fix chattering bug.
* Fri Jan 15 2010 Takao Fujiwara <takao.fujiwara1@gmail.com> - 1.2.0.20100115-1
- Update to 1.2.0.20100115
2010-01-15 05:13:12 +00:00
- Fix bug 550001 - kasumi should be accessible from ibus-anthy
* Fri Nov 27 2009 Takao Fujiwara <takao.fujiwara1@gmail.com> - 1.2.0.20091127-1
- Update to 1.2.0.20091127
- Fix bug 520989 - ibus-anthy icon enhancement
- Fix bug 531696 - ibus-anthy KeyError is still reported by abrt
- Fix bug 536716 - ibus-anthy: Symbol type change support in ibus-anthy
* Fri Oct 23 2009 Takao Fujiwara <takao.fujiwara1@gmail.com> - 1.2.0.20090917-2
- Fix bug 526881 - ibus-anthy backtrace is reported by the latest abrt
* Thu Sep 17 2009 Takao Fujiwara <takao.fujiwara1@gmail.com> - 1.2.0.20090917-1
- Update to 1.2.0.20090917
- Fix bug 523642 - ibus-anthy convert_to_char_type_{for,back}ward()
2009-09-07 15:28:16 +00:00
* Mon Sep 07 2009 Takao Fujiwara <takao.fujiwara1@gmail.com> - 1.2.0.20090907-2
- Fix a build issue
* Mon Sep 07 2009 Takao Fujiwara <takao.fujiwara1@gmail.com> - 1.2.0.20090907-1
- Update to 1.2.0.20090907
- Fix bug 510978 - "Typing Method" configuration doesn't work
- Fix bug 518373 - ibus setup tools need to set gettext textdomain dir.
* Thu Aug 13 2009 Takao Fujiwara <takao.fujiwara1@gmail.com> - 1.2.0.20090813-1
- Update to 1.2.0.20090813
- Fix bug 509483 - reconversion feature doesn't work
- Fix bug 509485 - commit_first_segment feature doesn't work
* Tue Aug 04 2009 Peng Huang <shawn.p.huang@gmail.com> - 1.2.0.20090804-1
- Update to 1.2.0.20090804
- Fix bug 508358 - ANTHY_HISTORY_FILE record only a single word
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2.0.20090617-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
2009-06-22 05:17:19 +00:00
* Mon Jun 22 2009 Peng Huang <shawn.p.huang@gmail.com> - 1.2.0.20090617-1
- Update to 1.2.0.20090617
2009-06-17 02:14:00 +00:00
* Wed Jun 17 2009 Jens Petersen <petersen@redhat.com> - 1.1.0.20090603-2
- require kasumi to pull in dictionary tool
2009-06-22 05:17:19 +00:00
* Wed Jun 03 2009 Peng Huang <shawn.p.huang@gmail.com> - 1.1.0.20090603-1
2009-06-12 22:25:58 +00:00
- Update to 1.1.0.20090603
- Implement setup ui.
2009-06-22 05:17:19 +00:00
* Thu Apr 30 2009 Peng Huang <shawn.p.huang@gmail.com> - 1.1.0.20090402-2
2009-06-12 22:25:58 +00:00
- Update to upstream HEAD version
- Fix bug 498250 - Cannot type zenkaku-space
2009-06-22 05:17:19 +00:00
* Thu Apr 02 2009 Peng Huang <shawn.p.huang@gmail.com> - 1.1.0.20090402-1
2009-04-02 07:46:34 +00:00
- Update to 1.1.0.20090402.
- Fix bug 490747 - Muhenkan (no-conversion) key does not undo conversion
- Fix bug 490750 - Henkan key for candidate conversion doesn't do anything
- Fix bug 490748 - Kana key doesn't do anything
* Tue Feb 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.0.20090211-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
2009-06-22 05:17:19 +00:00
* Wed Feb 11 2009 Peng Huang <shawn.p.huang@gmail.com> - 1.1.0.20090211-1
2009-02-11 07:35:46 +00:00
- Update to 1.1.0.20090211.
2009-06-22 05:17:19 +00:00
* Thu Feb 05 2009 Peng Huang <shawn.p.huang@gmail.com> - 1.1.0.20090205-1
2009-02-05 07:45:04 +00:00
- Update to 1.1.0.20090205.
2009-06-22 05:17:19 +00:00
* Tue Feb 03 2009 Peng Huang <shawn.p.huang@gmail.com> - 0.1.1.20090203-1
2009-02-03 06:05:28 +00:00
- Update to 0.1.1.20090203.
2008-11-29 16:47:52 +00:00
* Sat Nov 29 2008 Ignacio Vazquez-Abrams <ivazqueznet+rpm@gmail.com> - 0.1.1.20080912-2
- Rebuild for Python 2.6
2009-06-22 05:17:19 +00:00
* Fri Sep 12 2008 Peng Huang <shawn.p.huang@gmail.com> - 0.1.1.20080912-1
2008-09-12 08:54:20 +00:00
- Update to 0.1.1.20080912.
2009-06-22 05:17:19 +00:00
* Mon Sep 01 2008 Peng Huang <shawn.p.huang@gmail.com> - 0.1.1.20080901-1
2008-09-01 00:14:22 +00:00
- Update to 0.1.1.20080901.
2009-06-22 05:17:19 +00:00
* Thu Aug 28 2008 Peng Huang <shawn.p.huang@gmail.com> - 0.1.1.20080828-1
2008-08-28 09:13:43 +00:00
- Update to 0.1.1.20080828.
2009-06-22 05:17:19 +00:00
* Wed Aug 27 2008 Peng Huang <shawn.p.huang@gmail.com> - 0.1.1.20080827-1
2008-08-27 11:41:45 +00:00
- Update to 0.1.1.20080827.
2009-06-22 05:17:19 +00:00
* Tue Aug 26 2008 Peng Huang <shawn.p.huang@gmail.com> - 0.1.1.20080826-1
2008-08-26 12:22:21 +00:00
- Update to 0.1.1.20080826.
2009-06-22 05:17:19 +00:00
* Sat Aug 23 2008 Peng Huang <shawn.p.huang@gmail.com> - 0.1.1.20080823-1
2008-08-23 01:30:16 +00:00
- Update to 0.1.1.20080823.
2009-06-22 05:17:19 +00:00
* Fri Aug 15 2008 Peng Huang <shawn.p.huang@gmail.com> - 0.1.1.20080815-1
2008-08-15 04:01:59 +00:00
- Update to 0.1.1.20080815.
2013-09-09 05:19:49 +00:00
* Tue Aug 12 2008 Peng Huang <shawn.p.huang@gmail.com> - 0.1.1.20080812-1
2008-08-12 07:28:08 +00:00
- Update to 0.1.1.20080812.
2009-06-22 05:17:19 +00:00
* Fri Aug 08 2008 Peng Huang <shawn.p.huang@gmail.com> - 0.1.0.20080810-1
2008-08-10 11:49:30 +00:00
- The first version.