141 lines
4.7 KiB
RPMSpec
141 lines
4.7 KiB
RPMSpec
#
|
|
# spec file for package adobe-sourcehansans-fonts
|
|
#
|
|
# Copyright (c) 2021 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 shared_description Source Han Sans is an open source Pan-CJK typeface whose OpenType/CFF fonts and CID-based sources are covered under the terms of the SIL Open Font License.
|
|
|
|
Name: adobe-sourcehansans-fonts
|
|
Version: 2.004
|
|
Release: 0
|
|
Summary: Source Han Sans
|
|
License: OFL-1.1
|
|
Group: System/X11/Fonts
|
|
URL: https://github.com/adobe-fonts/source-han-sans
|
|
Source0: https://github.com/adobe-fonts/source-han-sans/releases/download/%{version}R/SourceHanSansCN.zip
|
|
Source1: https://github.com/adobe-fonts/source-han-sans/releases/download/%{version}R/SourceHanSansHK.zip
|
|
Source2: https://github.com/adobe-fonts/source-han-sans/releases/download/%{version}R/SourceHanSansJP.zip
|
|
Source3: https://github.com/adobe-fonts/source-han-sans/releases/download/%{version}R/SourceHanSansKR.zip
|
|
Source4: https://github.com/adobe-fonts/source-han-sans/releases/download/%{version}R/SourceHanSansTW.zip
|
|
Source5: https://github.com/adobe-fonts/source-han-sans/releases/download/%{version}R/SourceHanSans-VF.zip
|
|
BuildRequires: fontpackages-devel
|
|
BuildRequires: unzip
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
BuildArch: noarch
|
|
|
|
%description
|
|
%{shared_description}
|
|
|
|
%prep
|
|
unzip -o %{S:0}
|
|
unzip -o %{S:1}
|
|
unzip -o %{S:2}
|
|
unzip -o %{S:3}
|
|
unzip -o %{S:4}
|
|
unzip -o %{S:5}
|
|
|
|
%build
|
|
|
|
%install
|
|
mkdir -p %{buildroot}%{_ttfontsdir}
|
|
mv Variable/OTF/Subset/*.otf %{buildroot}%{_ttfontsdir}
|
|
mv SubsetOTF/*/*.otf %{buildroot}%{_ttfontsdir}
|
|
|
|
# Chinese China package
|
|
%package -n adobe-sourcehansans-cn-fonts
|
|
Summary: Source Han Sans CN
|
|
Group: System/X11/Fonts
|
|
Provides: scalable-font-zh_CN
|
|
Provides: locale(zh_CN)
|
|
|
|
%description -n adobe-sourcehansans-cn-fonts
|
|
%{shared_description}
|
|
%reconfigure_fonts_scriptlets -n adobe-sourcehansans-cn-fonts
|
|
%files -n adobe-sourcehansans-cn-fonts
|
|
%defattr(0644,root,root,755)
|
|
%license LICENSE.txt
|
|
%dir %{_ttfontsdir}
|
|
%{_ttfontsdir}/SourceHanSansCN-*.otf
|
|
|
|
# Chinese Hongkong package
|
|
%package -n adobe-sourcehansans-hk-fonts
|
|
Summary: Source Han Sans HK
|
|
Group: System/X11/Fonts
|
|
Provides: scalable-font-zh_HK
|
|
Provides: locale(zh_HK)
|
|
|
|
%description -n adobe-sourcehansans-hk-fonts
|
|
%{shared_description}
|
|
%reconfigure_fonts_scriptlets -n adobe-sourcehansans-hk-fonts
|
|
%files -n adobe-sourcehansans-hk-fonts
|
|
%defattr(0644,root,root,755)
|
|
%license LICENSE.txt
|
|
%dir %{_ttfontsdir}
|
|
%{_ttfontsdir}/SourceHanSansHK-*.otf
|
|
|
|
# Japanese package
|
|
%package -n adobe-sourcehansans-jp-fonts
|
|
Summary: Source Han Sans JP
|
|
Group: System/X11/Fonts
|
|
Provides: scalable-font-jp
|
|
Provides: locale(jp)
|
|
|
|
%description -n adobe-sourcehansans-jp-fonts
|
|
%{shared_description}
|
|
%reconfigure_fonts_scriptlets -n adobe-sourcehansans-jp-fonts
|
|
%files -n adobe-sourcehansans-jp-fonts
|
|
%defattr(0644,root,root,755)
|
|
%license LICENSE.txt
|
|
%dir %{_ttfontsdir}
|
|
%{_ttfontsdir}/SourceHanSansJP-*.otf
|
|
|
|
# Korean package
|
|
%package -n adobe-sourcehansans-kr-fonts
|
|
Summary: Source Han Sans KR
|
|
Group: System/X11/Fonts
|
|
Provides: scalable-font-kr
|
|
Provides: locale(kr)
|
|
|
|
%description -n adobe-sourcehansans-kr-fonts
|
|
%{shared_description}
|
|
%reconfigure_fonts_scriptlets -n adobe-sourcehansans-kr-fonts
|
|
%files -n adobe-sourcehansans-kr-fonts
|
|
%defattr(0644,root,root,755)
|
|
%license LICENSE.txt
|
|
%dir %{_ttfontsdir}
|
|
%{_ttfontsdir}/SourceHanSansKR-*.otf
|
|
|
|
# Chinese Taiwan package
|
|
%package -n adobe-sourcehansans-tw-fonts
|
|
Summary: Source Han Sans TW
|
|
# Replace the old single package that only provides Taiwan fonts
|
|
Group: System/X11/Fonts
|
|
Provides: adobe-sourcehansans-fonts = %version-%release
|
|
Provides: scalable-font-zh_TW
|
|
Provides: locale(zh_TW)
|
|
Obsoletes: adobe-sourcehansans-fonts < %version-%release
|
|
|
|
%description -n adobe-sourcehansans-tw-fonts
|
|
%{shared_description}
|
|
%reconfigure_fonts_scriptlets -n adobe-sourcehansans-tw-fonts
|
|
%files -n adobe-sourcehansans-tw-fonts
|
|
%defattr(0644,root,root,755)
|
|
%license LICENSE.txt
|
|
%dir %{_ttfontsdir}
|
|
%{_ttfontsdir}/SourceHanSansTW-*.otf
|
|
|
|
%changelog
|