[Fedora-i18n-bugs] [emacs-lookup] Update to 1.4.1-3.
Daiki Ueno
ueno at fedoraproject.org
Tue Nov 16 00:47:12 UTC 2010
commit 26af18aa09c887232079b97662b1028f5cc109ee
Author: Daiki Ueno <ueno at unixuser.org>
Date: Tue Nov 16 09:51:17 2010 +0900
Update to 1.4.1-3.
.gitignore | 1 +
emacs-lookup.spec | 112 +++++++++++++++++++++++++++++++++++++++++
lookup-lisp-makefile-am.patch | 36 +++++++++++++
sources | 1 +
4 files changed, 150 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..1fa4ce5 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/lookup-1.4.1.tar.gz
diff --git a/emacs-lookup.spec b/emacs-lookup.spec
new file mode 100644
index 0000000..6b33943
--- /dev/null
+++ b/emacs-lookup.spec
@@ -0,0 +1,112 @@
+%global pkg lookup
+%global pkgname Lookup
+
+Name: emacs-%{pkg}
+Version: 1.4.1
+Release: 3%{?dist}
+Summary: Search Interface with Electronic Dictionaries for Emacs
+Summary(ja): Emacs 上で動作する辞書検索インターフェイス
+
+Group: Applications/Text
+License: GPLv2+
+URL: http://openlab.ring.gr.jp/edict/lookup/
+Source0: http://openlab.ring.gr.jp/edict/lookup/dist/%{pkg}-%{version}.tar.gz
+Patch0: lookup-lisp-makefile-am.patch
+
+BuildArch: noarch
+BuildRequires: emacs, automake
+Requires: emacs(bin) >= %{_emacs_version}
+Requires(post): info
+Requires(preun): info
+
+%description
+Lookup is an integrated search interface with electronic dictionaries
+for the Emacs text editor. You can use various kinds of dictionaries,
+such as CD-ROM books and online dictionaries, in an efficient and
+effective manner.
+
+%description -l ja
+Lookup は Emacs エディタで利用できる辞書検索インターフェースです。市販
+のCD-ROM 辞書やネットワークの辞書サーバを始め、様々な情報源から簡単な操
+作と設定で辞書検索が行なえます。
+
+%package -n %{name}-el
+Summary: Elisp source files for %{pkgname} under GNU Emacs
+Group: Applications/Text
+Requires: %{name} = %{version}-%{release}
+
+%description -n %{name}-el
+This package contains the elisp source files for %{pkgname} under GNU Emacs. You
+do not need to install this package to run %{pkgname}. Install the %{name}
+package to use %{pkgname} with GNU Emacs.
+
+
+%prep
+%setup -q -n %{pkg}-%{version}
+%patch0 -p0
+for i in README NEWS texi/*.texi; do
+ iconv -f ISO-2022-JP -t UTF-8 $i > $i.UTF-8
+ mv $i.UTF-8 $i
+done
+autoreconf -f -i
+
+
+%build
+%configure
+make %{?_smp_mflags}
+cat > %{name}-init.el <<"EOF"
+(autoload 'lookup "lookup" nil t)
+(autoload 'lookup-region "lookup" nil t)
+(autoload 'lookup-pattern "lookup" nil t)
+EOF
+
+
+
+%install
+%__mkdir_p $RPM_BUILD_ROOT%{_emacs_sitelispdir}/%{pkg}
+make install lispdir=$RPM_BUILD_ROOT%{_emacs_sitelispdir}/%{pkg} \
+ infodir=$RPM_BUILD_ROOT%{_infodir}
+rm -f $RPM_BUILD_ROOT%{_infodir}/dir # don't package but instead update in pre and post
+
+%__mkdir_p $RPM_BUILD_ROOT%{_emacs_sitestartdir}
+install -m 644 %{name}-init.el ${RPM_BUILD_ROOT}%{_emacs_sitestartdir}/%{pkg}-init.el
+
+
+%post
+/sbin/install-info %{_infodir}/lookup.info.gz %{_infodir}/dir || :
+
+
+%preun
+if [ $1 = 0 ]; then
+ /sbin/install-info --delete %{_infodir}/lookup.info.gz \
+ %{_infodir}/dir || :
+fi
+
+
+%files
+%defattr(-,root,root,-)
+%doc AUTHORS COPYING NEWS README
+%doc %{_infodir}/*.gz
+%{_emacs_sitelispdir}/%{pkg}/*.elc
+%{_emacs_sitestartdir}/*.el
+%dir %{_emacs_sitelispdir}/%{pkg}
+
+%files -n %{name}-el
+%defattr(-,root,root,-)
+%{_emacs_sitelispdir}/%{pkg}/*.el
+
+
+%changelog
+* Tue Nov 16 2010 Daiki Ueno <dueno at redhat.com> - 1.4.1-3
+- include COPYING in %%doc.
+- add Japanese translations of summary and description sections.
+
+* Fri Oct 29 2010 Daiki Ueno <dueno at redhat.com> - 1.4.1-2
+- convert encoding of *.texi to UTF-8.
+
+* Thu Oct 28 2010 Daiki Ueno <dueno at redhat.com> - 1.4.1-1
+- repackage version 1.4.1 maintained by the edict project, instead of
+ 1.99 beta.
+
+* Tue Apr 6 2010 Daiki Ueno <ueno at unixuser.org> - 1.99.95-1
+- initial packaging for Fedora.
diff --git a/lookup-lisp-makefile-am.patch b/lookup-lisp-makefile-am.patch
new file mode 100644
index 0000000..eaa9fd5
--- /dev/null
+++ b/lookup-lisp-makefile-am.patch
@@ -0,0 +1,36 @@
+Index: lisp/Makefile.am
+===================================================================
+RCS file: /circus/cvsroot/edict-devel/lookup-1/lisp/Makefile.am,v
+retrieving revision 1.5
+diff -u -r1.5 Makefile.am
+--- lisp/Makefile.am 28 Jan 2004 00:09:34 -0000 1.5
++++ lisp/Makefile.am 28 Oct 2010 09:21:26 -0000
+@@ -5,17 +5,24 @@
+ ndspell.el ndcookie.el ndmisc.el ndsrd.el sdicf.el stem-english.el
+ EXTRA_DIST = lookup-vars.el.in lookup-compile.el ndnmz.el \
+ lookup-logo.xbm lookup-logo.xpm $(SOURCES)
++CLEANFILES = stamp-elc
+ DISTCLEANFILES = lookup-vars.el
+ MAINTAINERCLEANFILES = Makefile.in
+
+-lisp_LISP = $(SOURCES) lookup-vars.el
+-ELCFILES = $(lisp_LISP:.el=.elc)
++ELCFILES = lookup-vars.elc $(SOURCES:.el=.elc)
++lookuplisp_DATA = $(ELCFILES) $(SOURCES)
++lookuplispdir = $(lispdir)
+
+-$(ELCFILES): lookup-vars.el $(srcdir)/lookup-compile.el $(lisp_LISP)
+- @$(EMACS) -batch -l $(srcdir)/lookup-compile.el $(lisp_LISP)
++all: stamp-elc
++stamp-elc: lookup-vars.el $(srcdir)/lookup-compile.el $(SOURCES)
++ @$(EMACS) -q -no-site-file -batch -l $(srcdir)/lookup-compile.el \
++ $(SOURCES) lookup-vars.el
++ @touch stamp-elc
+
+ lookup-vars.el: $(top_builddir)/config.status $(srcdir)/lookup-vars.el.in
+ @rm -f lookup-vars.el
+ @sed -e "s/\@VERSION\@/$(VERSION)/" \
+ -e "s!\@pkgemacsdir\@!$(emacsdir)/lookup!" \
+ $(srcdir)/lookup-vars.el.in > lookup-vars.el
++
++$(ELCFILES): stamp-elc
diff --git a/sources b/sources
index e69de29..2452644 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+5f66507835f8636bd3a91243d0760a46 lookup-1.4.1.tar.gz
More information about the i18n-bugs
mailing list