File kanjidic2.spec of Package kanjidic2

#
# spec file for package kanjidic2
#
# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via http://bugs.opensuse.org/
#



Name:           kanjidic2
License:        CC-BY-SA-3.0
Group:          System/I18n/Japanese
Provides:       locale(ja)
Version:        20141114
Release:        0
Url:            http://www.csse.monash.edu.au/~jwb/kanjidic2/
Source0:        kanjidic2.xml.gz
Source1:        kanjidic2_dtd.gz
Source2:        kanjidic2_ov.html
Source10:       LICENSE
BuildArch:      noarch
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
Summary:        Kanji Database

%description
The KANJIDIC2 project has as its aim the production of 
a consolidated XML-format kanji database combining the 
information currently in the KANJIDIC (6,355 kanji from 
JIS X 0208) and KANJD212 (5,801 kanji from JIS X 0212) 
files.

This package uses the EDICT and KANJIDIC dictionary 
files. These files are the property of the Electronic 
Dictionary Research and Development Group, and are 
used in conformance with the Group's licence. 

%prep 

%build
cp %{SOURCE2} %{SOURCE10} .

%install
mkdir -p %{buildroot}%{_datadir}/%{name}
gunzip -c %{SOURCE0} > %{buildroot}%{_datadir}/%{name}/kanjidic2.xml
gunzip -c %{SOURCE1} > %{buildroot}%{_datadir}/%{name}/kanjidic2_dtd

%files
%defattr(-, root, root)
%doc LICENSE kanjidic2_ov.html
%dir %{_datadir}/%{name}
%{_datadir}/%{name}/kanjidic2.xml
%{_datadir}/%{name}/kanjidic2_dtd

openSUSE Build Service is sponsored by