forked from pool/ddskk
Accepting request 325394 from M17N
OBS-URL: https://build.opensuse.org/request/show/325394 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/ddskk?expand=0&rev=23
This commit is contained in:
commit
05eb38bff0
14
README.SUSE
Normal file
14
README.SUSE
Normal file
@ -0,0 +1,14 @@
|
||||
# skk-dic
|
||||
|
||||
get -c -r -np -k -L -p http://openlab.ring.gr.jp/skk/skk/dic/
|
||||
# 20150821: visit the link and see the last modification time
|
||||
cp -r openlab.ring.gr.jp/skk/skk/dic skkdic-20150821
|
||||
rm -rf skkdic-20150821/index*
|
||||
tar -cvf skkdic-20150821.tar skkdic-20150821
|
||||
xz -z -9 skkdic-20150821.tar
|
||||
|
||||
# SKK-JISYO.wiki.20150326.bz2
|
||||
|
||||
# 20150326: visit the page and see the last update time
|
||||
./SKK-JISYO > SKK-JISYO.wiki.20150326
|
||||
bzip2 -z -9 SKK-JISYO.wiki.20150326
|
13
SKK-JISYO.rb
Normal file
13
SKK-JISYO.rb
Normal file
@ -0,0 +1,13 @@
|
||||
#!/usr/bin/env ruby
|
||||
|
||||
require 'rubygems'
|
||||
require 'nokogiri'
|
||||
require 'open-uri'
|
||||
|
||||
url = "http://openlab.ring.gr.jp/skk/wiki/wiki.cgi?page=SKK%BC%AD%BD%F1"
|
||||
|
||||
doc = Nokogiri::HTML(open(url, &:read).encode("UTF-8",replace:""))
|
||||
|
||||
output = doc.css('div.main div.day div.body div.section').text
|
||||
|
||||
puts output
|
3
SKK-JISYO.wiki.20150326.bz2
Normal file
3
SKK-JISYO.wiki.20150326.bz2
Normal file
@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:0bc7bc3c7fdf3717e8e6042ffa8bb50c1d9e0dc5c55f2949c1f8e08f1dbf9bf5
|
||||
size 7910
|
@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:378177997b7b04b484a729eb0737b5e3ba998ae69d719bdc084d1b3c943ddcc6
|
||||
size 4900
|
@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:4ac8156b2c5baa9660061b32aca43e9145536471aa486234fdc61cd07421bcf8
|
||||
size 851375
|
3
ddskk-20150816.tar.gz
Normal file
3
ddskk-20150816.tar.gz
Normal file
@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:a2a92be01b0e076cb3482662c3f8c417ccdb3c37c31251083e4810df2bbdb1aa
|
||||
size 859546
|
@ -1,11 +1,18 @@
|
||||
-------------------------------------------------------------------
|
||||
Fri Aug 21 15:43:04 UTC 2015 - i@marguerite.su
|
||||
|
||||
- update version 20150816
|
||||
* dictionaries version 20150821
|
||||
* wiki version 20150326
|
||||
* changes see ChangeLog.5
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Jun 9 15:18:22 UTC 2014 - i@marguerite.su
|
||||
|
||||
- update version 20140608
|
||||
* I don't know much but just see new updates
|
||||
* changes see ChangeLog.4 and ChangeLog.5
|
||||
- drop flavour.patch
|
||||
* I don't know what's this about but upstream
|
||||
now doesn't have this code
|
||||
* upstream now doesn't have this code
|
||||
- drop skk-emacs-type.patch, upstreamed
|
||||
|
||||
-------------------------------------------------------------------
|
||||
|
31
ddskk.spec
31
ddskk.spec
@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package ddskk
|
||||
#
|
||||
# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
||||
# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
@ -19,19 +19,20 @@
|
||||
# Current version does not build with current xemacs, disable for now
|
||||
%define use_xemacs 0
|
||||
Name: ddskk
|
||||
Version: 20140608
|
||||
Version: 20150816
|
||||
Release: 0
|
||||
Summary: SKK (Simple Kana to Kanji Conversion Program) for Emacs
|
||||
License: GPL-2.0+
|
||||
Group: Productivity/Editors/Emacs
|
||||
Url: http://openlab.jp/skk/index.html
|
||||
Url: http://openlab.ring.gr.jp/skk/ddskk.html
|
||||
Source0: http://openlab.ring.gr.jp/skk/maintrunk/%{name}-%{version}.tar.gz
|
||||
Source1: suse-start.el
|
||||
# it's a dump of http://openlab.ring.gr.jp/skk/skk/dic/
|
||||
Source100: skkdic-20140609.tar.xz
|
||||
# wiki page in plaintext to explain skk dictionaries
|
||||
Source200: SKK-JISYO.wiki.bz2
|
||||
Source300: ddskk-rpmlintrc
|
||||
Source97: SKK-JISYO.rb
|
||||
Source98: README.SUSE
|
||||
Source99: ddskk-rpmlintrc
|
||||
# see README.SUSE
|
||||
Source100: skkdic-20150821.tar.xz
|
||||
Source200: SKK-JISYO.wiki.20150326.bz2
|
||||
Patch2: bugzilla-141756-workaround.patch
|
||||
BuildRequires: compface
|
||||
BuildRequires: emacs-x11
|
||||
@ -40,9 +41,9 @@ BuildRequires: w3m
|
||||
BuildRequires: xorg-x11-devel
|
||||
BuildRequires: xz
|
||||
%if %{use_xemacs}
|
||||
BuildRequires: flim-xemacs
|
||||
BuildRequires: semi-xemacs
|
||||
BuildRequires: xemacs-flim
|
||||
BuildRequires: xemacs-packages
|
||||
BuildRequires: xemacs-semi
|
||||
%endif
|
||||
Requires: apel
|
||||
Requires: emacs
|
||||
@ -76,7 +77,7 @@ aggressively developed.
|
||||
%package -n skkdic
|
||||
Summary: Main Dictionary for SKK
|
||||
Group: System/I18n/Japanese
|
||||
Url: http://openlab.jp/skk/dic.html
|
||||
Url: http://openlab.ring.gr.jp/skk/dic.html
|
||||
Requires(post): info
|
||||
Requires(preun): info
|
||||
Provides: locale(scim-skk:ja)
|
||||
@ -87,13 +88,13 @@ main dictionary for SKK
|
||||
%package -n skkdic-extra
|
||||
Summary: Optional, additional dictionaries for SKK
|
||||
Group: System/I18n/Japanese
|
||||
Url: http://openlab.jp/skk/dic.html
|
||||
Url: http://openlab.ring.gr.jp/skk/dic.html
|
||||
|
||||
%description -n skkdic-extra
|
||||
optional, additional dictionaries for SKK
|
||||
|
||||
%prep
|
||||
%setup -q -n %{name}-%{version}
|
||||
%setup -q
|
||||
%patch2 -p1
|
||||
tar --strip-components=1 --xz -xf %{S:100} -C dic
|
||||
pushd dic
|
||||
@ -104,6 +105,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
|
||||
# unpack dictionaries' introduction
|
||||
cp %{S:200} . && bzip2 -d *.bz2
|
||||
|
||||
%build
|
||||
%define emacs_sitelisp_dir %{_datadir}/emacs/site-lisp
|
||||
@ -200,7 +203,7 @@ fi
|
||||
|
||||
%files -n skkdic
|
||||
%defattr(-,root,root)
|
||||
%doc dic/ChangeLog* dic/edict_doc.txt dic/READMEs/committers.txt dic/zipcode/README.ja
|
||||
%doc dic/ChangeLog* dic/edict_doc.txt dic/READMEs/committers.txt dic/zipcode/README.ja SKK-JISYO.wiki.20150326
|
||||
%dir %{_datadir}/skk/
|
||||
%{_datadir}/skk/SKK-JISYO.L
|
||||
%{_datadir}/skk/skk.xpm
|
||||
|
@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:18da82eecae01b7758ee1b8e9c013e90ad42535c6a1afe193663576b45578e26
|
||||
size 6094028
|
3
skkdic-20150821.tar.xz
Normal file
3
skkdic-20150821.tar.xz
Normal file
@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:b4414c03fe057158ee09a938cc309ffc1c1540a9c65f29ce9bfde7ac22833c87
|
||||
size 6102744
|
Loading…
x
Reference in New Issue
Block a user