ibus-anthy/ibus-anthy.spec

162 lines
4.2 KiB
RPMSpec
Raw Normal View History

# https://fedoraproject.org/wiki/Changes/No_more_automagic_Python_bytecompilation_phase_3
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
2014-11-13 07:47:01 +00:00
%global with_python3 1
%if (0%{?fedora} > 33 || 0%{?rhel} > 8)
%bcond_without kasumi_unicode
2018-03-19 11:57:15 +00:00
%else
%bcond_with kasumi_unicode
2018-03-19 11:57:15 +00:00
%endif
2014-11-13 07:47:01 +00:00
%if %with_python3
2014-02-06 03:35:24 +00:00
# for bytecompile in %%{_datadir}/ibus-anthy
%global __python %{__python3}
2014-11-13 07:47:01 +00:00
%endif
2014-02-06 03:35:24 +00:00
2013-09-09 05:19:49 +00:00
Name: ibus-anthy
2024-02-28 12:38:10 +00:00
Version: 1.5.16
2024-05-11 09:02:36 +00:00
Release: %autorelease
2013-09-09 05:19:49 +00:00
Summary: The Anthy engine for IBus input platform
2022-11-16 06:53:56 +00:00
License: GPL-2.0-or-later
2015-07-16 10:16:16 +00:00
URL: https://github.com/ibus/ibus/wiki
2014-09-16 06:09:28 +00:00
Source0: https://github.com/ibus/ibus-anthy/releases/download/%{version}/%{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
2024-03-12 10:21:56 +00:00
Patch0: %{name}-HEAD.patch
2021-03-16 13:31:46 +00:00
Patch1: %{name}-1938129-default-hiragana.patch
2012-10-06 13:14:13 +00:00
BuildRequires: anthy-unicode-devel
2012-11-21 10:51:51 +00:00
BuildRequires: desktop-file-utils
2008-08-10 11:49:30 +00:00
BuildRequires: gettext-devel
BuildRequires: git
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
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
BuildRequires: /usr/bin/appstream-util
2008-08-10 11:49:30 +00:00
2013-09-09 05:19:49 +00:00
Requires: ibus >= %{require_ibus_version}
%if %{with kasumi_unicode}
Requires: kasumi-unicode
%else
2013-09-09 05:19:49 +00:00
Requires: kasumi
%endif
Requires: anthy-unicode
2018-03-19 10:36:58 +00:00
Requires: %{name}-python = %{version}-%{release}
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
%package python
Summary: Anthy Python files for IBus
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
2012-03-04 13:58:08 +00:00
%package devel
2013-09-09 05:19:49 +00:00
Summary: Development tools for IBus
Requires: %{name}%{?_isa} = %{version}-%{release}
2013-09-09 05:19:49 +00:00
Requires: glib2-devel
Requires: anthy-unicode-devel
2012-03-04 13:58:08 +00:00
%description devel
The ibus-anthy-devel package contains .so file and .gir files
for developers.
%package tests
Summary: Tests for the %{name} package
BuildRequires: python3-pycotap
Requires: %{name}%{?_isa} = %{version}-%{release}
Requires: python3-pycotap
%description tests
The %{name}-tests package contains tests that can be used to verify
the functionality of the installed %{name} package.
2008-08-10 11:49:30 +00:00
%prep
%autosetup -S git
2008-08-10 11:49:30 +00:00
%build
#autoreconf -f -i -v
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 \
%endif
%if %{with kasumi_unicode}
--with-kasumi-exec=/usr/bin/kasumi-unicode \
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 \
--enable-installed-tests \
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
2015-03-25 22:14:52 +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
appstream-util validate-relax --nonet $RPM_BUILD_ROOT%{_metainfodir}/*.xml
2021-10-22 03:11:19 +00:00
export LANG=C.UTF-8
locale
2021-10-22 00:34:50 +00:00
make -C data check
2008-08-10 11:49:30 +00:00
2021-06-17 09:05:09 +00:00
%ldconfig_scriptlets libs
2021-04-21 02:22:22 +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
2018-03-19 10:55:38 +00:00
%{_datadir}/glib-2.0/schemas/org.freedesktop.ibus.engine.anthy.gschema.xml
2013-09-09 05:19:49 +00:00
%dir %{_datadir}/ibus-anthy
%{_datadir}/applications/ibus-setup-anthy.desktop
2013-09-09 05:19:49 +00:00
%{_datadir}/ibus-anthy/dicts
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
%files python
%{_libexecdir}/ibus-*-anthy
%{_datadir}/ibus-anthy/engine
%{_datadir}/ibus-anthy/setup
%{_datadir}/ibus/component/*
%{_metainfodir}/*.xml
2013-09-09 05:19:49 +00:00
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
%files tests
%dir %{_libexecdir}/installed-tests
%{_libexecdir}/installed-tests/%{name}
%dir %{_datadir}/installed-tests
%{_datadir}/installed-tests/%{name}
2008-08-10 11:49:30 +00:00
%changelog
2024-05-11 09:02:36 +00:00
%autochangelog
2024-03-12 10:21:56 +00:00