From 98f68762947a2b44a36f8b73f357ad7cbade87c3d30ca2cc551c711094db978d Mon Sep 17 00:00:00 2001 From: OBS User unknown Date: Mon, 15 Jan 2007 23:08:52 +0000 Subject: [PATCH] OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/ddskk?expand=0&rev=1 --- .gitattributes | 23 +++ .gitignore | 1 + SKK-JISYO.JIS2.bz2 | 3 + SKK-JISYO.JIS3_4.bz2 | 3 + SKK-JISYO.L.bz2 | 3 + SKK-JISYO.M.bz2 | 3 + SKK-JISYO.ML.bz2 | 3 + SKK-JISYO.S.bz2 | 3 + SKK-JISYO.assoc.bz2 | 3 + SKK-JISYO.china_taiwan.bz2 | 3 + SKK-JISYO.edict.tar.bz2 | 3 + SKK-JISYO.fukugo.bz2 | 3 + SKK-JISYO.geo.bz2 | 3 + SKK-JISYO.jinmei.bz2 | 3 + SKK-JISYO.law.bz2 | 3 + SKK-JISYO.mazegaki.bz2 | 3 + SKK-JISYO.okinawa.bz2 | 3 + SKK-JISYO.pubdic+.bz2 | 3 + SKK-JISYO.wiki.bz2 | 3 + SKK-JISYO.wrong.annotated.bz2 | 3 + bugzilla-141756-workaround.patch | 18 ++ ddskk-20050123.tar.bz2 | 3 + ddskk.changes | 28 +++ ddskk.spec | 277 ++++++++++++++++++++++++++++ fix-build-for-xemacs.patch | 19 ++ ready | 0 skk-texinfo-illegal-character.patch | 13 ++ suse-start.el | 1 + zipcode.tar.bz2 | 3 + 29 files changed, 440 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 SKK-JISYO.JIS2.bz2 create mode 100644 SKK-JISYO.JIS3_4.bz2 create mode 100644 SKK-JISYO.L.bz2 create mode 100644 SKK-JISYO.M.bz2 create mode 100644 SKK-JISYO.ML.bz2 create mode 100644 SKK-JISYO.S.bz2 create mode 100644 SKK-JISYO.assoc.bz2 create mode 100644 SKK-JISYO.china_taiwan.bz2 create mode 100644 SKK-JISYO.edict.tar.bz2 create mode 100644 SKK-JISYO.fukugo.bz2 create mode 100644 SKK-JISYO.geo.bz2 create mode 100644 SKK-JISYO.jinmei.bz2 create mode 100644 SKK-JISYO.law.bz2 create mode 100644 SKK-JISYO.mazegaki.bz2 create mode 100644 SKK-JISYO.okinawa.bz2 create mode 100644 SKK-JISYO.pubdic+.bz2 create mode 100644 SKK-JISYO.wiki.bz2 create mode 100644 SKK-JISYO.wrong.annotated.bz2 create mode 100644 bugzilla-141756-workaround.patch create mode 100644 ddskk-20050123.tar.bz2 create mode 100644 ddskk.changes create mode 100644 ddskk.spec create mode 100644 fix-build-for-xemacs.patch create mode 100644 ready create mode 100644 skk-texinfo-illegal-character.patch create mode 100644 suse-start.el create mode 100644 zipcode.tar.bz2 diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/SKK-JISYO.JIS2.bz2 b/SKK-JISYO.JIS2.bz2 new file mode 100644 index 0000000..4c2c458 --- /dev/null +++ b/SKK-JISYO.JIS2.bz2 @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:db2187dd61dab191e4d24f3fc03818b0e4efd6085efa1aa282ec61141b8c1a28 +size 5338 diff --git a/SKK-JISYO.JIS3_4.bz2 b/SKK-JISYO.JIS3_4.bz2 new file mode 100644 index 0000000..0b31982 --- /dev/null +++ b/SKK-JISYO.JIS3_4.bz2 @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:34be62c9d443dc99a59bf604a84d081a3da45837588f2b45a5621527b21d1d18 +size 30576 diff --git a/SKK-JISYO.L.bz2 b/SKK-JISYO.L.bz2 new file mode 100644 index 0000000..f475b0c --- /dev/null +++ b/SKK-JISYO.L.bz2 @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:2aa3cf320e0bd3f4109295cab4d3a2fd10bae3ce558de9f043f831ca4cf2a0ef +size 1432322 diff --git a/SKK-JISYO.M.bz2 b/SKK-JISYO.M.bz2 new file mode 100644 index 0000000..041912e --- /dev/null +++ b/SKK-JISYO.M.bz2 @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:a7ee739ac992824b54f41e6a3bd6b8088d66e2c643909a5d0dfdfb50139a6de7 +size 62542 diff --git a/SKK-JISYO.ML.bz2 b/SKK-JISYO.ML.bz2 new file mode 100644 index 0000000..2e1f769 --- /dev/null +++ b/SKK-JISYO.ML.bz2 @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:6cdb8691eed29e39b8c28c365a7677dd79a326c7caef0dd3a8a7267dd2ed51bf +size 400849 diff --git a/SKK-JISYO.S.bz2 b/SKK-JISYO.S.bz2 new file mode 100644 index 0000000..67661c2 --- /dev/null +++ b/SKK-JISYO.S.bz2 @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:ce6f4acf8dd0003f32784c8880a4bd816d9e59ef9aa84770e36c27f644f33238 +size 25955 diff --git a/SKK-JISYO.assoc.bz2 b/SKK-JISYO.assoc.bz2 new file mode 100644 index 0000000..695c836 --- /dev/null +++ b/SKK-JISYO.assoc.bz2 @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:d641eedcade4e4fb91390d6b8f4b2c293426780c1c67fbee6e2a40d38dba0499 +size 5831 diff --git a/SKK-JISYO.china_taiwan.bz2 b/SKK-JISYO.china_taiwan.bz2 new file mode 100644 index 0000000..e50785f --- /dev/null +++ b/SKK-JISYO.china_taiwan.bz2 @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:37179a6291a2977d8e851bfe9d17972cde993fde877c9d5abc698ce745eed800 +size 2475 diff --git a/SKK-JISYO.edict.tar.bz2 b/SKK-JISYO.edict.tar.bz2 new file mode 100644 index 0000000..561b226 --- /dev/null +++ b/SKK-JISYO.edict.tar.bz2 @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:811e6c3a0d500f122990e8077dd24cd585f4bc4887c24d64597980603267ed08 +size 228888 diff --git a/SKK-JISYO.fukugo.bz2 b/SKK-JISYO.fukugo.bz2 new file mode 100644 index 0000000..10d4662 --- /dev/null +++ b/SKK-JISYO.fukugo.bz2 @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:f695abb5b3bea46567c55b240bab01082a463a3b90540c455e3d1da90baf6e78 +size 1577 diff --git a/SKK-JISYO.geo.bz2 b/SKK-JISYO.geo.bz2 new file mode 100644 index 0000000..f3d793a --- /dev/null +++ b/SKK-JISYO.geo.bz2 @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:9ffa080d04b64442f0c5427b20e95fe3a95d855784fe52a43a06182aa48ecf26 +size 535933 diff --git a/SKK-JISYO.jinmei.bz2 b/SKK-JISYO.jinmei.bz2 new file mode 100644 index 0000000..f76deae --- /dev/null +++ b/SKK-JISYO.jinmei.bz2 @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:3fd075366350f343096d0761691035d05ca3422cfac7991aea048e5b45a62317 +size 192850 diff --git a/SKK-JISYO.law.bz2 b/SKK-JISYO.law.bz2 new file mode 100644 index 0000000..268dac5 --- /dev/null +++ b/SKK-JISYO.law.bz2 @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:312d993fb4fa8c4640bec9a0d87cb9cbd0c2826741bc054fd95563450af8d6bc +size 113767 diff --git a/SKK-JISYO.mazegaki.bz2 b/SKK-JISYO.mazegaki.bz2 new file mode 100644 index 0000000..3b85e13 --- /dev/null +++ b/SKK-JISYO.mazegaki.bz2 @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:f4286c177d7a81f9f60029e2f8f560db4dd15e1b5faca57707f8e2ad38814936 +size 23101 diff --git a/SKK-JISYO.okinawa.bz2 b/SKK-JISYO.okinawa.bz2 new file mode 100644 index 0000000..64b7bfb --- /dev/null +++ b/SKK-JISYO.okinawa.bz2 @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:156314f4ff8edbb5cc0b15500ea2ab33c1b54e4134a394cfa6670b427d19d224 +size 15489 diff --git a/SKK-JISYO.pubdic+.bz2 b/SKK-JISYO.pubdic+.bz2 new file mode 100644 index 0000000..23533a0 --- /dev/null +++ b/SKK-JISYO.pubdic+.bz2 @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:2cdb6fa2fd033e5950d6a86527cfdbafd02494967145b34f8bd4c418159667de +size 3507 diff --git a/SKK-JISYO.wiki.bz2 b/SKK-JISYO.wiki.bz2 new file mode 100644 index 0000000..697c1c0 --- /dev/null +++ b/SKK-JISYO.wiki.bz2 @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:378177997b7b04b484a729eb0737b5e3ba998ae69d719bdc084d1b3c943ddcc6 +size 4900 diff --git a/SKK-JISYO.wrong.annotated.bz2 b/SKK-JISYO.wrong.annotated.bz2 new file mode 100644 index 0000000..8fc9a9b --- /dev/null +++ b/SKK-JISYO.wrong.annotated.bz2 @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:b85c4c76d9476ed20f6c32b19580cb6b8d9c9c6580c4eaa450e29b3c1cf6bde1 +size 26369 diff --git a/bugzilla-141756-workaround.patch b/bugzilla-141756-workaround.patch new file mode 100644 index 0000000..6a4ace6 --- /dev/null +++ b/bugzilla-141756-workaround.patch @@ -0,0 +1,18 @@ +diff -ru ddskk-20050123.orig/SKK-MK ddskk-20050123/SKK-MK +--- ddskk-20050123.orig/SKK-MK 2004-04-17 02:06:03.000000000 +0200 ++++ ddskk-20050123/SKK-MK 2006-01-10 16:48:17.000000000 +0100 +@@ -45,7 +45,13 @@ + (error "%s" "\ + This version of SKK requires MULE features")) + +-(set-language-environment "Japanese") ++(if (and (featurep 'xemacs) ++ (emacs-version>= 21 5 6) ++ (getenv "LANG")) ++ (let ((old-lang (getenv "LANG"))) ++ (set-language-environment "Japanese") ++ (setenv "LANG" old-lang)) ++ (set-language-environment "Japanese")) + + ;;;; User variables to control SKK-MK. + (defvar SKK-MK-debugging nil "*Non-nil means making verbose output.") diff --git a/ddskk-20050123.tar.bz2 b/ddskk-20050123.tar.bz2 new file mode 100644 index 0000000..4aa9fca --- /dev/null +++ b/ddskk-20050123.tar.bz2 @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:008d9ed425b51f9aea309578c04159f8fbfcc955734fd16d326c6cf16d9abaa5 +size 538664 diff --git a/ddskk.changes b/ddskk.changes new file mode 100644 index 0000000..a621219 --- /dev/null +++ b/ddskk.changes @@ -0,0 +1,28 @@ +------------------------------------------------------------------- +Wed Mar 01 11:58:08 CET 2006 - mfabian@suse.de + +- add "Provides: locale(...)". + +------------------------------------------------------------------- +Wed Jan 25 21:46:02 CET 2006 - mls@suse.de + +- converted neededforbuild to BuildRequires + +------------------------------------------------------------------- +Tue Jan 10 17:38:45 CET 2006 - mfabian@suse.de + +- bugzilla #141756: add a workaround to make the package build. + +------------------------------------------------------------------- +Thu Jan 27 17:55:18 CET 2005 - mfabian@suse.de + +- move info pages to skkdic subpackage and delete the copy + of the info pages in the XEmacs package directory to same some + space. On top of that the copy in the XEmacs package directory + was broken, texinfo.el could not format it correctly, the copy + produced by the Emacs build is correct. + +------------------------------------------------------------------- +Thu Jan 27 16:48:58 CET 2005 - mfabian@suse.de + +- new package: ddskk, version 20050123. diff --git a/ddskk.spec b/ddskk.spec new file mode 100644 index 0000000..c27b721 --- /dev/null +++ b/ddskk.spec @@ -0,0 +1,277 @@ +# +# spec file for package ddskk (Version 20050123) +# +# Copyright (c) 2006 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 + +Name: ddskk +BuildRequires: apel-xemacs compface emacs-x11 flim flim-xemacs giflib-devel krb5 libpng-devel libtiff-devel openldap2 openldap2-devel semi-xemacs w3m xorg-x11-devel +License: GPL +Group: Productivity/Editors/Emacs +Requires: emacs, apel, skkdic +Autoreqprov: on +Provides: locale(emacs:ja) +Version: 20050123 +Release: 9 +URL: http://openlab.jp/skk/index.html +Source0: http://openlab.jp/skk/maintrunk/ddskk-20050123.tar.bz2 +Source1: suse-start.el +Source100: http://openlab.jp/skk/dic/SKK-JISYO.L.bz2 +Source101: http://openlab.jp/skk/dic/SKK-JISYO.M.bz2 +Source102: http://openlab.jp/skk/dic/SKK-JISYO.ML.bz2 +Source103: http://openlab.jp/skk/dic/SKK-JISYO.S.bz2 +Source104: http://openlab.jp/skk/dic/SKK-JISYO.JIS2.bz2 +Source105: http://openlab.jp/skk/dic/SKK-JISYO.JIS3_4.bz2 +Source106: http://openlab.jp/skk/dic/SKK-JISYO.wrong.annotated.bz2 +Source107: http://openlab.jp/skk/dic/SKK-JISYO.pubdic+.bz2 +Source108: http://openlab.jp/skk/dic/SKK-JISYO.edict.tar.bz2 +Source109: http://openlab.jp/skk/dic/SKK-JISYO.geo.bz2 +Source110: http://openlab.jp/skk/dic/zipcode.tar.bz2 +Source111: http://openlab.jp/skk/dic/SKK-JISYO.assoc.bz2 +Source112: http://openlab.jp/skk/dic/SKK-JISYO.okinawa.bz2 +Source113: http://openlab.jp/skk/dic/SKK-JISYO.law.bz2 +Source114: http://openlab.jp/skk/dic/SKK-JISYO.jinmei.bz2 +Source115: http://openlab.jp/skk/dic/SKK-JISYO.china_taiwan.bz2 +Source116: http://openlab.jp/skk/dic/SKK-JISYO.mazegaki.bz2 +Source117: http://openlab.jp/skk/dic/SKK-JISYO.fukugo.bz2 +# explanation for the dictionaries downloaded from: +# http://openlab.jp/skk/wiki/wiki.cgi?page=SKK%BC%AD%BD%F1 +Source200: SKK-JISYO.wiki.bz2 +Patch0: fix-build-for-xemacs.patch +Patch1: skk-texinfo-illegal-character.patch +Patch2: bugzilla-141756-workaround.patch +Summary: SKK (Simple Kana to Kanji Conversion Program) for Emacs +BuildRoot: %{_tmppath}/%{name}-%{version}-build +BuildArch: noarch + +%description +SKK (Simple Kana to Kanji conversion program) is a Japanese input +method for Emacs. ddskk (Daredevil SKK) is a version of SKK that is +aggressively developed. + + + +Authors: +-------- + NAKAJIMA Mikio + Tsukamoto Tetsuo + Masahiko Sato + +%package -n ddskk-xemacs +Group: Productivity/Editors/Emacs +Requires: xemacs, apel-xemacs, skkdic +Provides: locale(xemacs:ja) +Summary: SKK (`Simple Kana to Kanji conversion program') for XEmacs + +%description -n ddskk-xemacs +SKK (`Simple Kana to Kanji conversion program') is a Japanese input +method for XEmacs. ddskk ('Daredevil SKK') is a version of SKK which is +aggressively developed. + + + +Authors: +-------- + NAKAJIMA Mikio + Tsukamoto Tetsuo + Masahiko Sato + +%package -n skkdic +Group: System/I18n/Japanese +Provides: locale(scim-skk:ja) +URL: http://openlab.jp/skk/dic.html +Summary: main dictionary for SKK + +%description -n skkdic +main dictionary for SKK + + + +Authors: +-------- + NAKAJIMA Mikio + Tsukamoto Tetsuo + Masahiko Sato + +%package -n skkdic-extra +Group: System/I18n/Japanese +URL: http://openlab.jp/skk/dic.html +Summary: optional, additional dictionaries for SKK + +%description -n skkdic-extra +optional, additional dictionaries for SKK + + + +Authors: +-------- + NAKAJIMA Mikio + Tsukamoto Tetsuo + Masahiko Sato + +%prep +%setup -q -n %{name}-%{version} +%patch0 -p1 +%patch1 -p1 +%patch2 -p1 +tar jxf $RPM_SOURCE_DIR/zipcode.tar.bz2 +cp $RPM_SOURCE_DIR/SKK-JISYO*bz2 zipcode/SKK-JISYO* dic +bunzip2 dic/*bz2 +iconv -f iso-2022-jp -t utf-8 doc/skk.texi > doc/skk.texi.utf-8 +mv doc/skk.texi.utf-8 doc/skk.texi +perl -pi -e "s/coding: iso-2022-jp/coding: utf-8/" doc/skk.texi +# check if changing the encoding cookie worked, exit if not: +grep "coding: utf-8" doc/skk.texi || exit 1 + +%build +%define emacs_sitelisp_dir %{_datadir}/emacs/site-lisp +%define emacs_package_dir %{emacs_sitelisp_dir}/skk +export LANG=ja_JP.UTF-8 +make PREFIX=$RPM_BUILD_ROOT/usr \ + SKK_DATADIR=$RPM_BUILD_ROOT/usr/share/skk \ + SKK_INFODIR=$RPM_BUILD_ROOT/usr/share/info \ + APEL_SPECIFIC_LISPDIR=$RPM_BUILD_ROOT%emacs_sitelisp_dir/apel \ + SKK_LISPDIR=$RPM_BUILD_ROOT%emacs_package_dir \ + EMACS=emacs + +%install +[ "$RPM_BUILD_ROOT" != "/" ] && [ -d $RPM_BUILD_ROOT ] && rm -rf $RPM_BUILD_ROOT; +export LANG=ja_JP.UTF-8 +mkdir -p $RPM_BUILD_ROOT%{emacs_package_dir} +make PREFIX=$RPM_BUILD_ROOT/usr \ + SKK_DATADIR=$RPM_BUILD_ROOT/usr/share/skk \ + SKK_INFODIR=$RPM_BUILD_ROOT/usr/share/info \ + APEL_SPECIFIC_LISPDIR=$RPM_BUILD_ROOT%emacs_sitelisp_dir/apel \ + SKK_LISPDIR=$RPM_BUILD_ROOT%emacs_package_dir \ + EMACS=emacs \ + install +{ + echo ";; %{emacs_sitelisp_dir}/suse-start-%{name}.el" + echo "" + echo "(add-to-list 'load-path \"%{emacs_package_dir}\")" + echo "" + cat $RPM_SOURCE_DIR/suse-start.el + echo "" + echo ";; %{emacs_sitelisp_dir}/suse-start-%{name}.el ends here" +} > %{buildroot}%{emacs_sitelisp_dir}/suse-start-%{name}.el +###################################################################### +# now build for XEmacs: +%define xemacs_package_dir /usr/share/xemacs/site-packages/ +make clean +make PREFIX=$RPM_BUILD_ROOT/usr \ + SKK_DATADIR=$RPM_BUILD_ROOT/usr/share/skk \ + SKK_INFODIR=$RPM_BUILD_ROOT%xemacs_package_dir/info \ + APEL_SPECIFIC_LISPDIR=$RPM_BUILD_ROOT%xemacs_package_dir/lisp/apel \ + SKK_LISPDIR=$RPM_BUILD_ROOT%xemacs_package_dir/lisp/skk \ + PACKAGEDIR=$RPM_BUILD_ROOT%xemacs_package_dir \ + EMACS=xemacs +make PREFIX=$RPM_BUILD_ROOT/usr \ + SKK_DATADIR=$RPM_BUILD_ROOT/usr/share/skk \ + SKK_INFODIR=$RPM_BUILD_ROOT%xemacs_package_dir/info \ + APEL_SPECIFIC_LISPDIR=$RPM_BUILD_ROOT%xemacs_package_dir/lisp/apel \ + SKK_LISPDIR=$RPM_BUILD_ROOT%xemacs_package_dir/lisp/skk \ + PACKAGEDIR=$RPM_BUILD_ROOT%xemacs_package_dir \ + EMACS=xemacs \ + install-package +gzip $RPM_BUILD_ROOT%{xemacs_package_dir}/info/skk*.info* +rm -f $RPM_BUILD_ROOT/%{_infodir}/dir +rm -f $RPM_BUILD_ROOT/%{xemacs_package_dir}/info/dir +# I would be wasteful if XEmacs had it's own copy of the dictionaries +# and some other files. The whole %{xemacs_package_dir}/etc/skk +# can be shared with Emacs. +rm -rf $RPM_BUILD_ROOT%{xemacs_package_dir}/etc/skk +ln -s /usr/share/skk $RPM_BUILD_ROOT%{xemacs_package_dir}/etc/skk +# the info pages are in the skkdic package to be able to share them +# for Emacs and XEmacs: +rm -f $RPM_BUILD_ROOT%{xemacs_package_dir}/info/skk* +# remove buildroot in .el files: +for i in $(find $RPM_BUILD_ROOT -name "*.el") +do + perl -pi -e "s|$RPM_BUILD_ROOT||" $i + # touch the .elc files again because they are still up to date: + if -f ${i}c + then + touch ${i}c + fi +done +# replace buildroot in comments in .elc files by spaces with the same total length: +RPM_BUILD_ROOT_REPLACEMENT=$(echo "$RPM_BUILD_ROOT" | tr [:print:] ' ') +for i in $(find $RPM_BUILD_ROOT -name "*.elc") +do + perl -pi -e "s|(;;; from file )$RPM_BUILD_ROOT(/usr/share/xemacs/site-packages/.*)|\1$RPM_BUILD_ROOT_REPLACEMENT\2|" $i +done + +%post -n skkdic +for i in skk +do + %install_info --info-dir=%{_infodir} %{_infodir}/${i}.info.gz +done + +%preun -n skkdic +for i in skk +do + %install_info --delete --info-dir=%{_infodir} %{_infodir}/${i}.info.gz +done + +%clean +#[ "$RPM_BUILD_ROOT" != "/" ] && [ -d $RPM_BUILD_ROOT ] && rm -rf $RPM_BUILD_ROOT; + +%files +%defattr(-,root,root) +%doc ChangeLog* READMEs +%{emacs_package_dir} +%config %{emacs_sitelisp_dir}/suse-start-%{name}.el +%{_infodir}/* + +%files -n ddskk-xemacs +%defattr(-,root,root) +%doc ChangeLog* READMEs +%dir %{xemacs_package_dir}/ +%dir %{xemacs_package_dir}/lisp/ +%dir %{xemacs_package_dir}/etc/ +%{xemacs_package_dir}/lisp/* +%{xemacs_package_dir}/etc/* + +%files -n skkdic +%defattr(-,root,root) +%dir /usr/share/skk/ +/usr/share/skk/SKK-JISYO.L +/usr/share/skk/skk.xpm +/usr/share/skk/SKK.tut +/usr/share/skk/SKK.tut.E +%{_infodir}/* + +%files -n skkdic-extra +%defattr(-,root,root) +%dir /usr/share/skk/ +/usr/share/skk/SKK-JISYO.ML +/usr/share/skk/SKK-JISYO.M +/usr/share/skk/SKK-JISYO.zipcode +/usr/share/skk/SKK-JISYO.office.zipcode +/usr/share/skk/SKK-JISYO.pubdic+ +/usr/share/skk/SKK-JISYO.JIS3_4 +/usr/share/skk/SKK-JISYO.JIS2 +/usr/share/skk/SKK-JISYO.S +/usr/share/skk/NICOLA-SKK.tut + +%changelog -n ddskk +* Wed Mar 01 2006 - mfabian@suse.de +- add "Provides: locale(...)". +* Wed Jan 25 2006 - mls@suse.de +- converted neededforbuild to BuildRequires +* Tue Jan 10 2006 - mfabian@suse.de +- bugzilla #141756: add a workaround to make the package build. +* Thu Jan 27 2005 - mfabian@suse.de +- move info pages to skkdic subpackage and delete the copy + of the info pages in the XEmacs package directory to same some + space. On top of that the copy in the XEmacs package directory + was broken, texinfo.el could not format it correctly, the copy + produced by the Emacs build is correct. +* Thu Jan 27 2005 - mfabian@suse.de +- new package: ddskk, version 20050123. diff --git a/fix-build-for-xemacs.patch b/fix-build-for-xemacs.patch new file mode 100644 index 0000000..d3e1ef2 --- /dev/null +++ b/fix-build-for-xemacs.patch @@ -0,0 +1,19 @@ +diff -ru ddskk-20050123.orig/SKK-MK ddskk-20050123/SKK-MK +--- ddskk-20050123.orig/SKK-MK 2004-04-17 02:06:03.000000000 +0200 ++++ ddskk-20050123/SKK-MK 2005-01-26 17:18:03.583508283 +0100 +@@ -1019,10 +1019,13 @@ + (let ((generated-autoload-file + (expand-file-name "auto-autoloads.el"))) + (setq buffer-file-name generated-autoload-file) +- (fixup-autoload-buffer "skk-autoloads") ++ ;; (fixup-autoload-buffer "skk-autoloads") + (goto-char (point-max)) + (unless (bolp) + (insert "\n")) ++ (insert "(provide 'skk-autoloads) ++;;; skk-autoloads.el ends here ++") + (write-region-as-coding-system 'iso-2022-jp + (point-min) + (point-max) + diff --git a/ready b/ready new file mode 100644 index 0000000..473a0f4 diff --git a/skk-texinfo-illegal-character.patch b/skk-texinfo-illegal-character.patch new file mode 100644 index 0000000..833ac0b --- /dev/null +++ b/skk-texinfo-illegal-character.patch @@ -0,0 +1,13 @@ +diff -ru ddskk-20050123.orig/doc/skk.texi ddskk-20050123/doc/skk.texi +--- ddskk-20050123.orig/doc/skk.texi 2004-09-04 12:01:11.000000000 +0200 ++++ ddskk-20050123/doc/skk.texi 2005-01-27 15:54:41.876664737 +0100 +@@ -4612,7 +4612,7 @@ + + @example + @group +-A:$B!!(B S:$B!1(B D:$B!A(B F:$B!Q(B G:$B!a(B H:$B!q(B Q:$B"!(B W:$B"1(B E:$B"A(B R:$B"Q(B T:$B"a(B Y:$B"q(B ++A:$B!!(B S:$B!1(B D:$B!A(B F:$B!Q(B G:$B!a(B H:$B!q(B Q:$B"!(B W:? E:$B"A(B R:? T:$B"a(B Y:? + @end group + @end example + + diff --git a/suse-start.el b/suse-start.el new file mode 100644 index 0000000..8b8a9bf --- /dev/null +++ b/suse-start.el @@ -0,0 +1 @@ +(require 'skk-setup) diff --git a/zipcode.tar.bz2 b/zipcode.tar.bz2 new file mode 100644 index 0000000..f4edc44 --- /dev/null +++ b/zipcode.tar.bz2 @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:49e09f1a3ea00913a1b7234e3dc1ddc9ceeb3edbcdade8383b643074d4bbdcf9 +size 1565024