File tamago.spec of Package tamago
#
# spec file for package tamago (Version 4.0.6_20020825cvs)
#
# Copyright (c) 2008 SUSE LINUX Products GmbH, Nuernberg, Germany.
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
#
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
# norootforbuild
# usedforbuild Mesa aaa_base acl atk attr audit-libs autoconf automake bash binutils brp-check-internal bzip2 cairo coreutils cpio cpp cpp43 cracklib ctags cups-libs cvs diffutils emacs emacs-info emacs-x11 file filesystem fillup findutils fontconfig fontconfig-devel freetype2 freetype2-devel gawk gcc gcc43 gdbm gettext-runtime gettext-tools giflib giflib-devel glib2 glib2-branding-upstream glibc glibc-devel glibc-locale glitz gmp grep groff gtk2 gzip hicolor-icon-theme info insserv keyutils-libs krb5 less libacl libasound2 libatk-1_0-0 libattr libbz2-1 libbz2-devel libcom_err2 libdb-4_5 libdrm libexpat-devel libexpat1 libgcc43 libglib-2_0-0 libgmodule-2_0-0 libgobject-2_0-0 libgomp43 libgthread-2_0-0 libjpeg libjpeg-devel libltdl-3 libmpfr1 libmudflap43 libncurses5 libopenssl0_9_8 libpng-devel libpng12-0 libreadline5 libstdc++-devel libstdc++43 libstdc++43-devel libtiff-devel libtiff3 libtool libuuid1 libvolume_id libxcrypt libzio linux-kernel-headers login m4 make man net-tools netcfg openssl-certs pam pam-modules pango patch pcre perl perl-base permissions pkg-config popt psmisc rpm sed sysvinit tar terminfo-base texinfo timezone util-linux xaw3d xorg-x11-devel xorg-x11-fonts-devel xorg-x11-libICE xorg-x11-libICE-devel xorg-x11-libSM xorg-x11-libSM-devel xorg-x11-libX11 xorg-x11-libX11-devel xorg-x11-libXau xorg-x11-libXau-devel xorg-x11-libXdmcp xorg-x11-libXdmcp-devel xorg-x11-libXext xorg-x11-libXext-devel xorg-x11-libXfixes xorg-x11-libXfixes-devel xorg-x11-libXmu xorg-x11-libXmu-devel xorg-x11-libXp xorg-x11-libXp-devel xorg-x11-libXpm xorg-x11-libXpm-devel xorg-x11-libXprintUtil xorg-x11-libXprintUtil-devel xorg-x11-libXrender xorg-x11-libXrender-devel xorg-x11-libXt xorg-x11-libXt-devel xorg-x11-libXv xorg-x11-libXv-devel xorg-x11-libfontenc xorg-x11-libfontenc-devel xorg-x11-libs xorg-x11-libxcb xorg-x11-libxcb-devel xorg-x11-libxkbfile xorg-x11-libxkbfile-devel xorg-x11-proto-devel xorg-x11-util-devel xorg-x11-xtrans-devel zlib zlib-devel
Name: tamago
BuildRequires: emacs-x11 giflib-devel libpng-devel libtiff-devel xorg-x11-devel
License: GPL v2 or later
Group: System/I18n/Japanese
Requires: emacs
AutoReqProv: on
Version: 4.0.6_20020825cvs
Release: 000.0
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:
# http://cvs.m17n.org/viewcvs/tamago/tamago.tar.gz?view=tar
# and create the following tarball:
Source0: tamago.tar.gz
#Source1: http://cgi18.plala.or.jp/nyy/canna/egg-canna.el.bz2
#Source2: http://www.gcd.org/sengoku/boiling-egg/boiling-egg.el.bz2
Source1: http://www.m17n.org/tamago/pdf/ISFST99.pdf.bz2
Source2: http://www.m17n.org/tamago/pdf/LC99.pdf.bz2
Source3: suse-start.el
Source4: http://www.meadowy.org/~shirai/elips/egg-anthy.tar.gz
#Patch0: eggrc.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildArch: noarch
Summary: Multilingual input method for Emacs
# Summary(ja): Emacs �Τ����¿���������ˡ
# %description -l ja
# ���٤ƤΥ������� Emacs Lisp �Ǽ¸�����Ƥ��ꡢTamago �ϡ�GNU Emacs
# 20.5 �ʹߤ�¿������ϴĶ������ޤ����Хå�����ɥ����ФȤ��Ƥϡ�
# FreeWnn (jserver, cserver, tserver), Wnn6, SJ3 Ver.2, Canna, Anthy
# ���б����Ƥ��ޤ���
#
# ��ԡ�
# ------
# 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, Canna and Anthy.
Authors:
--------
NIIBE Yutaka <gniibe@chroot.org>
KATAYAMA Yoshio <kate@pfu.co.jp>
TOMURA Satoru <tomura@etl.go.jp>
%debug_package
%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
# apply egg anthy patch
cp -p $RPM_SOURCE_DIR/egg-anthy.tar.gz .
mkdir -p doc/egg-anthy-20070606
tar xzf egg-anthy.tar.gz
cp -p egg-anthy-20070606/anthy.el egg/
cp -p egg-anthy-20070606/anthyipc.el egg/
cp -p egg-anthy-20070606/egg-anthy.readme doc/egg-anthy-20070606/
%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
* Thu Sep 18 2008 ***
- updated tamago source and merged anthy patches
* 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