ibus-libpinyin/ibus-libpinyin.spec

232 lines
7.2 KiB
RPMSpec
Raw Normal View History

2015-03-25 07:10:36 +00:00
%global snapshot 0
2013-01-28 05:57:57 +00:00
2012-06-12 02:54:25 +00:00
Name: ibus-libpinyin
2015-03-25 07:10:36 +00:00
Version: 1.7.1
Release: 4%{?dist}
2012-06-12 02:54:25 +00:00
Summary: Intelligent Pinyin engine based on libpinyin for IBus
License: GPLv2+
Group: System Environment/Libraries
2012-06-13 03:01:08 +00:00
URL: https://github.com/libpinyin/ibus-libpinyin
2013-03-01 09:48:39 +00:00
Source0: http://downloads.sourceforge.net/libpinyin/ibus-libpinyin/%{name}-%{version}.tar.gz
2013-01-28 05:57:57 +00:00
%if %snapshot
2013-04-30 03:40:37 +00:00
Patch0: ibus-libpinyin-1.7.x-head.patch
2013-01-28 05:57:57 +00:00
%endif
2012-06-12 02:54:25 +00:00
2015-03-04 04:16:48 +00:00
Requires: python3-gobject
2013-10-24 06:19:01 +00:00
Requires: ibus >= 1.5.4
2012-06-12 02:54:25 +00:00
BuildRequires: gettext-devel
BuildRequires: intltool
BuildRequires: libtool
BuildRequires: pkgconfig
BuildRequires: sqlite-devel
BuildRequires: libuuid-devel
BuildRequires: lua-devel
2015-03-04 04:16:48 +00:00
BuildRequires: python3-devel
2012-11-20 03:41:39 +00:00
BuildRequires: desktop-file-utils
2013-10-14 03:30:09 +00:00
BuildRequires: ibus-devel >= 1.5.4
2015-02-03 07:25:12 +00:00
BuildRequires: libpinyin-devel >= 1.0.99
BuildRequires: gtk3-devel
2012-06-12 02:54:25 +00:00
# Requires(post): sqlite
Requires: ibus >= 1.2.0
2013-04-30 03:40:37 +00:00
Requires: libpinyin >= 0.9.91
Requires: libpinyin-data%{?_isa} >= 0.9.91
2012-06-12 02:54:25 +00:00
2012-07-16 06:23:09 +00:00
Obsoletes: ibus-pinyin < 1.4.0-17
2012-07-05 06:57:13 +00:00
2012-06-12 02:54:25 +00:00
%description
It includes a Chinese Pinyin input method and a Chinese ZhuYin (Bopomofo)
input method based on libpinyin for IBus.
%prep
%setup -q
2013-01-28 05:57:57 +00:00
%if %snapshot
2012-07-04 05:35:37 +00:00
%patch0 -p1 -b .head
2013-01-28 05:57:57 +00:00
%endif
2012-06-12 02:54:25 +00:00
%build
%configure --disable-static \
2015-03-04 04:16:48 +00:00
--with-python=python3 \
2012-06-12 02:54:25 +00:00
--disable-boost
# make -C po update-gmo
make %{?_smp_mflags}
2012-11-20 03:41:39 +00:00
%check
2012-11-22 03:36:29 +00:00
desktop-file-validate $RPM_BUILD_ROOT%{_datadir}/applications/ibus-setup-libpinyin.desktop
desktop-file-validate $RPM_BUILD_ROOT%{_datadir}/applications/ibus-setup-libbopomofo.desktop
2012-11-20 03:41:39 +00:00
2012-06-12 02:54:25 +00:00
%install
2012-11-20 03:41:39 +00:00
make install DESTDIR=$RPM_BUILD_ROOT INSTALL="install -p"
2012-06-12 02:54:25 +00:00
2015-03-26 09:07:32 +00:00
# Register as an AppStream component to be visible in the software center
#
# NOTE: It would be *awesome* if this file was maintained by the upstream
# project, translated and installed into the right place during `make install`.
#
# See http://www.freedesktop.org/software/appstream/docs/ for more details.
#
mkdir -p $RPM_BUILD_ROOT%{_datadir}/appdata
cat > $RPM_BUILD_ROOT%{_datadir}/appdata/libpinyin.appdata.xml <<EOF
<?xml version="1.0" encoding="UTF-8"?>
<component type="inputmethod">
<id>libpinyin.xml</id>
<metadata_license>CC0-1.0</metadata_license>
<name>Pinyin</name>
<summary>Chinese Pinyin and Zhuyin input method</summary>
<description>
<p>
The Pinyin input method is designed for entering Chinese text by
using Pinyin or Zhuyin.
</p>
<p>
Input methods are typing systems allowing users to input complex languages.
They are necessary because these contain too many characters to simply be laid
out on a traditional keyboard.
</p>
</description>
<url type="homepage">https://github.com/libpinyin/ibus-libpinyin</url>
<compulsory_for_desktop>GNOME</compulsory_for_desktop>
<project_group>GNOME</project_group>
<developer_name>The GNOME Project</developer_name>
<url type="bugtracker">https://code.google.com/p/ibus/issues/list</url>
<url type="donation">http://www.gnome.org/friends/</url>
<url type="help">https://code.google.com/p/ibus/wiki/FAQ</url>
<update_contact><!-- upstream-contact_at_email.com --></update_contact>
</component>
EOF
2012-06-12 02:54:25 +00:00
%find_lang %{name}
%post
[ -x %{_bindir}/ibus ] && \
%{_bindir}/ibus write-cache --system &>/dev/null || :
%postun
[ -x %{_bindir}/ibus ] && \
%{_bindir}/ibus write-cache --system &>/dev/null || :
2012-06-12 02:54:25 +00:00
%files -f %{name}.lang
%doc AUTHORS COPYING README
2015-03-26 09:07:32 +00:00
%{_datadir}/appdata/*.appdata.xml
2012-08-06 07:14:07 +00:00
%{_datadir}/applications/ibus-setup-libpinyin.desktop
%{_datadir}/applications/ibus-setup-libbopomofo.desktop
2012-06-12 02:54:25 +00:00
%{_libexecdir}/ibus-engine-libpinyin
%{_libexecdir}/ibus-setup-libpinyin
%{_datadir}/ibus-libpinyin/phrases.txt
%{_datadir}/ibus-libpinyin/icons
%{_datadir}/ibus-libpinyin/setup
%{_datadir}/ibus-libpinyin/base.lua
2013-03-01 09:48:39 +00:00
%{_datadir}/ibus-libpinyin/user.lua
2012-06-12 02:54:25 +00:00
%{_datadir}/ibus-libpinyin/db/english.db
2012-08-06 07:14:07 +00:00
%{_datadir}/ibus-libpinyin/db/strokes.db
2012-06-12 02:54:25 +00:00
%dir %{_datadir}/ibus-libpinyin
%dir %{_datadir}/ibus-libpinyin/db
%{_datadir}/ibus/component/*
%changelog
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.7.1-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
2015-05-02 12:22:30 +00:00
* Sat May 02 2015 Kalev Lember <kalevlember@gmail.com> - 1.7.1-3
- Rebuilt for GCC 5 C++11 ABI change
2015-03-26 09:07:32 +00:00
* Wed Mar 25 2015 Richard Hughes <rhughes@redhat.com> - 1.7.1-2
- Register as an AppStream component.
2015-03-25 07:10:36 +00:00
* Wed Mar 25 2015 Peng Wu <pwu@redhat.com> - 1.7.1-1
- Update 1.7.1
* Mon Mar 9 2015 Peng Wu <pwu@redhat.com> - 1.7.0-2
- Fixes ibus-libpinyin upstream issue #33
2015-03-04 04:16:48 +00:00
* Wed Mar 4 2015 Peng Wu <pwu@redhat.com> - 1.7.0-1
- Update to 1.7.0
* Thu Feb 12 2015 Peng Wu <pwu@redhat.com> - 1.6.99.20150203-2
- Disable opencc according to upstream issue #26
2015-02-03 07:25:12 +00:00
* Tue Feb 3 2015 Peng Wu <pwu@redhat.com> - 1.6.99.20150203-1
- Update to 1.6.99.20150203
2015-01-07 05:18:10 +00:00
* Wed Jan 7 2015 Peng Wu <pwu@redhat.com> - 1.6.92-5
- Use opencc 1.0.2
* Sat Aug 16 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.6.92-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.6.92-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
* Wed Nov 13 2013 Peng Wu <pwu@redhat.com> - 1.6.92-2
- Fixes click of ibus-libpinyin indicator menu. (rhbz#1028905)
2013-10-24 06:19:01 +00:00
* Thu Oct 24 2013 Peng Wu <pwu@redhat.com> - 1.6.92-1
- Update to 1.6.92
2013-10-14 03:30:09 +00:00
* Mon Oct 14 2013 Peng Wu <pwu@redhat.com> - 1.6.91-5
- Update ibus-libpinyin-1.7.x-head.patch
- Support ibus input purpose feature, fixes bug 1016438.
- Remove pyxdg depends, fixes bug 1016941.
* Tue Oct 8 2013 Peng Wu <pwu@redhat.com> - 1.6.91-4
- Write ibus system cache when install or uninstall
2013-08-01 02:35:18 +00:00
* Wed Jul 31 2013 Peng Wu <pwu@redhat.com> - 1.6.91-3
- Fixes lua 5.2 compile
* Tue Jul 30 2013 Peng Wu <pwu@redhat.com> - 1.6.91-2
- Update the symbol of the ibus indicator
2013-04-30 03:40:37 +00:00
* Sun Apr 28 2013 Peng Wu <pwu@redhat.com> - 1.6.91-1
- Update to 1.6.91
2013-03-19 05:02:55 +00:00
* Tue Mar 19 2013 Peng Wu <pwu@redhat.com> - 1.5.92-1
- Update to 1.5.92
2013-03-04 06:45:53 +00:00
* Mon Mar 4 2013 Peng Wu <pwu@redhat.com> - 1.5.91-1
- Update to 1.5.91
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.4.93-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
2012-11-27 02:56:17 +00:00
* Tue Nov 27 2012 Peng Wu <pwu@redhat.com> - 1.4.93-4
- Fixes symbol icons
2012-11-20 03:41:39 +00:00
* Tue Nov 20 2012 Peng Wu <pwu@redhat.com> - 1.4.93-3
- Fixes spec file
2012-10-29 06:17:08 +00:00
* Mon Oct 29 2012 Peng Wu <pwu@redhat.com> - 1.4.93-2
- Fixes libpinyin Requires
2012-10-16 05:55:24 +00:00
* Mon Oct 15 2012 Peng Wu <pwu@redhat.com> - 1.4.93-1
- Update to 1.4.93
2012-09-18 05:29:10 +00:00
* Mon Sep 17 2012 Peng Wu <pwu@redhat.com> - 1.4.92-1
- Update to 1.4.92
2012-08-16 04:12:26 +00:00
* Thu Aug 16 2012 Peng Wu <pwu@redhat.com> - 1.4.91-1
- Update to 1.4.91
2012-08-06 07:14:07 +00:00
* Mon Aug 06 2012 Peng Wu <pwu@redhat.com> - 1.4.2-1
- Update to 1.4.2
* Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.4.1-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
2012-07-16 07:07:29 +00:00
* Mon Jul 16 2012 Peng Wu <pwu@redhat.com> - 1.4.1-4
- Fixes obsoletes
2012-07-11 02:12:44 +00:00
* Wed Jul 11 2012 Peng Wu <pwu@redhat.com> - 1.4.1-3
- Update ibus-libpinyin-1.4.x-head.patch
2012-07-10 02:53:34 +00:00
* Tue Jul 10 2012 Peng Wu <pwu@redhat.com> - 1.4.1-2
- Update ibus-libpinyin-1.4.x-head.patch
2012-07-04 05:35:37 +00:00
* Wed Jul 04 2012 Peng Wu <pwu@redhat.com> - 1.4.1-1
- Update to 1.4.1
2012-06-12 02:54:25 +00:00
* Fri Jun 01 2012 Peng Wu <pwu@redhat.com> - 1.4.0-1
- The first version.