File thaix-fonts.spec of Package thaix-fonts

#
# spec file for package thaix-fonts
#
# Copyright (c) 2020 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/
#


Name:           thaix-fonts
Version:        1.2.7
Release:        0
Summary:        A collection of Thai bitmap fonts
License:        GPL-2.0-or-later
URL:            https://linux.thai.net/projects/thaixfonts
Source0:        https://linux.thai.net/pub/thailinux/software/thaixfonts/thaixfonts-%{version}.tar.xz
BuildRequires:  bdftopcf
BuildRequires:  fontpackages-devel
BuildRequires:  mkfontdir
BuildArch:      noarch
%reconfigure_fonts_prereq

%description
This package provides one set of Thai TIS-620 pseudo-monospace
(with zero-width combining character) bitmap fonts for X developed by
NECTEC, with complete set of normal, bold, italic, and bold-italic faces.
This font looks good in xiterm+thai, with complete text styles support.

%prep
%setup -q -n thaixfonts-%{version}

%build
%configure --with-ttfdir=%{_ttfontsdir}
%make_build

%install
%make_install

%reconfigure_fonts_scriptlets

%files
%license COPYING
%doc AUTHORS NEWS README ChangeLog
%dir %{_datadir}/fonts/X11
%dir %{_datadir}/fonts/X11/misc
%{_datadir}/fonts/X11/misc/etl*-thai.pcf.gz
%{_datadir}/fonts/X11/misc/pvemacs_*.pcf.gz
%{_datadir}/fonts/X11/misc/pvfixed_*.pcf.gz
%{_datadir}/fonts/X11/misc/thai.alias
%{_datadir}/fonts/X11/misc/thai*.pcf.gz

%changelog
openSUSE Build Service is sponsored by