2019-08-07 10:36:24 +00:00
|
|
|
%global pkg anthy-unicode
|
2021-07-12 12:02:36 +00:00
|
|
|
%bcond_without autoreconf
|
2019-08-07 10:36:24 +00:00
|
|
|
|
2022-02-11 02:18:48 +00:00
|
|
|
%if (0%{?fedora} > 35 || 0%{?rhel} > 7)
|
2022-02-11 01:43:35 +00:00
|
|
|
%bcond_with xemacs
|
|
|
|
%else
|
|
|
|
%bcond_without xemacs
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
2019-08-07 10:36:24 +00:00
|
|
|
Name: anthy-unicode
|
2021-12-24 13:04:35 +00:00
|
|
|
Version: 1.0.0.20211224
|
2024-03-14 12:29:32 +00:00
|
|
|
Release: 13%{?dist}
|
2019-08-07 10:36:24 +00:00
|
|
|
# The entire source code is LGPLv2+ and dictionaries is GPLv2. the corpus data is under Public Domain.
|
2022-11-16 03:53:54 +00:00
|
|
|
License: LGPL-2.0-or-later and GPL-2.0-or-later and LicenseRef-Fedora-Public-Domain
|
2019-08-07 10:36:24 +00:00
|
|
|
URL: https://github.com/fujiwarat/anthy-unicode/wiki
|
|
|
|
BuildRequires: emacs
|
|
|
|
BuildRequires: gcc
|
|
|
|
BuildRequires: git
|
2022-02-11 01:43:35 +00:00
|
|
|
%if %{with xemacs}
|
2019-08-07 10:36:24 +00:00
|
|
|
BuildRequires: xemacs
|
2022-02-11 01:43:35 +00:00
|
|
|
# overlay.el is required by anthy-unicode.el and anthy-unicode-isearch.el
|
|
|
|
BuildRequires: xemacs-packages-extra
|
2019-08-07 10:36:24 +00:00
|
|
|
%endif
|
2019-10-21 08:21:24 +00:00
|
|
|
%if %{with autoreconf}
|
|
|
|
BuildRequires: autoconf
|
|
|
|
BuildRequires: automake
|
|
|
|
BuildRequires: libtool
|
2020-12-16 23:30:09 +00:00
|
|
|
BuildRequires: make
|
2019-10-21 08:21:24 +00:00
|
|
|
%endif
|
2019-08-07 10:36:24 +00:00
|
|
|
|
|
|
|
Source0: https://github.com/fujiwarat/anthy-unicode/releases/download/%{version}/%{name}-%{version}.tar.gz
|
|
|
|
Source1: %{name}-init.el
|
|
|
|
# Upstreamed patches
|
2019-10-16 09:02:20 +00:00
|
|
|
#Patch0: %%{name}-HEAD.patch
|
2022-02-11 01:43:35 +00:00
|
|
|
Patch0: %{name}-HEAD.patch
|
2019-08-07 10:36:24 +00:00
|
|
|
|
|
|
|
Summary: Japanese character set input library for Unicode
|
|
|
|
|
|
|
|
%description
|
|
|
|
Anthy Unicode is another Anthy project and provides the library to input
|
|
|
|
Japanese on the applications, such as X applications and emacs. and the
|
|
|
|
user dictionaries and the users information which is used for the conversion,
|
|
|
|
is stored into their own home directory. So Anthy Unicode is secure than
|
|
|
|
other conversion server.
|
|
|
|
|
|
|
|
%package -n emacs-%{pkg}
|
|
|
|
Summary: Emacs files for %{pkg}
|
|
|
|
Requires: %{name} = %{version}-%{release}
|
2024-03-14 12:29:32 +00:00
|
|
|
Requires: emacs-filesystem >= %{_emacs_version}
|
2019-08-07 10:36:24 +00:00
|
|
|
BuildArch: noarch
|
|
|
|
|
|
|
|
%description -n emacs-%{pkg}
|
|
|
|
This package contains the byte compiled elips packages to run %{pkg}
|
|
|
|
with GNU Emacs.
|
|
|
|
|
2022-02-11 01:43:35 +00:00
|
|
|
%if %{with xemacs}
|
2019-08-07 10:36:24 +00:00
|
|
|
%package -n xemacs-%{pkg}
|
|
|
|
Summary: XEmacs files for %{pkg}
|
|
|
|
Requires: %{name} = %{version}-%{release}
|
2024-03-14 12:29:32 +00:00
|
|
|
Requires: xemacs-filesystem >= %{_xemacs_version}
|
2019-08-07 10:36:24 +00:00
|
|
|
BuildArch: noarch
|
|
|
|
|
|
|
|
%description -n xemacs-%{pkg}
|
|
|
|
This package contains the elips packages to run %{pkg} with GNU XEmacs.
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%package devel
|
|
|
|
Summary: Header files and library for developing programs which uses Anthy Unicode
|
|
|
|
Requires: %{name}%{?_isa} = %{version}-%{release}
|
|
|
|
Requires: pkgconfig
|
|
|
|
|
|
|
|
%description devel
|
|
|
|
The anthy-devel package contains the development files which is needed to build
|
|
|
|
the programs which uses Anthy Unicode.
|
|
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%autosetup -S git
|
|
|
|
|
|
|
|
%build
|
2019-10-21 08:21:24 +00:00
|
|
|
%if %{with autoreconf}
|
|
|
|
autoreconf -f -i -v
|
|
|
|
%endif
|
2019-08-07 10:36:24 +00:00
|
|
|
%configure --disable-static
|
|
|
|
make %{?_smp_mflags}
|
|
|
|
|
|
|
|
%install
|
|
|
|
make install DESTDIR=$RPM_BUILD_ROOT INSTALL="install -p"
|
|
|
|
|
|
|
|
# remove unnecessary files
|
|
|
|
rm $RPM_BUILD_ROOT%{_libdir}/lib*.la
|
|
|
|
|
|
|
|
## for emacs-anthy
|
|
|
|
mkdir -p $RPM_BUILD_ROOT%{_emacs_sitestartdir}
|
|
|
|
install -m 644 %{SOURCE1} $RPM_BUILD_ROOT%{_emacs_sitestartdir}
|
|
|
|
|
2022-02-11 01:43:35 +00:00
|
|
|
%if %{with xemacs}
|
2019-08-07 10:36:24 +00:00
|
|
|
## for xemacs-anthy
|
|
|
|
mkdir -p $RPM_BUILD_ROOT%{_xemacs_sitestartdir}
|
|
|
|
install -m 644 %{SOURCE1} $RPM_BUILD_ROOT%{_xemacs_sitestartdir}
|
|
|
|
# FIXME lisp build
|
|
|
|
pushd $RPM_BUILD_DIR/%{name}-%{version}/src-util
|
|
|
|
make clean
|
2022-02-11 01:43:35 +00:00
|
|
|
#make EMACS=xemacs lispdir="%%{_xemacs_sitelispdir}/%%{pkg}"
|
|
|
|
# The latest /usr/share/automake-*/am/lisp.am calls -L option for
|
|
|
|
# $(EMACS) --batch but -L is not supported by xemacs.
|
|
|
|
# Copy elisp-comp script here from old automake
|
|
|
|
xemacs --batch --eval '(setq load-path (cons nil load-path))' -f batch-byte-compile *.el
|
|
|
|
make
|
2019-08-07 10:36:24 +00:00
|
|
|
make install-lispLISP DESTDIR=$RPM_BUILD_ROOT EMACS=xemacs lispdir="%{_xemacs_sitelispdir}/%{pkg}" INSTALL="install -p"
|
|
|
|
popd
|
|
|
|
%endif
|
|
|
|
|
2019-10-21 08:21:24 +00:00
|
|
|
%check
|
2020-11-09 07:59:58 +00:00
|
|
|
sed -e "s|@datadir@|$PWD|" -e "s|@PACKAGE@|mkanthydic|" \
|
|
|
|
anthy-unicode.conf.in > test.conf
|
|
|
|
_TEST_ENV="LD_LIBRARY_PATH=$PWD/src-main/.libs:$PWD/src-worddic/.libs"
|
|
|
|
_TEST_ENV="$_TEST_ENV CONFFILE=$PWD/test.conf"
|
2019-10-21 08:21:24 +00:00
|
|
|
cd test
|
2020-11-09 07:59:58 +00:00
|
|
|
env $_TEST_ENV ./anthy --all
|
|
|
|
env $_TEST_ENV ./checklib
|
|
|
|
cd ../src-util
|
|
|
|
env $_TEST_ENV ./anthy-dic-tool-unicode --load dic-tool-input
|
|
|
|
diff $HOME/.config/anthy/private_words_default dic-tool-result
|
|
|
|
env $_TEST_ENV ./anthy-dic-tool-unicode --dump
|
2021-07-12 12:02:36 +00:00
|
|
|
mkdir -p $HOME/.anthy
|
2020-11-09 07:59:58 +00:00
|
|
|
mv $HOME/.config/anthy/private_words_default $HOME/.anthy
|
|
|
|
env $_TEST_ENV ./anthy-dic-tool-unicode --migrate
|
|
|
|
diff $HOME/.config/anthy/private_words_default dic-tool-result
|
|
|
|
cd ..
|
|
|
|
|
2019-10-21 08:21:24 +00:00
|
|
|
|
2019-08-07 10:36:24 +00:00
|
|
|
%ldconfig_scriptlets
|
|
|
|
|
|
|
|
%files
|
|
|
|
%doc AUTHORS ChangeLog DIARY NEWS README
|
|
|
|
%license COPYING
|
|
|
|
%{_bindir}/*
|
|
|
|
# If new keywords are added in conf files, "noreplace" flag needs to be deleted
|
|
|
|
%config(noreplace) %{_sysconfdir}/*.conf
|
|
|
|
%{_libdir}/lib*.so.*
|
|
|
|
%{_datadir}/%{pkg}/
|
|
|
|
|
|
|
|
%files -n emacs-%{pkg}
|
|
|
|
%doc doc/ELISP
|
|
|
|
%{_emacs_sitelispdir}/%{pkg}/*.el
|
|
|
|
%{_emacs_sitelispdir}/%{pkg}/*.elc
|
|
|
|
%{_emacs_sitestartdir}/*.el
|
|
|
|
%dir %{_emacs_sitelispdir}/%{pkg}
|
|
|
|
|
2022-02-11 01:43:35 +00:00
|
|
|
%if %{with xemacs}
|
2019-08-07 10:36:24 +00:00
|
|
|
%files -n xemacs-%{pkg}
|
|
|
|
%doc doc/ELISP
|
|
|
|
%{_xemacs_sitelispdir}/%{pkg}/*.el
|
|
|
|
%if %{with xemacs}
|
|
|
|
%{_xemacs_sitelispdir}/%{pkg}/*.elc
|
|
|
|
%endif
|
|
|
|
%{_xemacs_sitestartdir}/*.el
|
|
|
|
%dir %{_xemacs_sitelispdir}/%{pkg}
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%files devel
|
|
|
|
%doc doc/DICLIB doc/DICUTIL doc/GLOSSARY doc/GRAMMAR doc/GUIDE.english doc/ILIB doc/LEARNING doc/LIB doc/MISC doc/POS doc/SPLITTER doc/TESTING doc/protocol.txt
|
|
|
|
%{_includedir}/*
|
|
|
|
%{_libdir}/lib*.so
|
|
|
|
%{_libdir}/pkgconfig/*.pc
|
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
2024-03-14 12:29:32 +00:00
|
|
|
* Thu Mar 14 2024 Takao Fujiwara <fujiwara@redhat.com> 1.0.0.20211224-13
|
|
|
|
- Resolves #2269401 Fix おきのえらぶ in gcanna.ctd
|
|
|
|
|
2024-01-22 23:09:41 +00:00
|
|
|
* Mon Jan 22 2024 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.0.20211224-12
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
|
|
|
|
|
2024-01-19 13:06:33 +00:00
|
|
|
* Fri Jan 19 2024 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.0.20211224-11
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
|
|
|
|
|
2023-07-19 13:23:48 +00:00
|
|
|
* Wed Jul 19 2023 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.0.20211224-10
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
|
|
|
|
|
2023-01-18 21:50:05 +00:00
|
|
|
* Wed Jan 18 2023 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.0.20211224-9
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
|
|
|
|
|
2022-11-16 03:53:54 +00:00
|
|
|
* Wed Nov 16 2022 Takao Fujiwara <fujiwara@redhat.com> 1.0.0.20211224-8
|
|
|
|
- Migrate license tag to SPDX
|
|
|
|
|
2022-07-20 20:54:48 +00:00
|
|
|
* Wed Jul 20 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.0.20211224-7
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
|
|
|
|
|
2022-07-19 10:34:22 +00:00
|
|
|
* Tue Jul 19 2022 Takao Fujiwara <fujiwara@redhat.com> 1.0.0.20211224-6
|
|
|
|
- Rename master_dic_file to main_dic_file
|
|
|
|
|
2022-05-06 11:48:11 +00:00
|
|
|
* Fri May 06 2022 Takao Fujiwara <fujiwara@redhat.com> 1.0.0.20211224-5
|
|
|
|
- Fix GCC_ANALYZER_WARNING with -Wanalyzer-null-dereference
|
|
|
|
|
2022-02-11 02:18:48 +00:00
|
|
|
* Fri Feb 11 2022 Takao Fujiwara <fujiwara@redhat.com> 1.0.0.20211224-4
|
2022-02-11 01:43:35 +00:00
|
|
|
- Resolves: #2051670 xemacs is a dead package
|
|
|
|
|
2022-01-19 21:20:52 +00:00
|
|
|
* Wed Jan 19 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.0.20211224-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
|
|
|
|
|
2021-12-24 13:04:35 +00:00
|
|
|
* Fri Dec 24 2021 Takao Fujiwara <fujiwara@redhat.com> 1.0.0.20211224-1
|
|
|
|
- Bump to 1.0.0.20211224-1
|
|
|
|
|
2021-10-26 09:21:50 +00:00
|
|
|
* Tue Oct 26 2021 Takao Fujiwara <fujiwara@redhat.com> 1.0.0.20201109-10
|
2021-10-26 07:49:58 +00:00
|
|
|
- Resolves: #1998727 Fix emacs-anthy-unicode
|
|
|
|
|
2021-10-22 00:13:18 +00:00
|
|
|
* Thu Oct 21 2021 Takao Fujiwara <fujiwara@redhat.com> 1.0.0.20201109-8
|
2021-10-26 07:49:58 +00:00
|
|
|
- Resolves: #2007482 Update gcanna.ctd with Shubitai
|
2021-10-22 00:13:18 +00:00
|
|
|
|
2021-07-21 17:38:55 +00:00
|
|
|
* Wed Jul 21 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.0.20201109-7
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
|
|
|
|
|
2021-07-12 23:46:58 +00:00
|
|
|
* Tue Jul 13 2021 Takao Fujiwara <fujiwara@redhat.com> 1.0.0.20201109-6
|
|
|
|
- Fix covscan report
|
|
|
|
|
2021-07-12 12:02:36 +00:00
|
|
|
* Mon Jul 12 2021 Takao Fujiwara <fujiwara@redhat.com> 1.0.0.20201109-5
|
|
|
|
- Fix covscan report
|
|
|
|
|
2021-05-03 11:27:00 +00:00
|
|
|
* Mon May 03 2021 Takao Fujiwara <fujiwara@redhat.com> 1.0.0.20201109-4
|
|
|
|
- Delete unnecessary xemacs in tests/tests.yml
|
|
|
|
|
2021-05-01 01:58:00 +00:00
|
|
|
* Sat May 01 2021 Takao Fujiwara <fujiwara@redhat.com> 1.0.0.20201109-3
|
|
|
|
- Enable CI
|
|
|
|
|
2021-01-26 00:10:12 +00:00
|
|
|
* Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.0.20201109-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
|
|
|
|
2020-11-09 07:59:58 +00:00
|
|
|
* Mon Nov 09 2020 Takao Fujiwara <fujiwara@redhat.com> 1.0.0.20201109-1
|
|
|
|
- Bump 1.0.0.20201109
|
|
|
|
|
2020-07-31 23:59:49 +00:00
|
|
|
* Fri Jul 31 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.0.20191015-5
|
|
|
|
- Second attempt - Rebuilt for
|
|
|
|
https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
|
|
|
|
2020-07-27 12:06:26 +00:00
|
|
|
* Mon Jul 27 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.0.20191015-4
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
|
|
|
|
2020-01-28 11:38:55 +00:00
|
|
|
* Tue Jan 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.0.20191015-3
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
|
|
|
|
2019-10-21 08:21:24 +00:00
|
|
|
* Mon Oct 21 2019 Takao Fujiwara <fujiwara@redhat.com> 1.0.0.20191015-2
|
|
|
|
- Add %%check to run local test programs
|
|
|
|
|
2019-10-16 08:27:13 +00:00
|
|
|
* Tue Oct 15 2019 Takao Fujiwara <fujiwara@redhat.com> 1.0.0.20191015-1
|
|
|
|
- Release anthy-unicode 1.0.0.20191015
|
|
|
|
|
2019-08-07 10:36:24 +00:00
|
|
|
* Wed Aug 07 2019 Takao Fujiwara <fujiwara@redhat.com> 1.0.0.20190412-1
|
|
|
|
- Initial package
|
|
|
|
- Update license
|
|
|
|
- Delete Group tags
|
|
|
|
- Make parse_modify_freq_command() for UTF-8
|
|
|
|
- Revert ptab.h to EUC-JP
|
|
|
|
- BuildRequire: git
|
|
|
|
- Genearate emacs- and xemacs- sub packages
|
|
|
|
- Fix some obsolete warnings in emacs batch-byte-compile
|
|
|
|
- Fix shared-lib-calls-exit
|
|
|
|
- Fix non-conffile-in-etc
|
|
|
|
- Fix description-line-too-long
|