Files
ibus-anthy/ibus-anthy.spec
Takashi Iwai 0181c5e8f9 - Update ibus-anthy.spec to get rid of update-desktop-files:
* It often duplicates upstream translation effort, wasting a human
    work, both community translators and contracted ones.
  * Most of these translations are ~20 years old, and they were never
    reviewed, so it is possible that they are worse than the upstream
    ones. In the last 20 years it did not provide any way to upstream
    the changes and translations. The upstream translations got another
    20 years of development. Also Desktop Categories specification was
    updated, and the upstream specification now covers all aspects of
    former X-SuSE-* Categories extensions.
  * As a result, the SUSE desktop menu experience differs from other
    vendors. Applications have a different name, different translations,
    different placement in the structured menu etc.
  * Upstream translations have a wider impact.
  * Package maintainers have only a limited control over the contents
    visible to users. It is imported during the runtime, and the visible
    contents could be different from the contents in the package.
  * update-desktop-files is a complicated tool. It attempts to fix
    deprecated and obsolete stuff in the desktop files without even
    informing the developer that something was wrong and something was
    modified.
  * It uses a very complicated toolchain that requires access to SUSE
    intranet and access to OpenQA VPN. The complete toolchain setup was
    never published, so it has even problems with Open Source ideas.
  * It mixes SUSE-unique translations with translations that just
    duplicate the upstream translation effort. As a result it significantly
    increases number of strings to translate and decreases the quality of
    the translation.
  (jsc#PED-14507)

OBS-URL: https://build.opensuse.org/package/show/M17N/ibus-anthy?expand=0&rev=64
2026-01-25 08:57:36 +00:00

93 lines
2.6 KiB
RPMSpec

#
# spec file for package ibus-anthy
#
# Copyright (c) 2026 SUSE LLC and contributors
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
Name: ibus-anthy
Version: 1.5.17
Release: 0
Summary: The Anthy engine for IBus input platform
License: GPL-2.0-or-later
Group: System/I18n/Japanese
URL: https://github.com/ibus/ibus-anthy
Source: https://github.com/ibus/ibus-anthy/releases/download/%{version}/%{name}-%{version}.tar.gz
BuildRequires: anthy-devel
BuildRequires: fdupes
BuildRequires: intltool
BuildRequires: pkgconfig
BuildRequires: python3-gobject >= 3
BuildRequires: swig
BuildRequires: pkgconfig(gobject-introspection-1.0)
BuildRequires: pkgconfig(ibus-1.0) >= 1.4.99
BuildRequires: pkgconfig(python3)
Requires: anthy
Requires: python3-gobject >= 3
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
The Anthy engine for IBus platform. It provides Japanese input method from
libanthy.
%package devel
Summary: Development files for %{name}
Group: Development/Libraries/C and C++
Requires: %{name} = %{version}-%{release}
%description devel
The %{name}-devel package includes the header files for the %{name} package.
%prep
%setup -q
%build
%configure --disable-static \
--libexecdir=%{_ibus_libexecdir} \
--with-python=python3
make %{?_smp_mflags}
%install
%make_install
find %{buildroot} -name "*.la" -type f -delete -print
%find_lang %{name}
%fdupes -s %{buildroot}
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%files -f %{name}.lang
%doc AUTHORS README
%license COPYING
%{_ibus_libexecdir}/ibus-*
%{_datadir}/ibus-anthy
%{_datadir}/ibus
%{_libdir}/girepository-1.0
%{_datadir}/applications/ibus-setup-anthy.desktop
%{_datadir}/icons/hicolor/
%{_libdir}/libanthygobject-*.so.*
%dir %{_datadir}/metainfo/
%{_datadir}/metainfo/*
%{_datadir}/glib-2.0/schemas/org.freedesktop.ibus.engine.anthy.gschema.xml
%files devel
%{_includedir}/ibus-anthy-1.0
%{_datadir}/gir-1.0
%{_libdir}/libanthygobject-*.so
%changelog