Mathieu Bridon ba5c446
%global module_name ibus_cangjie
Mathieu Bridon ba5c446
Mathieu Bridon ba5c446
Name:             ibus-cangjie
Mathieu Bridon ba5c446
Summary:          IBus engine to input Cangjie and Quick
c1906ec
Version:          2.4
e5c1366
Release:          19%{?dist}
Mathieu Bridon ba5c446
License:          GPLv3+
Mathieu Bridon 8f805ac
URL:              http://cangjians.github.io/projects/%{name}
30f8998
Source0:          https://github.com/Cangjians/%{name}/releases/download/v%{version}/%{name}-%{version}.tar.xz
Mathieu Bridon ba5c446
Mathieu Bridon ba5c446
BuildArch:        noarch
Mathieu Bridon ba5c446
Mathieu Bridon 077a47b
BuildRequires:    desktop-file-utils
f515dc8
BuildRequires:    gcc
Mathieu Bridon ba5c446
BuildRequires:    ibus-devel
Mathieu Bridon ba5c446
BuildRequires:    intltool
Mathieu Bridon ba5c446
BuildRequires:    python3-devel
Mathieu Bridon ba5c446
Mathieu Bridon ba5c446
# For the unit tests
e7e23b6
BuildRequires:    gobject-introspection
e7e23b6
BuildRequires:    gtk3
Mathieu Bridon 8ec7961
BuildRequires:    python3-cangjie >= 1.2
Mathieu Bridon ba5c446
BuildRequires:    python3-gobject
Mathieu Bridon ba5c446
e7e23b6
Requires:         gobject-introspection
e7e23b6
Requires:         gtk3
Mathieu Bridon ba8870f
Requires:         python3-canberra
Mathieu Bridon 8ec7961
Requires:         python3-cangjie >= 1.2
Mathieu Bridon ba5c446
Requires:         python3-gobject
Mathieu Bridon ba5c446
Mathieu Bridon ba5c446
%description
Mathieu Bridon 8e3445c
Common files needed by the IBus engines for users of the Cangjie and Quick
Mathieu Bridon 8e3445c
input methods.
Mathieu Bridon 8e3445c
Mathieu Bridon 8e3445c
Mathieu Bridon 8e3445c
%package engine-cangjie
Mathieu Bridon 8e3445c
Summary:          Cangjie input method for IBus
Mathieu Bridon 8e3445c
Requires:         %{name} = %{version}-%{release}
Mathieu Bridon 8e3445c
Mathieu Bridon 8e3445c
%description engine-cangjie
Mathieu Bridon 8e3445c
IBus engine for users of the Cangjie input method.
Mathieu Bridon 8e3445c
Mathieu Bridon 8e3445c
It is primarily intended to Hong Kong people who want to input Traditional
Mathieu Bridon 8e3445c
Chinese, as they are (by far) the majority of Cangjie users.
Mathieu Bridon 8e3445c
Mathieu Bridon 8e3445c
However, it should work for others as well (e.g to input Simplified Chinese).
Mathieu Bridon 8e3445c
Mathieu Bridon 8e3445c
Mathieu Bridon 8e3445c
%package engine-quick
Mathieu Bridon 8e3445c
Summary:          Quick (Simplified Cangjie) input method for IBus
Mathieu Bridon 8e3445c
Requires:         %{name} = %{version}-%{release}
Mathieu Bridon 8e3445c
Mathieu Bridon 8e3445c
%description engine-quick
Mathieu Bridon 8e3445c
IBus engine for users of the Quick (Simplified Cangjie) input method.
Mathieu Bridon ba5c446
Mathieu Bridon ba5c446
It is primarily intended to Hong Kong people who want to input Traditional
Mathieu Bridon 8e3445c
Chinese, as they are (by far) the majority of Quick users.
Mathieu Bridon ba5c446
Mathieu Bridon ba5c446
However, it should work for others as well (e.g to input Simplified Chinese).
Mathieu Bridon ba5c446
Mathieu Bridon ba5c446
Mathieu Bridon ba5c446
%prep
Mathieu Bridon ba5c446
%setup -q
Mathieu Bridon ba5c446
Mathieu Bridon ba5c446
Mathieu Bridon ba5c446
%build
Mathieu Bridon ba5c446
%configure
Mathieu Bridon ba5c446
make %{?_smp_mflags}
Mathieu Bridon ba5c446
Mathieu Bridon ba5c446
Mathieu Bridon ba5c446
%install
Mathieu Bridon e03c696
make install DESTDIR=%{buildroot} INSTALL="install -p"
Mathieu Bridon ba5c446
Mathieu Bridon ba5c446
%find_lang %{name}
Mathieu Bridon ba5c446
Mathieu Bridon ba5c446
Mathieu Bridon ba5c446
%check
Mathieu Bridon ba5c446
make check
Mathieu Bridon ba5c446
Mathieu Bridon 077a47b
# Upstream doesn't validate their desktop files
Mathieu Bridon 077a47b
desktop-file-validate %{buildroot}/%{_datadir}/applications/ibus-setup-cangjie.desktop
Mathieu Bridon 077a47b
desktop-file-validate %{buildroot}/%{_datadir}/applications/ibus-setup-quick.desktop
Mathieu Bridon 077a47b
Mathieu Bridon ba5c446
Mathieu Bridon 8f805ac
Mathieu Bridon ba5c446
%files -f %{name}.lang
30f8998
%doc AUTHORS README.md
30f8998
%license COPYING
Mathieu Bridon ba5c446
%{_bindir}/ibus-setup-cangjie
Mathieu Bridon ba5c446
%{python3_sitelib}/%{module_name}
Mathieu Bridon ba5c446
%{_datadir}/%{name}
Mathieu Bridon 8f805ac
%{_datadir}/glib-2.0/schemas/org.cangjians.ibus.*.gschema.xml
Mathieu Bridon 8f805ac
%{_datadir}/icons/hicolor/*/intl/*
Mathieu Bridon ba5c446
Mathieu Bridon 077a47b
# Using %%{_prefix}/lib is allowed here because the package is exempt from
Mathieu Bridon 077a47b
# multilib (because it is noarch), see:
Mathieu Bridon 077a47b
#     https://fedoraproject.org/wiki/Packaging:Guidelines#Multilib_Exempt_Locations
Mathieu Bridon 077a47b
%{_prefix}/lib/%{name}
Mathieu Bridon 077a47b
Mathieu Bridon 8e3445c
%files engine-cangjie
Mathieu Bridon 8e3445c
%{_datadir}/applications/ibus-setup-cangjie.desktop
Mathieu Bridon 8e3445c
%{_datadir}/appdata/cangjie.appdata.xml
Mathieu Bridon 8e3445c
%{_datadir}/ibus/component/cangjie.xml
Mathieu Bridon 8e3445c
Mathieu Bridon 8e3445c
%files engine-quick
Mathieu Bridon 8e3445c
%{_datadir}/applications/ibus-setup-quick.desktop
Mathieu Bridon 8e3445c
%{_datadir}/appdata/quick.appdata.xml
Mathieu Bridon 8e3445c
%{_datadir}/ibus/component/quick.xml
Mathieu Bridon 8e3445c
Mathieu Bridon ba5c446
Mathieu Bridon ba5c446
%changelog
e5c1366
* Wed Jan 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.4-19
e5c1366
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
e5c1366
f28ec0c
* Thu Oct 03 2019 Miro Hrončok <mhroncok@redhat.com> - 2.4-18
f28ec0c
- Rebuilt for Python 3.8.0rc1 (#1748018)
f28ec0c
f370335
* Mon Aug 19 2019 Miro Hrončok <mhroncok@redhat.com> - 2.4-17
f370335
- Rebuilt for Python 3.8
f370335
cfb3bd3
* Thu Jul 25 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2.4-16
cfb3bd3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
cfb3bd3
e7e23b6
* Fri Feb 01 2019 Mathieu Bridon <bochecha@daitauha.fr> - 2.4-15
e7e23b6
- Add missing requirements.
e7e23b6
a872a35
* Fri Feb 01 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2.4-14
a872a35
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
a872a35
a2a4a33
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.4-13
a2a4a33
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
a2a4a33
9fd0ebb
* Tue Jun 19 2018 Miro Hrončok <mhroncok@redhat.com> - 2.4-12
9fd0ebb
- Rebuilt for Python 3.7
9fd0ebb
5f71dcd
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.4-11
5f71dcd
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
5f71dcd
17e60c0
* Thu Jan 11 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 2.4-10
17e60c0
- Remove obsolete scriptlets
17e60c0
0426a05
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.4-9
0426a05
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
0426a05
d87a920
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.4-8
d87a920
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
d87a920
27435e2
* Mon Dec 19 2016 Miro Hrončok <mhroncok@redhat.com> - 2.4-7
27435e2
- Rebuild for Python 3.6
27435e2
fdf432a
* Thu Aug 18 2016 Mathieu Bridon <bochecha@daitauha.fr> - 2.4-6
fdf432a
- Drop the GSettings schema scriptlets, they are unneeded for Fedora >= 24.
fdf432a
5c8dcc1
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.4-5
5c8dcc1
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
5c8dcc1
cc60a70
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 2.4-4
cc60a70
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
cc60a70
d787fec
* Tue Nov 10 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.4-3
d787fec
- Rebuilt for https://fedoraproject.org/wiki/Changes/python3.5
d787fec
7cd63aa
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.4-2
7cd63aa
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
7cd63aa
c1906ec
* Sun Mar 29 2015 Mathieu Bridon <bochecha@daitauha.fr> - 2.4-1
c1906ec
- Update to 2.4.
c1906ec
30f8998
* Wed Mar 04 2015 Mathieu Bridon <bochecha@daitauha.fr> - 2.3-1
30f8998
- Update to 2.3.
30f8998
Mathieu Bridon 8e3445c
* Thu Jul 10 2014 Mathieu Bridon <bochecha@fedoraproject.org> - 2.2-4
Mathieu Bridon 8e3445c
- Split the engines into their own subpackages.
Mathieu Bridon 8e3445c
  This makes much more sense for users of a graphical package manager (like
Mathieu Bridon 8e3445c
  GNOME Software): installing one installs just that, and more importantly
Mathieu Bridon 8e3445c
  removing an engine doesn't remove the other one.
Mathieu Bridon 8e3445c
21f97eb
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.2-3
21f97eb
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
21f97eb
fde4489
* Wed May 28 2014 Kalev Lember <kalevlember@gmail.com> - 2.2-2
fde4489
- Rebuilt for https://fedoraproject.org/wiki/Changes/Python_3.4
fde4489
Mathieu Bridon 8ec7961
* Fri Apr 25 2014 Mathieu Bridon <bochecha@fedoraproject.org> - 2.2-1
Mathieu Bridon 8ec7961
- New upstream 2.2 release.
Mathieu Bridon 8ec7961
Mathieu Bridon 3009edb
* Sun Feb 02 2014 Mathieu Bridon <bochecha@fedoraproject.org> - 2.1-1
Mathieu Bridon 3009edb
- New upstream 2.1 release.
Mathieu Bridon 3009edb
Mathieu Bridon 8f805ac
* Tue Dec 24 2013 Mathieu Bridon <bochecha@fedoraproject.org> - 2.0-1
Mathieu Bridon 8f805ac
- New upstream 2.0 release.
Mathieu Bridon 8f805ac
e3c94d9
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0-4
e3c94d9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
e3c94d9
Mathieu Bridon e03c696
* Tue May 07 2013 Mathieu Bridon <bochecha@fedoraproject.org> - 1.0-3
Mathieu Bridon e03c696
- Preserve the file timestamps on installation.
Mathieu Bridon e03c696
Mathieu Bridon 077a47b
* Mon May 06 2013 Mathieu Bridon <bochecha@fedoraproject.org> - 1.0-2
Mathieu Bridon 077a47b
- Comment on the usage of %%{_prefix}/lib
Mathieu Bridon 077a47b
- Validate the desktop file.
Mathieu Bridon 077a47b
Mathieu Bridon ba5c446
* Thu May 02 2013 Mathieu Bridon <bochecha@fedoraproject.org> - 1.0-1
Mathieu Bridon ba5c446
- Initial package for Fedora.