File adobe-sourcehansans-fonts.spec of Package adobe-sourcehansans-fonts
#
# spec file for package adobe-sourcehansans-fonts
#
# Copyright (c) 2017 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: adobe-sourcehansans-fonts
Version: 1.002
Release: 0
Summary: An OpenType/CFF Pan-CJK font family
License: OFL-1.1
Group: System/X11/Fonts
Url: https://github.com/adobe-fonts/source-han-sans
Source: https://github.com/adobe-fonts/source-han-sans/raw/release/SubsetOTF/SourceHanSansTW.zip
Source1: 57-adobe-sourcehansans.conf
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildArch: noarch
BuildRequires: fontconfig
BuildRequires: fontpackages-devel
BuildRequires: unzip
Provides: source-han-sans = %version
Obsoletes: source-han-sans < %version
Provides: sourcehansans = %version
Obsoletes: sourcehansans < %version
Provides: scalable-font-zh_TW
Provides: locale(zh_TW)
%reconfigure_fonts_prereq
%description
A set of Pan-CJK fonts designed to complement Source Sans Pro.
%prep
%setup -q -n SourceHanSansTW
%build
%install
install -d %buildroot%_ttfontsdir
install -m 644 *.otf %buildroot%_ttfontsdir
%install_fontsconf %SOURCE1
%reconfigure_fonts_scriptlets
%files
%defattr(-,root,root)
%doc LICENSE.txt
%_ttfontsdir/
%files_fontsconf_availdir
%files_fontsconf_file -l 57-adobe-sourcehansans.conf
%changelog