modify source url

This commit is contained in:
wang--ge 2020-12-21 16:16:19 +08:00
parent 0c895d8bf7
commit 47c3699898
2 changed files with 29 additions and 25 deletions

View File

@ -1,12 +1,11 @@
Name: anthy
Version: 9100h
Release: 39
Release: 40
Summary: Anthy is a system for Japanese input method.
License: LGPLv2+ and GPLv2 and Public Domain
URL: http://sourceforge.jp/projects/anthy/
Source0: http://osdn.dl.sourceforge.jp/anthy/37536/anthy-%{version}.tar.gz
Source1: %{name}-init.el
Source2: dict.args.in
Source1: https://github.com/gooselinux/anthy/raw/master/%{name}-init.el
BuildRequires: emacs gcc
Requires: emacs-filesystem >= %{_emacs_version}
@ -62,7 +61,30 @@ if ! test -f $RPM_BUILD_DIR/%{name}-%{version}/mkworddic/dict.args.in-orig; then
fi
install -Dd -m 0755 %{buildroot}/%{name}-%{version}/mkworddic
install %{SOURCE2} %{buildroot}/%{name}-%{version}/mkworddic/
touch %{buildroot}/%{name}-%{version}/mkworddic/dict.args.in
cat > %{buildroot}/%{name}-%{version}/mkworddic/dict.args.in << eof
# Generated by rpm script
set_input_encoding utf8
read @top_srcdir@/alt-cannadic/gcanna.ctd.utf8
read @top_srcdir@/alt-cannadic/gcannaf.ctd.utf8
read @top_srcdir@/alt-cannadic/gtankan.ctd.utf8
read @top_srcdir@/alt-cannadic/extra/g-jiritu-34.t.norm
read @top_srcdir@/alt-cannadic/extra/gc-fullname-34.t.norm
read @top_srcdir@/alt-cannadic/extra/gt-tankanji_kanji-34.t.norm
read @top_srcdir@/alt-cannadic/extra/gt-tankanji_hikanji-34.t.norm
read @top_srcdir@/alt-cannadic/extra/gf-fuzoku-34.t.norm
read @top_srcdir@/mkworddic/adjust.t.utf8
read @top_srcdir@/mkworddic/compound.t.utf8
read @top_srcdir@/mkworddic/extra.t.utf8
read @top_srcdir@/alt-cannadic/g_fname.t
#
build_reverse_dict
set_dict_encoding utf8
read_uc @top_srcdir@/mkworddic/udict.utf8
write anthy.wdic
done
eof
touch -r $RPM_BUILD_DIR/%{name}-%{version}/mkworddic/dict.args.in{-orig,}
%build
@ -109,5 +131,8 @@ cp -a %{_builddir}/%{name}-%{version}/doc %{buildroot}/
%doc ChangeLog DIARY NEWS README
%changelog
* Wed Dec 16 2020 Ge Wang<wangge20@huawei.com> - 9100h-40
- Modify Source url
* Fri Feb 14 2020 gulining<gulining1@huawei.com> - 9100h-39
- Package init

View File

@ -1,21 +0,0 @@
# Generated by rpm script
set_input_encoding utf8
read @top_srcdir@/alt-cannadic/gcanna.ctd.utf8
read @top_srcdir@/alt-cannadic/gcannaf.ctd.utf8
read @top_srcdir@/alt-cannadic/gtankan.ctd.utf8
read @top_srcdir@/alt-cannadic/extra/g-jiritu-34.t.norm
read @top_srcdir@/alt-cannadic/extra/gc-fullname-34.t.norm
read @top_srcdir@/alt-cannadic/extra/gt-tankanji_kanji-34.t.norm
read @top_srcdir@/alt-cannadic/extra/gt-tankanji_hikanji-34.t.norm
read @top_srcdir@/alt-cannadic/extra/gf-fuzoku-34.t.norm
read @top_srcdir@/mkworddic/adjust.t.utf8
read @top_srcdir@/mkworddic/compound.t.utf8
read @top_srcdir@/mkworddic/extra.t.utf8
read @top_srcdir@/alt-cannadic/g_fname.t
#
build_reverse_dict
set_dict_encoding utf8
read_uc @top_srcdir@/mkworddic/udict.utf8
write anthy.wdic
done