File canna-yubin.spec of Package canna-yubin

# spec file for package canna-yubin
# Copyright (c) 2018 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
# 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

Name:           canna-yubin
BuildRequires:  canna
PreReq:         /usr/sbin/useradd
Release:        0
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

A Japanese postal code number extension dictionary for Canna .

%setup -q

# make binary dictionaries:

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

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

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

%defattr(-, root, root)
%attr(-, wnn, root) %{canna_system_dic_dir}/*

openSUSE Build Service is sponsored by