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 http://bugs.opensuse.org/
#


Name:           canna-yubin
BuildRequires:  canna
PreReq:         /usr/sbin/useradd
Version:        0.3.1.20180131.0
Release:        0
Url:            https://osdn.net/projects/canna-yubin/
Source0:        https://osdn.net/dl/%{name}/%{name}-%{version}.tar.xz
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
%configure
# 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;
    mkdir "%buildroot"
)
%make_install

%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* AUTHORS NEWS COPYING COPYING.GPL2
%attr(-, wnn, root) %{canna_system_dic_dir}/*

%changelog
openSUSE Build Service is sponsored by