File canna-yubin.spec of Package canna-yubin

#
# spec file for package canna-yubin
#
# Copyright (c) 2014 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:           canna-yubin
# 2013-09-09: The update-canna-yubin is not released yet .
# But it conflicts with canna-yubin .
# See also: 
# https://build.opensuse.org/package/show/home:Mitsutoshi:M17N/update-canna-yubin
Conflicts:      update-canna-yubin
BuildRequires:  canna
BuildRequires:  canna-devel
BuildRequires:  nkf
PreReq:         /usr/sbin/useradd
Version:        0.1.1.20140731.3
Release:        0
Url:            https://sourceforge.jp/projects/canna-yubin/simple/
Source0:        %{name}-%{version}.tar.bz2
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
Summary:        Postal Code Extension Dictionary for Canna
License:        GPL-2.0+ and SUSE-Public-Domain
Group:          System/I18n/Japanese
BuildArch:      noarch

# Summary(ja): 郵便番号データのCanna用の辞書
# _description -l ja
# 郵便番号データのCanna用の辞書
# 
# 著者:
# ------
#     Japanese Ministry of Posts and Telecommunications
#     Yoshito Komatsu

%description
A Japanese postal code number extension dictionary for Canna .

%prep
%setup -q

%build
# make binary dictionaries:
%__make

%install
%define canna_system_dic_dir %{_var}/lib/canna/dic/canna
[ "$RPM_BUILD_ROOT" != "/" ] && [ -d $RPM_BUILD_ROOT ] && rm -rf $RPM_BUILD_ROOT;
%makeinstall

%pre
/usr/sbin/useradd -r -o -g bin -u 66 -s /bin/false -c "Wnn System Account" -d /var/lib/wnn wnn 2> /dev/null || :

%clean
#[ "$RPM_BUILD_ROOT" != "/" ] && [ -d $RPM_BUILD_ROOT ] && rm -rf $RPM_BUILD_ROOT;

%files
%defattr(-, root, root)
%doc README* debian/README* debian/copyright
%attr(-, wnn, root) %{canna_system_dic_dir}/*

%changelog
openSUSE Build Service is sponsored by