File skf.spec of Package skf

#
# spec file for package skf
#
# Copyright (c) 2023 SUSE LLC
#
# 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 https://bugs.opensuse.org/
#

%define major_minor_ver 2.10

Name:           skf
Version:        %{major_minor_ver}.16
Release:        0
Summary:        Simple Kanji Filter
License:        BSD-3-Clause AND MIT AND Unicode-DFS-2015
Group:          System/I18n/Japanese
URL:            https://ja.osdn.net/projects/skf/
Source0:        skf_%{version}.tar.xz
BuildRequires:  fdupes

%description
Skf is an i18n-capable kanji filter. It works like i18n enhanced nkf-1.6.
More specifically, skf is intended to read documents in various languages and
codes using kanji or unicode capable display devices. skf provides basic kanji
code conversion features, include to/from JIS, EUC, Shift-JIS, Unicode and
Vendor specific codes. skf also includes decoder for various code appears in the
Net. Unlike nkf, it does not provide broken jis recovery nor mime encoding, but
it has support for ISO-8859's, European domestic set, JIS X-0212/X-0213 code,
has IBM/MS vendor specific code support and can add other code support easily.


%prep
%setup -qn %{name}-%{major_minor_ver}

%build
%configure
# this package does not support parallel build
make -j 1

%install
%make_install
%fdupes %{buildroot}

%files
%{_bindir}/skf
%dir %{_datadir}/skf
%dir %{_datadir}/skf/lib
%{_datadir}/skf/lib
%{_mandir}/man1/skf.1.gz
%license %{_datadir}/doc/skf/copyright
%doc %{_datadir}/doc/skf/changelog
%doc %{_datadir}/doc/skf/README.txt
%dir %{_datadir}/doc/skf
%dir %{_datadir}/doc/skf/doc
%doc %{_datadir}/doc/skf/doc

%changelog
openSUSE Build Service is sponsored by