File edict-emacs.spec of Package edict-emacs

#
# spec file for package edict-emacs (Version 0.9.8)
#
# Copyright (c) 2004 SuSE Linux AG, 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://www.suse.de/feedback/
#

# norootforbuild
# usedforbuild    aaa_base acl attr bash bind-utils bison bzip2 coreutils cpio cpp cracklib cvs cyrus-sasl db devs diffutils e2fsprogs file filesystem fillup findutils flex gawk gdbm-devel glibc glibc-devel glibc-locale gpm grep groff gzip info insserv kbd less libacl libattr libgcc libselinux libstdc++ libxcrypt m4 make man mktemp module-init-tools ncurses ncurses-devel net-tools netcfg openldap2-client openssl pam pam-modules patch permissions popt procinfo procps psmisc pwdutils rcs readline sed sendmail strace syslogd sysvinit tar tcpd texinfo timezone unzip util-linux vim zlib zlib-devel autoconf automake binutils emacs emacs-nox gcc gdbm gettext libtool perl rpm

Name:         edict-emacs
BuildRequires: emacs-nox
Summary:      edict.el, an Emacs Front-end for EDICT
Version:      0.9.8
Release:      675
Group:        Productivity/Editors/Emacs
Requires:     emacs edict
License:      GPL
URL:          http://turnbull.sk.tsukuba.ac.jp/
Source:       http://turnbull.sk.tsukuba.ac.jp/Tools/XEmacs/packages/edict/edict-1.06-src.tar.gz
Source1:      suse-start.el
Patch0:       edict-utf-8.patch
BuildRoot:    %{_tmppath}/%{name}-%{version}-build
BuildArch:    noarch

%description
The original edict.el was written by Per Hammarlund. It is an interface
to the EDICT Japanese-English dictionary compiled by Jim Breen at
Monash University.  Using the region and couple of keystrokes, edict.el
will look up the Japanese key and return all the EDICT entries
containing that key, in a pop-up buffer.  English is even easier, you
just put point anywhere in the word you want to look up.

Bob Kerns added a morphology engine, which reduces a highly inflected
Japanese word to a list of dictionary forms (eg, itta -> (iku, iu)),
all of which are looked up.



Authors:
--------
    Stephen J. Turnbull <turnbull@sk.tsukuba.ac.jp>
    Per Hammarlund <perham@nada.kth.se>
    Bob Kerns <rwk@crl.dec.com>

%prep
%setup -n mule
%patch0 -p1 -b .edict-utf-8
mv edict/* .
cp -p $RPM_SOURCE_DIR/suse-start.el .

%build
%define emacs_sitelisp_dir /usr/share/emacs/site-lisp
%define emacs_package_dir /usr/share/emacs/site-lisp/edict
%define emacs_infodir %{_infodir}
make -f Makefile.FSF lispdir=%{emacs_sitelisp_dir} infodir=%{emacs_infodir}

%install
if [ -n "%{?buildroot}" ] ; then
   [ %{buildroot} != "/" ] && rm -rf %{buildroot};
fi
mkdir -p $RPM_BUILD_ROOT%{emacs_package_dir}
install -m 644 *.el *.elc $RPM_BUILD_ROOT%{emacs_package_dir}
{
  echo ";; %{emacs_sitelisp_dir}/suse-start-edict.el"
  echo ""
  echo "(add-to-list 'load-path \"%{emacs_package_dir}\")"
  echo ""
  cat suse-start.el
  echo ""
  echo ";; %{emacs_sitelisp_dir}/suse-start-edict.el ends here"
} > %{buildroot}%{emacs_sitelisp_dir}/suse-start-edict.el

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%doc *.096 TODO COPYING ChangeLog README TODO
%{emacs_package_dir}
%config %{emacs_sitelisp_dir}/suse-start-edict.el

%changelog -n edict-emacs
* Wed Jan 25 2006 - mls@suse.de
- converted neededforbuild to BuildRequires
* Tue Feb 24 2004 - hmacht@suse.de
- building as non-root
* Sun Aug 24 2003 - mfabian@suse.de
- use utf-8 as the default encoding for EDICT dictionaries.
* Fri Apr 20 2001 - mfabian@suse.de
- new package: edict-emacs, version 0.9.8
openSUSE Build Service is sponsored by