File cedict.spec of Package cedict

#
# spec file for package cedict (Version 20070331)
#
# Copyright (c) 2007 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:           cedict
BuildRequires:  dos2unix
License:        from /usr/share/doc/packages/cedict/cedict_readme.txt:
Group:          System/I18n/Chinese
Autoreqprov:    on
Provides:       locale(gjiten:zh)
Version:        20070331
Release:        1
URL:            http://www.mdbg.net/chindict/chindict.php?page=cedict
# original archive is at http://www.mdbg.net/chindict/export/cedict/cedictu8.zip
Source0:        cedict-%{version}.tar.bz2
Source1:        License-clarification
Source10:       cedict-format.pl
Source11:       README.SUSE
BuildArchitectures: noarch
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
Summary:        Free Chinese-English Dictionary in EDICT Format

%description
This is a free Chinese-English dictionary that can be used, for
example, with Gjiten.

The objective of the CEDICT project is to create an online,
downloadable (as opposed to searchable-only) public-domain
Chinese-English dictionary. For the most part, the project is modelled
on Jim Breen's highly successful EDICT (Japanese-English dictionary)
project and is intended to be a collaborative effort with users
providing entries and corrections to the main file.



Authors:
--------
    Erik Peterson <cedict@chinesetools.com>
    Erik Peterson <erik@mandarintools.com>
    "Dennis MDBG free online Chinese-English dictionary" <cedict@mdbg.net>

%prep 
%setup -q
cp $RPM_SOURCE_DIR/License-clarification .
cp $RPM_SOURCE_DIR/README.SUSE .
chmod 755 $RPM_SOURCE_DIR/cedict-format.pl

%build

%install
mkdir -p $RPM_BUILD_ROOT/usr/share/edict
dos2unix < cedict_ts.u8 | $RPM_SOURCE_DIR/cedict-format.pl  > $RPM_BUILD_ROOT/usr/share/edict/cedict_ts.u8
chmod 644 $RPM_BUILD_ROOT/usr/share/edict/cedict_ts.u8

%clean 

%files
%defattr(-, root, root)
%doc *.txt README.SUSE License-clarification
%dir /usr/share/edict/
/usr/share/edict/cedict_ts.u8

%changelog
* Tue Jun 19 2007 - mfabian@suse.de
- update to 20070331 tracking current additions
* Wed Sep 06 2006 - mfabian@suse.de
- add "Provides: locale(gjiten:zh)".
* Wed Sep 06 2006 - mfabian@suse.de
- use dos2unix to convert dos line endings and change the Emacs
  coding cookie at the top of the file accordingly.
* Wed Sep 06 2006 - mfabian@suse.de
- update to 20060830.
  (website changed from http://www.mandarintools.com/cedict.html
  to http://www.mdbg.net/chindict/chindict.php).
* Wed Sep 06 2006 - mfabian@suse.de
- add "chmod 755 $RPM_SOURCE_DIR/cedict-format.pl" to make
  it build in the openSUSE build service.
  Permissions for any file in $RPM_SOURCE_DIR are nowhere guaranteed
  to be preserved.
* Wed Sep 06 2006 - mfabian@suse.de
- update to 20051221.
* Wed Jan 25 2006 - mls@suse.de
- converted neededforbuild to BuildRequires
* Thu May 19 2005 - mfabian@suse.de
- new package cedict, version 20050411.
openSUSE Build Service is sponsored by