Files
tamago/tamago.spec

148 lines
4.8 KiB
RPMSpec
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#
# spec file for package tamago (Version 4.0.6_20011017cvs)
#
# Copyright (c) 2009 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# 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 http://bugs.opensuse.org/
#
# norootforbuild
Name: tamago
BuildRequires: emacs-x11 giflib-devel libpng-devel libtiff-devel xorg-x11-devel
License: GPL-2.0+
Group: System/I18n/Japanese
Requires: emacs
AutoReqProv: on
Version: 4.0.6_20011017cvs
Release: 848
Url: http://www.m17n.org/tamago
# 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)
# Source: ftp://ftp.m17n.org/pub/tamago/tamago-4.0.6.tar.gz
# I think it is better to use the CVS version, it already contains Canna support
# without the need of patches:
# get the tamago CVS source with:
# cvs -d :pserver:anonymous@cvs.m17n.org:/cvs/tamago co tamago
# and create the following tarball:
Source0: tamago-%{version}.tar.bz2
Source1: http://cgi18.plala.or.jp/nyy/canna/egg-canna.el.bz2
Source2: http://www.gcd.org/sengoku/boiling-egg/boiling-egg.el.bz2
Source3: http://www.m17n.org/tamago/pdf/ISFST99.pdf.bz2
Source4: http://www.m17n.org/tamago/pdf/LC99.pdf.bz2
Source5: suse-start.el
Patch0: eggrc.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildArch: noarch
Summary: Multilingual input method for Emacs
# Summary(ja): Emacs <20>Τ<EFBFBD><CEA4><EFBFBD><EFBFBD><EFBFBD>¿<EFBFBD><C2BF><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ˡ
# %description -l ja
# <20><><EFBFBD>٤ƤΥ<C6A4><CEA5><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> Emacs Lisp <20>Ǽ¸<C7BC><C2B8><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ƥ<EFBFBD><C6A4>ꡢTamago <20>ϡ<EFBFBD>GNU Emacs
# 20.5 <20>ʹߤ<CAB9>¿<EFBFBD><C2BF><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ϴĶ<CFB4><C4B6><EFBFBD><EFBFBD>󶡤<EFBFBD><F3B6A1A4>ޤ<EFBFBD><DEA4><EFBFBD><EFBFBD>Хå<D0A5><C3A5><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ɥ<EFBFBD><C9A5><EFBFBD><EFBFBD>ФȤ<D0A4><C8A4>Ƥϡ<C6A4>
# FreeWnn (jserver, cserver, tserver), Wnn6, SJ3 Ver.2, Canna <20><><EFBFBD>б<EFBFBD><D0B1><EFBFBD><EFBFBD>Ƥ<EFBFBD><C6A4>ޤ<EFBFBD><DEA4><EFBFBD>
#
# <20><><EFBFBD>ԡ<EFBFBD>
# ------
# NIIBE Yutaka <gniibe@chroot.org>
# KATAYAMA Yoshio <kate@pfu.co.jp>
# TOMURA Satoru <tomura@etl.go.jp>
%description
Tamago offers a multilingual input environment for GNU Emacs (>= 20.5).
It is completely written in Emacs Lisp and can use the backends FreeWnn
(jserver, cserver, tserver), Wnn6, SJ3 Ver.2, and Canna.
Authors:
--------
NIIBE Yutaka <gniibe@chroot.org>
KATAYAMA Yoshio <kate@pfu.co.jp>
TOMURA Satoru <tomura@etl.go.jp>
%prep
%setup -n tamago
%patch0 -p 1
cp -p $RPM_SOURCE_DIR/suse-start.el .
cp -p $RPM_SOURCE_DIR/egg-canna.el.bz2 .
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
for i in egg-canna boiling-egg
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
for i in egg-canna boiling-egg
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)
%doc AUTHORS COPYING ChangeLog* PROBLEMS README* TODO *.pdf doc/*
%{emacs_package_dir}
%config %{emacs_sitelisp_dir}/suse-start-%{name}.el
%{emacs_sitelisp_dir}/egg-canna.el
%{emacs_sitelisp_dir}/egg-canna.elc
%{emacs_sitelisp_dir}/boiling-egg.el
%{emacs_sitelisp_dir}/boiling-egg.elc
%changelog
* Wed Jan 25 2006 mls@suse.de
- converted neededforbuild to BuildRequires
* Fri Feb 06 2004 hmacht@suse.de
- building as non-root
* Wed May 21 2003 ro@suse.de
- remove CVS subdirs
* Wed Nov 13 2002 ro@suse.de
- use x-devel-packages
* Fri Feb 01 2002 ro@suse.de
- changed neededforbuild <libpng> to <libpng-devel-packages>
* Thu Nov 15 2001 mfabian@suse.de
- small fix to suse-start-tamago.el to make it work with Emacs 21
again
* Fri Nov 09 2001 mfabian@suse.de
- add libjpeg libpng libtiff libungif to '# neededforbuild'
* Fri Oct 19 2001 mfabian@suse.de
- new package: tamago-4.0.6_20011017cvs