Dominique Leuenberger 2024-03-01 22:35:11 +00:00 committed by Git OBS Bridge
commit 2279c81681
8 changed files with 42 additions and 232 deletions

View File

@ -1,5 +1,5 @@
FAQ by Gordon Leung <pirateclip@protonmail.com>
Last reviewed: 2024-01-06
Last reviewed: 2024-03-01
Q: Why are there so many Noto packages?
A: Each Noto Font family is individually packaged to allow the user to pick and

View File

@ -1,4 +1,4 @@
Last reviewed: 2024-01-06
Last reviewed: 2024-03-01
1. Download the latest release tarball from here: https://github.com/notofonts/notofonts.github.io/releases
2. Rename the current specfile to old.spec then edit the versions in generate-specfile.sh and google-noto-fonts.spec.in
3. Run generate-specfile.sh to get the new specfile
@ -13,4 +13,4 @@ Last reviewed: 2024-01-06
If you need to change the specfile, you change it programmatically in generate-specfile.sh
rather than directly edit google-noto-fonts.spec
That way the next person who runs the script does not need to redo your changes
Editing google-noto-fonts.spec.in however is fine
Editing google-noto-fonts.spec.in however is fine

View File

@ -17,7 +17,7 @@
set -euo pipefail
pkg_name="google-noto-fonts"
font_dir="notofonts.github.io-noto-monthly-release-24.1.1"
font_dir="notofonts.github.io-noto-monthly-release-24.3.1"
# Used to extract the tarball to generate the specfile.
# You can comment this out while testing out changes to the script,
@ -28,7 +28,7 @@ cp -f $pkg_name.spec.in $pkg_name.spec
ls $font_dir/fonts | sed -e 's:Noto::' -e 's:-.*\..tf::' -e 's:\..tf::' -e 's:\.ttc::' | sort -f | uniq | while read -r font; do
# DO NOT create font packages out of these folders.
if [ "$font" == "LICENSE" ] || [ "$font" == "SansTest" ] || [ "$font" == "SerifTest" ] || [ "$font" == "NaskhArabicUI" ] || [ "$font" = "LoopedThai" ]; then
if [ "$font" == "LICENSE" ] || [ "$font" == "SansTest" ] || [ "$font" == "SerifTest" ] || [ "$font" == "NaskhArabicUI" ]; then
continue
fi
@ -113,7 +113,6 @@ ls $font_dir/fonts | sed -e 's:Noto::' -e 's:-.*\..tf::' -e 's:\..tf::' -e 's:\.
sed -i "s/@SUBPACKAGE_HEADERS@/\n@SUBPACKAGE_HEADERS@/" $pkg_name.spec
sed -i "s/@SUBPACKAGE_SCRIPTLETS@/%reconfigure_fonts_scriptlets -n $packagename\n\n@SUBPACKAGE_SCRIPTLETS@/" $pkg_name.spec
sed -i "s/@SUBPACKAGE_FILELISTS@/%files -n $packagename\n@SUBPACKAGE_FILELISTS@/" $pkg_name.spec
sed -i "s/@SUBPACKAGE_FILELISTS@/%defattr(0644,root,root,755)\n@SUBPACKAGE_FILELISTS@/" $pkg_name.spec
sed -i "s/@SUBPACKAGE_FILELISTS@/%license LICENSE\n@SUBPACKAGE_FILELISTS@/" $pkg_name.spec
sed -i "s/@SUBPACKAGE_FILELISTS@/%dir %{_ttfontsdir}\n@SUBPACKAGE_FILELISTS@/" $pkg_name.spec

View File

@ -1,3 +1,20 @@
-------------------------------------------------------------------
Fri Mar 1 07:23:34 UTC 2024 - Gordon Leung <pirateclip@protonmail.com>
- Update to 20240301
* Fixes to Balinese, Sans Canadian Aboriginal, Sans Georgian
and Kufi Arabic
-------------------------------------------------------------------
Wed Feb 28 16:12:05 UTC 2024 - Gordon Leung <pirateclip@protonmail.com>
- Remove fonttools build requires
-------------------------------------------------------------------
Wed Feb 28 12:01:34 UTC 2024 - Jan Engelhardt <jengelh@inai.de>
- Delete old specfile constructs.
-------------------------------------------------------------------
Sat Jan 6 01:46:43 UTC 2024 - Gordon Leung <pirateclip@protonmail.com>

File diff suppressed because it is too large Load Diff

View File

@ -1,7 +1,7 @@
#
# spec file for package google-noto-fonts
#
# Copyright (c) 2023 SUSE LLC
# Copyright (c) 2024 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@ -17,7 +17,7 @@
%define hyear 2024
%define hmonth 01
%define hmonth 03
%define hday 01
%define src_name NotoFonts
@ -31,14 +31,12 @@ Summary: All Noto Fonts except CJK and Emoji
License: OFL-1.1
Group: System/X11/Fonts
URL: https://notofonts.github.io/
# https://github.com/notofonts/notofonts.github.io/archive/refs/tags/noto-monthly-release-24.1.1.tar.gz
Source0: notofonts.github.io-noto-monthly-release-24.1.1.tar.gz
# https://github.com/notofonts/notofonts.github.io/archive/refs/tags/noto-monthly-release-24.3.1.tar.gz
Source0: notofonts.github.io-noto-monthly-release-24.3.1.tar.gz#noto-monthly-release-24.3.1
Source1: generate-specfile.sh
Source2: README.FAQ
Source3: README.maintain
BuildRequires: fontpackages-devel
BuildRequires: fonttools
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildArch: noarch
Obsoletes: noto-fonts < %{version}
Provides: noto-fonts = %{version}
@ -50,23 +48,21 @@ thicknesses) across languages. This package contains most noto fonts except for
@SUBPACKAGE_HEADERS@
%prep
tar -xzf %{SOURCE0} -C .
%autosetup -c
cp notofonts.github.io-noto-monthly-release-24.1.1/fonts/LICENSE .
cp notofonts.github.io-noto-monthly-release-24.3.1/fonts/LICENSE .
%build
%install
rm -r notofonts.github.io-noto-monthly-release-24.1.1/fonts/Noto*Test
rm -r notofonts.github.io-noto-monthly-release-24.1.1/fonts/NotoLoopedThai
rm -r notofonts.github.io-noto-monthly-release-24.1.1/fonts/NotoSansPhagsPa/hinted/ttf/NotoSansPhags-Pa-Regular.ttf
rm -r notofonts.github.io-noto-monthly-release-24.3.1/fonts/Noto*Test
rm -r notofonts.github.io-noto-monthly-release-24.3.1/fonts/NotoSansPhagsPa/hinted/ttf/NotoSansPhags-Pa-Regular.ttf
install -Dm 644 -t %{buildroot}%{_ttfontsdir} notofonts.github.io-noto-monthly-release-24.1.1/fonts/*/hinted/ttf/*
install -Dm 644 -t %{buildroot}%{_ttfontsdir} notofonts.github.io-noto-monthly-release-24.3.1/fonts/*/hinted/ttf/*
@SUBPACKAGE_SCRIPTLETS@
%files
%defattr(0644,root,root,755)
@SUBPACKAGE_FILELISTS@
%changelog

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:435e383e26200b10e9c4442e1f588bdeb9c5b498aead02e4819602fff2b4b22b
size 1062706467

View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:abcef824e61aa99626b6ad331c1cba875f28b3d87cc9ff8c87d46d55fe344369
size 1065711184