2007-01-16 00:16:24 +01:00
|
|
|
#
|
2012-01-20 20:23:50 +01:00
|
|
|
# spec file for package handedict
|
2007-01-16 00:16:24 +01:00
|
|
|
#
|
2012-01-20 20:23:50 +01:00
|
|
|
# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
2007-01-16 00:16:24 +01:00
|
|
|
#
|
2009-02-23 12:52:04 +01:00
|
|
|
# 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.
|
|
|
|
|
2007-01-16 00:16:24 +01:00
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
|
|
|
Name: handedict
|
|
|
|
BuildRequires: dos2unix
|
|
|
|
Provides: locale(gjiten:zh)
|
2010-01-12 15:33:43 +01:00
|
|
|
Version: 20090318
|
2012-01-20 20:23:50 +01:00
|
|
|
Release: 0
|
2008-04-24 01:50:43 +02:00
|
|
|
Url: http://chdw.de/dl
|
2007-01-16 00:16:24 +01:00
|
|
|
# original archive is at http://www.chinaboard.de/handedict/handedict_uv-20060906.tar.bz2
|
|
|
|
# repackaged here to save space in the source rpm
|
|
|
|
# (several big files from the original archive are not needed).
|
|
|
|
# Jan Hefti <j.hefti@chinaboard.de> made the individual files available as well now,
|
|
|
|
# the big dictionary with the example sentences in UTF-8 can be downloaded here:
|
|
|
|
# http://www.chinaboard.de/handedict/handedict_uv.u8.bz2
|
2008-04-24 01:50:43 +02:00
|
|
|
Source0: handedict_uv.u8.bz2
|
2007-01-16 00:16:24 +01:00
|
|
|
Source1: License
|
|
|
|
Source10: cedict-format.pl
|
|
|
|
Source11: README.SUSE
|
2008-04-24 01:50:43 +02:00
|
|
|
BuildArch: noarch
|
2007-01-16 00:16:24 +01:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
Summary: Free Chinese-German Dictionary in EDICT Format
|
2012-01-20 20:23:50 +01:00
|
|
|
License: CC-BY-SA-3.0 and GPL-2.0+
|
|
|
|
Group: System/I18n/Chinese
|
2007-01-16 00:16:24 +01:00
|
|
|
|
|
|
|
%description
|
|
|
|
This is a free Chinese-German dictionary that can be used, for example,
|
|
|
|
with Gjiten.
|
|
|
|
|
|
|
|
Everyone is invited to help develop it together with the authors (see
|
|
|
|
URL and e-mail addresses in the author list). It is based in large
|
|
|
|
parts on CEDICT which in turn has been modelled on Jim Breen's highly
|
|
|
|
successful EDICT (Japanese-English dictionary) project.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Authors:
|
|
|
|
--------
|
|
|
|
Michael Klaus Engel <redaktion@chdw.de>
|
|
|
|
Jan Hefti <redaktion@chdw.de>
|
|
|
|
Helmut Anker <redaktion@chdw.de>
|
|
|
|
Jennifer Gross <redaktion@chdw.de>
|
|
|
|
Julia Mannigel <redaktion@chdw.de>
|
|
|
|
Tian Xiaoyong <redaktion@chdw.de>
|
|
|
|
Steffen Weidenhaus <redaktion@chdw.de>
|
|
|
|
Zhao Chunhua <redaktion@chdw.de>
|
|
|
|
Zheng Meishi <redaktion@chdw.de>
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q -n %{name} -c %{name} -T
|
2008-04-24 01:50:43 +02:00
|
|
|
cp $RPM_SOURCE_DIR/handedict_uv.u8.bz2 .
|
2007-01-16 00:16:24 +01:00
|
|
|
cp $RPM_SOURCE_DIR/README.SUSE .
|
|
|
|
cp $RPM_SOURCE_DIR/License .
|
|
|
|
chmod 755 $RPM_SOURCE_DIR/cedict-format.pl
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
|
|
|
%install
|
|
|
|
mkdir -p $RPM_BUILD_ROOT/usr/share/edict
|
2008-04-24 01:50:43 +02:00
|
|
|
bunzip2 < handedict_uv.u8.bz2 | dos2unix | $RPM_SOURCE_DIR/cedict-format.pl > $RPM_BUILD_ROOT/usr/share/edict/handedict
|
2007-01-16 00:16:24 +01:00
|
|
|
chmod 644 $RPM_BUILD_ROOT/usr/share/edict/*
|
|
|
|
|
|
|
|
%clean
|
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-, root, root)
|
|
|
|
%doc README.SUSE License
|
|
|
|
%dir /usr/share/edict/
|
|
|
|
/usr/share/edict/*
|
|
|
|
|
2007-05-17 11:22:22 +02:00
|
|
|
%changelog
|