2007-01-16 00:38:41 +01:00
|
|
|
#
|
2013-09-11 13:20:12 +02:00
|
|
|
# spec file for package tamago
|
2007-01-16 00:38:41 +01:00
|
|
|
#
|
2024-02-26 12:13:40 +01:00
|
|
|
# Copyright (c) 2024 SUSE LLC
|
2007-01-16 00:38:41 +01:00
|
|
|
#
|
2009-06-18 00:26:46 +02: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.
|
|
|
|
|
2022-08-31 09:56:46 +02:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2007-01-16 00:38:41 +01:00
|
|
|
#
|
|
|
|
|
2009-06-18 00:26:46 +02:00
|
|
|
|
|
|
|
Name: tamago
|
2015-02-05 13:43:43 +01:00
|
|
|
#Upstream name is tamago-tsunagi
|
|
|
|
%define tsunagiName %{name}-tsunagi
|
|
|
|
# 2015-02-03 Mitsutoshi NAKANO <bkbin005@rinku.zaq.ne.jp>
|
|
|
|
# I think tamago does not need X.
|
|
|
|
# tamago-tsunagi needs Emacs >= 23
|
|
|
|
#BuildRequires: emacs-x11
|
|
|
|
BuildRequires: emacs-nox >= 23
|
|
|
|
Requires: emacs >= 23
|
|
|
|
Version: 5.0.7.1
|
2013-09-11 13:20:12 +02:00
|
|
|
Release: 0
|
2022-08-31 09:56:46 +02:00
|
|
|
URL: http://sourceforge.jp/projects/tamago-tsunagi/
|
2007-01-16 00:38:41 +01:00
|
|
|
# Other useful, tamago related URLs:
|
|
|
|
# http://emacs-20.ki.nu/tamago/
|
|
|
|
# http://cgi18.plala.or.jp/~nyy/canna/
|
|
|
|
# http://www.gcd.org/sengoku/boiling-egg/
|
|
|
|
# ftp://ftp.ki.nu/pub/emcws/README.html (obsoleted by tamago)
|
2013-09-11 13:20:12 +02:00
|
|
|
|
2015-02-05 13:43:43 +01:00
|
|
|
Source0: http://osdn.dl.sourceforge.jp/tamago-tsunagi/62701/%{tsunagiName}-%{version}.tar.gz
|
|
|
|
|
2013-09-11 13:20:12 +02:00
|
|
|
# egg-canna.el was deleted 2013-08-27 by bkbin005@rinku.zaq.ne.jp
|
|
|
|
#Source1: http://cgi18.plala.or.jp/nyy/canna/egg-canna.el.bz2
|
|
|
|
|
|
|
|
Source2: boiling-egg.el.bz2
|
2015-02-05 13:43:43 +01:00
|
|
|
Source3: http://iij.dl.sourceforge.jp/tamago-tsunagi/62684/ISFST99.pdf.bz2
|
|
|
|
Source4: http://iij.dl.sourceforge.jp/tamago-tsunagi/62685/LC99.pdf.bz2
|
2009-06-18 00:26:46 +02:00
|
|
|
Source5: suse-start.el
|
|
|
|
Patch0: eggrc.patch
|
2022-08-31 09:56:46 +02:00
|
|
|
# PATCH-FIX-UPSTREAM tamago-5.0.7.1-make-coding-system.patch -- Fix build with Emacs 28
|
|
|
|
Patch1: tamago-5.0.7.1-make-coding-system.patch
|
2015-02-05 13:43:43 +01:00
|
|
|
#BuildRoot: %%{_tmppath}/%%{name}-%%{version}-build
|
2009-06-18 00:26:46 +02:00
|
|
|
BuildArch: noarch
|
|
|
|
Summary: Multilingual input method for Emacs
|
2022-08-31 09:56:46 +02:00
|
|
|
License: GPL-2.0-or-later
|
2013-09-11 13:20:12 +02:00
|
|
|
Group: System/I18n/Japanese
|
2007-01-16 00:38:41 +01:00
|
|
|
|
|
|
|
%description
|
2015-02-05 13:43:43 +01:00
|
|
|
Tamago offers a multilingual input environment for GNU Emacs (>= 23.x).
|
2007-01-16 00:38:41 +01:00
|
|
|
It is completely written in Emacs Lisp and can use the backends FreeWnn
|
|
|
|
(jserver, cserver, tserver), Wnn6, SJ3 Ver.2, and Canna.
|
|
|
|
|
|
|
|
%prep
|
2015-02-05 13:43:43 +01:00
|
|
|
%setup -q -n %{tsunagiName}-%{version}
|
2024-02-26 12:13:40 +01:00
|
|
|
%patch -P 0 -p1
|
|
|
|
%patch -P 1
|
2013-09-11 13:20:12 +02:00
|
|
|
|
2007-01-16 00:38:41 +01:00
|
|
|
cp -p $RPM_SOURCE_DIR/suse-start.el .
|
2013-09-11 13:20:12 +02:00
|
|
|
#cp -p $RPM_SOURCE_DIR/egg-canna.el.bz2 . # deleted 2013-08-27 .
|
2007-01-16 00:38:41 +01:00
|
|
|
cp -p $RPM_SOURCE_DIR/boiling-egg.el.bz2 .
|
|
|
|
cp -p $RPM_SOURCE_DIR/*.pdf.bz2 .
|
|
|
|
bunzip2 *.bz2
|
|
|
|
find -type d -name "CVS" | xargs rm -rfv
|
|
|
|
|
|
|
|
%build
|
|
|
|
%define emacs_sitelisp_dir %{_datadir}/emacs/site-lisp
|
|
|
|
%define emacs_package_dir %{emacs_sitelisp_dir}/egg
|
|
|
|
./configure --prefix=/usr
|
|
|
|
make
|
2013-09-11 13:20:12 +02:00
|
|
|
for i in boiling-egg # egg-canna was deleted 2013-08-27
|
2007-01-16 00:38:41 +01:00
|
|
|
do
|
|
|
|
emacs -batch -q -no-site-file -no-init-file -f batch-byte-compile $i.el
|
|
|
|
done
|
|
|
|
|
|
|
|
%install
|
|
|
|
if [ -n "%{?buildroot}" ] ; then
|
|
|
|
[ %{buildroot} != "/" ] && rm -rf %{buildroot}
|
|
|
|
fi
|
|
|
|
mkdir -p $RPM_BUILD_ROOT%{emacs_sitelisp_dir}
|
|
|
|
make install prefix=$RPM_BUILD_ROOT/usr
|
2013-09-11 13:20:12 +02:00
|
|
|
for i in boiling-egg # egg-canna was deleted 2013-08-27 .
|
2007-01-16 00:38:41 +01:00
|
|
|
do
|
|
|
|
install -m644 $i.{el,elc} $RPM_BUILD_ROOT%{emacs_sitelisp_dir}
|
|
|
|
done
|
|
|
|
{
|
|
|
|
echo ";; %{emacs_sitelisp_dir}/suse-start-%{name}.el"
|
|
|
|
echo ""
|
|
|
|
echo "(add-to-list 'load-path \"%{emacs_package_dir}\")"
|
|
|
|
echo ""
|
|
|
|
cat suse-start.el
|
|
|
|
echo ""
|
|
|
|
echo ";; %{emacs_sitelisp_dir}/suse-start-%{name}.el ends here"
|
|
|
|
} > %{buildroot}%{emacs_sitelisp_dir}/suse-start-%{name}.el
|
|
|
|
|
|
|
|
%clean
|
|
|
|
rm -fr $RPM_BUILD_ROOT
|
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root)
|
2015-02-05 13:43:43 +01:00
|
|
|
%doc AUTHORS COPYING ChangeLog* PROBLEMS README* TODO NEWS *.pdf doc/*
|
2007-01-16 00:38:41 +01:00
|
|
|
%{emacs_package_dir}
|
2015-02-05 13:43:43 +01:00
|
|
|
%{emacs_package_dir}/egg/.nosearch
|
|
|
|
%{emacs_package_dir}/its/.nosearch
|
|
|
|
%{emacs_sitelisp_dir}/suse-start-%{name}.el
|
2007-01-16 00:38:41 +01:00
|
|
|
%{emacs_sitelisp_dir}/boiling-egg.el
|
|
|
|
%{emacs_sitelisp_dir}/boiling-egg.elc
|
|
|
|
|
2009-06-18 00:26:46 +02:00
|
|
|
%changelog
|