Compare commits

...
Sign in to create a new pull request.

38 commits

Author SHA1 Message Date
Fedora Release Engineering
8157b9d098 Rebuilt for https://fedoraproject.org/wiki/Fedora_44_Mass_Rebuild 2026-01-16 03:27:39 +00:00
Fedora Release Engineering
c61c7849c7 Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild 2025-07-23 16:46:11 +00:00
Fedora Release Engineering
6459d447ff Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild 2025-01-16 10:36:45 +00:00
Fedora Release Engineering
b965351ad7 Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild 2024-07-17 16:37:30 +00:00
Akira TAGOH
c15407fa5e ci: Migrate CI to tmt based 2024-06-25 14:51:02 +09:00
Fedora Release Engineering
91863e9e89 Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild 2024-01-22 22:41:25 +00:00
Fedora Release Engineering
70e90635a6 Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild 2024-01-19 12:13:42 +00:00
Fedora Release Engineering
64c17f25d3 Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2023-07-19 12:55:48 +00:00
Fedora Release Engineering
0f1e369809 Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2023-01-18 21:25:13 +00:00
Akira TAGOH
46f07a2563 Convert License tag to SPDX. 2022-11-29 17:58:30 +09:00
Fedora Release Engineering
68a34201af Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2022-07-20 20:27:55 +00:00
Akira TAGOH
eccd4c3906 trivial fix 2022-06-24 20:24:05 +09:00
Akira TAGOH
3500d89a98 Revise spec file for new packaging guidelines. 2022-06-21 14:39:11 +09:00
Akira TAGOH
fc3de8c1cd Convert spec file etc to satisfy new packaging guidelines 2022-06-17 19:55:47 +09:00
Fedora Release Engineering
9c876300e1 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2022-01-19 20:57:06 +00:00
Fedora Release Engineering
12fa38283b - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2021-07-21 17:16:56 +00:00
Fedora Release Engineering
c4c7447397 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2021-07-21 12:21:41 +00:00
Fedora Release Engineering
4d88962e16 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2021-01-25 23:49:30 +00:00
Fedora Release Engineering
10c4561454 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2020-07-27 11:45:54 +00:00
Fedora Release Engineering
3fe20753ea - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2020-01-28 11:14:12 +00:00
Akira TAGOH
c42e16d1fd Update CI roles 2019-11-20 17:00:13 +09:00
Fedora Release Engineering
b95e2b610c - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2019-07-24 17:34:50 +00:00
Akira TAGOH
6adffb95ea Update some fixes 2019-05-24 11:16:30 +00:00
Akira TAGOH
34c42b4a65 Update some fixes 2019-05-24 07:24:42 +00:00
Akira TAGOH
054e01c51f Update some fixes 2019-05-24 06:51:35 +00:00
Akira TAGOH
713018fc09 Update some fixes 2019-05-23 09:44:56 +00:00
Akira TAGOH
cb626b463f Fix a condition in role of CI tests 2019-05-22 09:24:59 +00:00
Akira TAGOH
c4af34597e Update custom-test-fonts role 2019-05-17 09:25:07 +00:00
Akira TAGOH
7023e62d43 sync tests 2019-05-16 11:03:35 +00:00
Akira TAGOH
647d0602ad Update .gitignore 2019-05-16 08:22:54 +00:00
Akira TAGOH
fb8b835d29 Don't load unnecessary config files to test. 2019-05-16 08:21:10 +00:00
Akira TAGOH
c8a9fb2407 Use str-common-final to finalize CI 2019-05-16 06:19:17 +00:00
Akira TAGOH
8af6742d21 Add CI tests 2019-05-15 11:36:26 +00:00
Fedora Release Engineering
c7c7a75701 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2019-01-31 12:59:13 +00:00
Akira TAGOH
84ff24d766 Update to 2.011. 2019-01-17 08:13:14 +00:00
Akira TAGOH
be2b72664d Update the priority to make Noto default. 2018-07-18 08:03:29 +00:00
Fedora Release Engineering
436705ee85 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2018-07-12 20:00:19 +00:00
Fedora Release Engineering
95488e8c34 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2018-02-07 01:54:17 +00:00
6 changed files with 163 additions and 35 deletions

1
.fmf/version Normal file
View file

@ -0,0 +1 @@
1

3
.gitignore vendored
View file

@ -1 +1,4 @@
/source-han-code-jp-2.000R.zip
/source-han-code-jp-2.011R.zip
/tests/artifacts
*~

View file

@ -1,5 +1,5 @@
<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<!DOCTYPE fontconfig SYSTEM "urn:fontconfig:fonts.dtd">
<fontconfig>
<!-- Generic names rule -->
<alias>

View file

@ -1,22 +1,69 @@
%global fontname adobe-source-han-code-jp
%global fontconf 65-2-%{fontname}.conf
%global archivename source-han-code-jp-%{version}R
# Packaging template: basic single-family fonts packaging.
#
# SPDX-License-Identifier: MIT
#
# This template documents the minimal set of spec declarations, necessary to
# package a single font family, from a single dedicated source archive.
#
# It is part of the following set of packaging templates:
# “fonts-0-simple”: basic single-family fonts packaging
# “fonts-1-full”: less common patterns for single-family fonts packaging
# “fonts-2-multi”: multi-family fonts packaging
# “fonts-3-sub”: packaging fonts, released as part of something else
#
# A font family is composed of font files, that share a single design, and
# differ ONLY in:
# — Weight Bold, Black…
# WidthStretch Narrow, Condensed, Expanded…
# — Slope/Slant Italic, Oblique
# Optical sizing Caption…
#
# Those parameters correspond to the default axes of OpenType variable fonts:
# https://docs.microsoft.com/en-us/typography/opentype/spec/dvaraxisreg#registered-axis-tags
# The variable fonts model is an extension of the WWS model described in the
# WPF Font Selection Model whitepaper (2007):
# https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Components.PostAttachments/00/02/24/90/36/WPF%20Font%20Selection%20Model.pdf
#
# Do not rely on the naming upstream chose, to define family boundaries, it
# will often be wrong.
#
# Declaration order is chosen to limit divergence between those templates, and
# simplify cut and pasting.
#
Version: 2.011
Release: 19%{?dist}
URL: https://github.com/adobe-fonts/source-han-code-jp/
Name: adobe-source-han-code-jp-fonts
Version: 2.000
Release: 3%{?dist}
Summary: Adobe OpenType UI font for mixed Latin and Japanese text
# The identifier of the entity, that released the font family.
%global foundry adobe
# The font family license identifier. Adjust as necessary. The OFL is our
# recommended font license.
%global fontlicense OFL-1.1
#
# The following directives are lists of space-separated shell globs
# matching files associated with the font family,
# as they exist in the build root,
# — at the end of the %build stage:
# legal files (licensing…)
%global fontlicenses LICENSE.txt
# documentation files
%global fontdocs relnotes.txt README.md README-JP.md
# exclusions from the ”fontdocs” list
%global fontdocsex %{fontlicenses}
License: OFL
URL: https://github.com/adobe-fonts/source-han-code-jp/
Source0: https://github.com/adobe-fonts/source-han-code-jp/archive/%{version}R/%{archivename}.zip
Source1: %{name}-fontconfig.conf
BuildArch: noarch
BuildRequires: fontpackages-devel
Requires: fontpackages-filesystem
%description
# The human-friendly font family name, whitespace included, restricted to the
# the Basic Latin Unicode block.
%global fontfamily Source Han Code JP
%global fontsummary Adobe OpenType UI font for mixed Latin and Japanese text
#
# More shell glob lists:
# font family files
%global fonts OTF/SourceHanCodeJP-RegularIt.otf OTF/SourceHanCodeJP-Regular.otf OTF/SourceHanCodeJP-NormalIt.otf OTF/SourceHanCodeJP-Normal.otf OTF/SourceHanCodeJP-MediumIt.otf OTF/SourceHanCodeJP-Medium.otf OTF/SourceHanCodeJP-LightIt.otf OTF/SourceHanCodeJP-Light.otf OTF/SourceHanCodeJP-HeavyIt.otf OTF/SourceHanCodeJP-Heavy.otf OTF/SourceHanCodeJP-ExtraLightIt.otf OTF/SourceHanCodeJP-ExtraLight.otf OTF/SourceHanCodeJP-BoldIt.otf OTF/SourceHanCodeJP-Bold.otf
# fontconfig files
%global fontconfs %{SOURCE10}
#
# A multi-line description block for the generated package.
%global fontdescription %{expand:
Source Han Code JP is a derivative of Source Han Sans that replaces
its proportional Latin glyphs with fixed-width 667-unit glyphs from
Source Code Pro. The Latin glyphs are scaled to match the glyphs for
@ -25,32 +72,98 @@ Japanese kana and kanji, and their widths are adjusted to be exactly
used as a UI font for mixed Latin and Japanese text on displays,
for programming, editing HTML/CSS, viewing text or inputing to
the command line in a terminal app, and so on.
}
Source0: https://github.com/adobe-fonts/source-han-code-jp/archive/2.011R/source-han-code-jp-2.011R.zip
# Adjust as necessary. Keeping the filename in sync with the package name is a good idea.
# See the fontconfig templates in fonts-rpm-templates for information on how to
# write good fontconfig files and choose the correct priority [number].
Source10: 68-adobe-source-han-code-jp-fonts.conf
%fontpkg
%prep
%autosetup -n %{archivename}
chmod 0644 README.md
%setup -q -n source-han-code-jp-%{version}R
chmod 0644 README.md README-JP.md
%build
%fontbuild
%install
%fontinstall
install -m 0755 -d %{buildroot}%{_fontdir}
install -m 0644 -p OTF/*.otf %{buildroot}%{_fontdir}
%check
%fontcheck
install -m 0755 -d %{buildroot}%{_fontconfig_templatedir} \
%{buildroot}%{_fontconfig_confdir}
install -m 0644 -p %{SOURCE1} \
%{buildroot}%{_fontconfig_templatedir}/%{fontconf}
ln -s %{_fontconfig_templatedir}/%{fontconf} \
%{buildroot}%{_fontconfig_confdir}/%{fontconf}
%_font_pkg -f %{fontconf} *.otf
%license LICENSE.txt
%doc README.md relnotes.txt
%fontfiles
%changelog
* Fri Jan 16 2026 Fedora Release Engineering <releng@fedoraproject.org> - 2.011-19
- Rebuilt for https://fedoraproject.org/wiki/Fedora_44_Mass_Rebuild
* Wed Jul 23 2025 Fedora Release Engineering <releng@fedoraproject.org> - 2.011-18
- Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild
* Thu Jan 16 2025 Fedora Release Engineering <releng@fedoraproject.org> - 2.011-17
- Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild
* Wed Jul 17 2024 Fedora Release Engineering <releng@fedoraproject.org> - 2.011-16
- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild
* Mon Jan 22 2024 Fedora Release Engineering <releng@fedoraproject.org> - 2.011-15
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
* Fri Jan 19 2024 Fedora Release Engineering <releng@fedoraproject.org> - 2.011-14
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
* Wed Jul 19 2023 Fedora Release Engineering <releng@fedoraproject.org> - 2.011-13
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
* Wed Jan 18 2023 Fedora Release Engineering <releng@fedoraproject.org> - 2.011-12
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
* Tue Nov 29 2022 Akira TAGOH <tagoh@redhat.com> - 2.011-11
- Convert License tag to SPDX.
* Wed Jul 20 2022 Fedora Release Engineering <releng@fedoraproject.org> - 2.011-10
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
* Tue Jun 21 2022 Akira TAGOH <tagoh@redhat.com> - 2.011-9
- Revise spec file for new packaging guidelines.
* Wed Jan 19 2022 Fedora Release Engineering <releng@fedoraproject.org> - 2.011-8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
* Wed Jul 21 2021 Fedora Release Engineering <releng@fedoraproject.org> - 2.011-7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
* Mon Jan 25 2021 Fedora Release Engineering <releng@fedoraproject.org> - 2.011-6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
* Mon Jul 27 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.011-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
* Tue Jan 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.011-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
* Wed Jul 24 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2.011-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
* Thu Jan 31 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2.011-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
* Thu Jan 17 2019 Akira TAGOH <tagoh@redhat.com> - 2.011-1
- Update to 2.011.
* Wed Jul 18 2018 Akira TAGOH <tagoh@redhat.com> - 2.000-6
- Update the priority to make Noto default.
* Thu Jul 12 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.000-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.000-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
* Thu Nov 16 2017 Akira TAGOH <tagoh@redhat.com> - 2.000-3
- Correct fontconfig config.

View file

@ -0,0 +1,11 @@
summary: Fonts related tests
discover:
how: fmf
url: https://src.fedoraproject.org/tests/fonts
execute:
how: tmt
environment:
PACKAGE: adobe-source-han-code-jp-fonts
FONT_ALIAS: monospace
FONT_FAMILY: Source Han Code JP
FONT_LANG: ja

View file

@ -1 +1 @@
SHA512 (source-han-code-jp-2.000R.zip) = e78a7caf2e3d5f33cf7d8f237301b4f339498d93c25bc91780320abd1d26a78710494f90cfee1430563c4a1d32f41b3944e5e4e246686021770278d7efc8a3ca
SHA512 (source-han-code-jp-2.011R.zip) = 754ea6d58a03a6696e9c43c0d2f889dd3cad4c06621498e8a72ada0f23d4ed3f9379ced4c3aab70d1fa8b1777ed2f26447dc7b67d8ff34d661f0743ce094b5c2