2006-12-19 18:37:48 +01:00
|
|
|
|
#
|
2011-09-19 15:36:55 +02:00
|
|
|
|
# spec file for package anthy
|
2006-12-19 18:37:48 +01:00
|
|
|
|
#
|
2023-08-21 12:20:51 +02:00
|
|
|
|
# Copyright (c) 2023 SUSE LLC
|
2006-12-19 18:37:48 +01:00
|
|
|
|
#
|
2008-12-01 17:49:47 +01:00
|
|
|
|
# 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.
|
|
|
|
|
|
2019-03-31 01:53:30 +01:00
|
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2006-12-19 18:37:48 +01:00
|
|
|
|
#
|
|
|
|
|
|
2013-02-04 13:14:27 +01:00
|
|
|
|
|
2020-09-30 12:33:26 +02:00
|
|
|
|
%bcond_with xemacs
|
|
|
|
|
|
2006-12-19 18:37:48 +01:00
|
|
|
|
Name: anthy
|
2009-06-16 16:21:03 +02:00
|
|
|
|
Version: 9100h
|
2011-12-12 10:10:35 +01:00
|
|
|
|
Release: 0
|
2006-12-19 18:37:48 +01:00
|
|
|
|
Summary: Kana-Kanji Conversion Engine
|
|
|
|
|
# Summary(ja): 仮名漢字変換エンジン
|
|
|
|
|
# Anthy(旧称Ancy)
|
2018-09-02 08:23:14 +02:00
|
|
|
|
#
|
|
|
|
|
# PC-Unix用の仮名漢字変換エンジンとしては Canna、 FreeWnn等が有名ですが、
|
2006-12-19 18:37:48 +01:00
|
|
|
|
# いずれも1990年前後の国産Unixワークステーションのために開発され、 フリー
|
|
|
|
|
# なものの開発はほぼ停止している状態です。 Hekeプロジェクトでは新たな変
|
|
|
|
|
# 換エンジンを辞書を除いてフルスクラッチで 開発を行っています。
|
|
|
|
|
#
|
|
|
|
|
# 著者:
|
|
|
|
|
# ------
|
|
|
|
|
# 田畑 悠介 <yusuke@kmc.kyoto-u.ac.jp>
|
2018-09-02 08:23:14 +02:00
|
|
|
|
License: GPL-2.0-or-later AND LGPL-2.1-or-later
|
2018-02-10 02:00:46 +01:00
|
|
|
|
Group: System/I18n/Japanese
|
2018-09-02 08:23:14 +02:00
|
|
|
|
URL: https://osdn.jp/projects/anthy/
|
|
|
|
|
Source0: anthy-%{version}.tar.bz2
|
|
|
|
|
Source1: suse-start-anthy.el
|
|
|
|
|
Source2: baselibs.conf
|
|
|
|
|
Patch2: anthy-last-command-char-xemacs.patch
|
|
|
|
|
Patch3: bugzilla-224463-comparison-with-string-literal.patch
|
|
|
|
|
# PATCH-FIX-OPENSUSE anthy-use-last-command-event.diff bnc#849211 tiwai@suse.de
|
|
|
|
|
Patch4: anthy-use-last-command-event.diff
|
2020-08-18 14:30:19 +02:00
|
|
|
|
Patch5: bugzilla-1175274-emacs-27.1.patch
|
2023-08-21 12:20:51 +02:00
|
|
|
|
Patch6: anthy-set-face-underline-p.patch
|
2020-09-24 17:50:49 +02:00
|
|
|
|
BuildRequires: emacs-x11
|
2018-09-02 08:23:14 +02:00
|
|
|
|
BuildRequires: fdupes
|
|
|
|
|
BuildRequires: libtool
|
2020-09-30 12:33:26 +02:00
|
|
|
|
%if %{with xemacs}
|
2018-09-02 08:23:14 +02:00
|
|
|
|
BuildRequires: xemacs
|
2020-09-29 15:50:05 +02:00
|
|
|
|
%endif
|
2006-12-19 18:37:48 +01:00
|
|
|
|
|
|
|
|
|
%description
|
2019-03-31 01:53:30 +01:00
|
|
|
|
Anthy is a package for an input method editor backend for Unix-like
|
|
|
|
|
systems for the Japanese language. It can convert Hiragana to Kanji
|
|
|
|
|
as per the language rules. As a preconversion stage, Latin characters
|
|
|
|
|
(Romaji) can be used to input Hiragana. Anthy is commonly used with
|
|
|
|
|
an input method framework such as ibus, fcitx or SCIM.
|
2006-12-19 18:37:48 +01:00
|
|
|
|
|
2019-03-31 01:53:30 +01:00
|
|
|
|
%package -n libanthy0
|
|
|
|
|
Summary: Kana–Kanji conversion engine
|
|
|
|
|
License: GPL-2.0-or-later AND LGPL-2.1-or-later
|
|
|
|
|
Group: System/Libraries
|
|
|
|
|
|
|
|
|
|
%description -n libanthy0
|
|
|
|
|
A Kana–Kanji conversion engine.
|
2006-12-19 18:37:48 +01:00
|
|
|
|
|
|
|
|
|
%package devel
|
2019-03-31 01:53:30 +01:00
|
|
|
|
Summary: Header files for the Anthy Kana–Kanji conversion engine
|
2018-09-02 08:23:14 +02:00
|
|
|
|
License: GPL-2.0-or-later
|
2019-03-31 01:53:30 +01:00
|
|
|
|
Group: Development/Libraries/C and C++
|
|
|
|
|
Requires: libanthy0 = %{version}
|
2006-12-19 18:37:48 +01:00
|
|
|
|
# Summary(ja): Anthy のヘッダファイル及びライブラリです。
|
|
|
|
|
# %description devel -l ja
|
|
|
|
|
# Anthy のヘッダファイル及びライブラリです。
|
|
|
|
|
|
|
|
|
|
%description devel
|
|
|
|
|
This package contains all necessary include files and libraries needed
|
2019-03-31 01:53:30 +01:00
|
|
|
|
to develop applications that require libanthy.
|
2006-12-19 18:37:48 +01:00
|
|
|
|
|
|
|
|
|
%prep
|
2021-06-07 16:55:10 +02:00
|
|
|
|
%autosetup -p1
|
2006-12-19 18:37:48 +01:00
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
autoreconf --force --install
|
2018-09-02 08:23:14 +02:00
|
|
|
|
CFLAGS="%{optflags} -fno-strict-aliasing" \
|
|
|
|
|
CXXFLAGS="%{optflags} -fno-strict-aliasing" \
|
2021-06-07 16:55:10 +02:00
|
|
|
|
%configure --disable-static
|
|
|
|
|
%make_build
|
2009-01-12 01:49:01 +01:00
|
|
|
|
|
|
|
|
|
%check
|
2006-12-19 18:37:48 +01:00
|
|
|
|
cd test
|
|
|
|
|
./anthy --all
|
|
|
|
|
|
|
|
|
|
%install
|
2018-09-02 08:23:14 +02:00
|
|
|
|
%make_install
|
2021-06-07 16:55:10 +02:00
|
|
|
|
install -m 644 %{_sourcedir}/suse-start-anthy.el %{buildroot}/%{_datadir}/emacs/site-lisp/
|
2020-09-30 12:33:26 +02:00
|
|
|
|
%if %{with xemacs}
|
2006-12-19 18:37:48 +01:00
|
|
|
|
# compile the XEmacs versions of the emacs-lisp files and install them:
|
|
|
|
|
pushd src-util
|
|
|
|
|
rm -f *.elc
|
2013-07-12 12:55:57 +02:00
|
|
|
|
# make EMACS=xemacs
|
|
|
|
|
EMACS=xemacs ../elisp-comp *.el
|
2018-09-02 08:23:14 +02:00
|
|
|
|
mkdir -p %{buildroot}%{_datadir}/xemacs/site-packages/lisp/anthy
|
|
|
|
|
install -m 644 *.el *.elc %{buildroot}%{_datadir}/xemacs/site-packages/lisp/anthy
|
2006-12-19 18:37:48 +01:00
|
|
|
|
popd
|
2020-09-29 15:50:05 +02:00
|
|
|
|
%endif
|
2018-09-02 08:23:14 +02:00
|
|
|
|
%fdupes %{buildroot}%{_datadir}
|
|
|
|
|
find %{buildroot} -type f -name "*.la" -delete -print
|
2009-06-16 16:21:03 +02:00
|
|
|
|
# remove unneeded Makefiles for documents
|
|
|
|
|
rm -f doc/Makefile.*
|
2006-12-19 18:37:48 +01:00
|
|
|
|
|
2019-03-31 01:53:30 +01:00
|
|
|
|
%post -n libanthy0 -p /sbin/ldconfig
|
|
|
|
|
%postun -n libanthy0 -p /sbin/ldconfig
|
2007-08-02 18:29:47 +02:00
|
|
|
|
|
2006-12-19 18:37:48 +01:00
|
|
|
|
%files
|
2018-09-02 08:23:14 +02:00
|
|
|
|
%doc AUTHORS ChangeLog DIARY NEWS README doc
|
2018-08-31 14:04:04 +02:00
|
|
|
|
%license COPYING
|
2006-12-19 18:37:48 +01:00
|
|
|
|
%config %{_sysconfdir}/anthy-conf
|
2018-09-02 08:23:14 +02:00
|
|
|
|
%dir %{_datadir}/anthy/
|
|
|
|
|
%{_datadir}/anthy/*
|
2006-12-19 18:37:48 +01:00
|
|
|
|
%{_bindir}/*
|
2018-09-02 08:23:14 +02:00
|
|
|
|
%{_datadir}/emacs/site-lisp/*
|
2020-09-30 12:33:26 +02:00
|
|
|
|
%if %{with xemacs}
|
2018-09-02 08:23:14 +02:00
|
|
|
|
%{_datadir}/xemacs/*
|
2020-09-29 15:50:05 +02:00
|
|
|
|
%endif
|
2006-12-19 18:37:48 +01:00
|
|
|
|
|
2019-03-31 01:53:30 +01:00
|
|
|
|
%files -n libanthy0
|
|
|
|
|
%{_libdir}/*.so.*
|
|
|
|
|
|
2006-12-19 18:37:48 +01:00
|
|
|
|
%files devel
|
2018-09-02 08:23:14 +02:00
|
|
|
|
%dir %{_includedir}/anthy/
|
|
|
|
|
%{_includedir}/anthy/*
|
2006-12-19 18:37:48 +01:00
|
|
|
|
%{_libdir}/*.so
|
|
|
|
|
%{_libdir}/pkgconfig/anthy.pc
|
|
|
|
|
|
2007-04-26 00:56:32 +02:00
|
|
|
|
%changelog
|