Dominique Leuenberger 2022-05-30 10:42:48 +00:00 committed by Git OBS Bridge
commit 0c0fb24b87
6 changed files with 57 additions and 16 deletions

View File

@ -1,10 +1,10 @@
#!/bin/sh #!/bin/sh
pkg_name="google-noto-fonts" pkg_name="google-noto-fonts"
font_dir="otf" font_dir="ttf"
# Get only the otf fonts # Get only the otf fonts
svn checkout https://github.com/googlefonts/noto-fonts/trunk/unhinted/otf svn checkout https://github.com/googlefonts/noto-fonts/trunk/hinted/$font_dir
tar -cvzf otf.tar.gz otf tar -cvzf $font_dir.tar.gz $font_dir
cp -f $pkg_name.spec.in $pkg_name.spec cp -f $pkg_name.spec.in $pkg_name.spec
ls $font_dir/ | sed -e 's:Noto::' -e 's:-.*\..tf::' -e 's:\..tf::' -e 's:\.ttc::' | sort -f | uniq | while read font; do ls $font_dir/ | sed -e 's:Noto::' -e 's:-.*\..tf::' -e 's:\..tf::' -e 's:\.ttc::' | sort -f | uniq | while read font; do
@ -32,6 +32,12 @@ ls $font_dir/ | sed -e 's:Noto::' -e 's:-.*\..tf::' -e 's:\..tf::' -e 's:\.ttc::
fi fi
if [ $packagename == "noto-sans" ]; then if [ $packagename == "noto-sans" ]; then
OBSOLETES=($packagename 'noto-sans-display' 'noto-sans-display-fonts') OBSOLETES=($packagename 'noto-sans-display' 'noto-sans-display-fonts')
elif [ $packagename == "noto-serif-tibetan" ]; then
OBSOLETES=($packagename 'noto-sans-tibetan' 'noto-sans-tibetan-fonts')
elif [ $packagename == "noto-sans-syriac" ]; then
OBSOLETES=($packagename 'noto-sans-syriacwestern' 'noto-sans-syriacwestern-fonts' 'noto-sans-syriacestrangela' 'noto-sans-syriacestrangela-fonts' 'noto-sans-syriaceastern' 'noto-sans-syriaceastern-fonts')
elif [ $packagename == "noto-sans-mono" ]; then
OBSOLETES=($packagename 'noto-mono' 'noto-mono-fonts')
else else
OBSOLETES=($packagename) OBSOLETES=($packagename)
fi fi

View File

@ -1,3 +1,18 @@
-------------------------------------------------------------------
Thu May 26 23:07:18 UTC 2022 - Gordon Leung <pirateclip@protonmail.com>
- Switch back to hinted ttf as unhinted otf causes blurring (boo#1199938)
-------------------------------------------------------------------
Tue May 24 23:19:22 UTC 2022 - Gordon Leung <pirateclip@protonmail.com>
- Add obsoletes and provides for:
- noto-mono-fonts: Got merged into noto-sans-mono-fonts
- noto-sans-syriac* variants: Got merged into noto-sans-syriac-fonts
- noto-sans-tibetan-fonts: Got renamed to noto-serif-tibetan-fonts
- Update to version 20220524
- Updated Noto Sans Myanmar and Noto Sans Tangsa Fonts
------------------------------------------------------------------- -------------------------------------------------------------------
Thu May 19 15:10:51 UTC 2022 - Gordon Leung <pirateclip@protonmail.com> Thu May 19 15:10:51 UTC 2022 - Gordon Leung <pirateclip@protonmail.com>

View File

@ -18,7 +18,7 @@
%define hyear 2022 %define hyear 2022
%define hmonth 05 %define hmonth 05
%define hday 16 %define hday 24
%define src_name NotoFonts %define src_name NotoFonts
@ -32,7 +32,7 @@ License: OFL-1.1
Group: System/X11/Fonts Group: System/X11/Fonts
URL: https://github.com/googlefonts/noto-fonts URL: https://github.com/googlefonts/noto-fonts
# Generate Source0 via generate-fonts-and-specfile.sh # Generate Source0 via generate-fonts-and-specfile.sh
Source0: otf.tar.gz Source0: ttf.tar.gz
Source1: generate-fonts-and-specfile.sh Source1: generate-fonts-and-specfile.sh
Source2: LICENSE Source2: LICENSE
BuildRequires: fontpackages-devel BuildRequires: fontpackages-devel
@ -1399,6 +1399,10 @@ Group: System/X11/Fonts
Recommends: google-noto-fonts-doc Recommends: google-noto-fonts-doc
Obsoletes: noto-sans-mono < %{version} Obsoletes: noto-sans-mono < %{version}
Provides: noto-sans-mono = %{version} Provides: noto-sans-mono = %{version}
Obsoletes: noto-mono < %{version}
Provides: noto-mono = %{version}
Obsoletes: noto-mono-fonts < %{version}
Provides: noto-mono-fonts = %{version}
%reconfigure_fonts_prereq %reconfigure_fonts_prereq
%description -n noto-sans-mono-fonts %description -n noto-sans-mono-fonts
@ -2023,6 +2027,18 @@ Group: System/X11/Fonts
Recommends: google-noto-fonts-doc Recommends: google-noto-fonts-doc
Obsoletes: noto-sans-syriac < %{version} Obsoletes: noto-sans-syriac < %{version}
Provides: noto-sans-syriac = %{version} Provides: noto-sans-syriac = %{version}
Obsoletes: noto-sans-syriacwestern < %{version}
Provides: noto-sans-syriacwestern = %{version}
Obsoletes: noto-sans-syriacwestern-fonts < %{version}
Provides: noto-sans-syriacwestern-fonts = %{version}
Obsoletes: noto-sans-syriacestrangela < %{version}
Provides: noto-sans-syriacestrangela = %{version}
Obsoletes: noto-sans-syriacestrangela-fonts < %{version}
Provides: noto-sans-syriacestrangela-fonts = %{version}
Obsoletes: noto-sans-syriaceastern < %{version}
Provides: noto-sans-syriaceastern = %{version}
Obsoletes: noto-sans-syriaceastern-fonts < %{version}
Provides: noto-sans-syriaceastern-fonts = %{version}
%reconfigure_fonts_prereq %reconfigure_fonts_prereq
%description -n noto-sans-syriac-fonts %description -n noto-sans-syriac-fonts
@ -2894,6 +2910,10 @@ Group: System/X11/Fonts
Recommends: google-noto-fonts-doc Recommends: google-noto-fonts-doc
Obsoletes: noto-serif-tibetan < %{version} Obsoletes: noto-serif-tibetan < %{version}
Provides: noto-serif-tibetan = %{version} Provides: noto-serif-tibetan = %{version}
Obsoletes: noto-sans-tibetan < %{version}
Provides: noto-sans-tibetan = %{version}
Obsoletes: noto-sans-tibetan-fonts < %{version}
Provides: noto-sans-tibetan-fonts = %{version}
%reconfigure_fonts_prereq %reconfigure_fonts_prereq
%description -n noto-serif-tibetan-fonts %description -n noto-serif-tibetan-fonts
@ -2976,13 +2996,13 @@ cp %{SOURCE2} .
mkdir -p %{buildroot}%{_ttfontsdir} mkdir -p %{buildroot}%{_ttfontsdir}
# Tifinagh fonts have duplicates in NotoSansTifinagh folder # Tifinagh fonts have duplicates in NotoSansTifinagh folder
# https://github.com/googlefonts/noto-fonts/issues/2177 and https://github.com/googlefonts/noto-fonts/issues/2326 # https://github.com/googlefonts/noto-fonts/issues/2177 and https://github.com/googlefonts/noto-fonts/issues/2326
rm otf/NotoSansTifinagh/NotoSansTifinagh[!\-]* rm ttf/NotoSansTifinagh/NotoSansTifinagh[!\-]*
# NotoSansDisplay is already provided by NotoSans # NotoSansDisplay is already provided by NotoSans
# Also they have inconsistent family names: https://github.com/googlefonts/noto-fonts/issues/2315 # Also they have inconsistent family names: https://github.com/googlefonts/noto-fonts/issues/2315
rm -r otf/NotoSansDisplay/ rm -r ttf/NotoSansDisplay/
cp otf/*/*.otf %{buildroot}%{_ttfontsdir}/ cp ttf/*/*.ttf %{buildroot}%{_ttfontsdir}/
%reconfigure_fonts_scriptlets -n noto-arimo-fonts %reconfigure_fonts_scriptlets -n noto-arimo-fonts

View File

@ -18,7 +18,7 @@
%define hyear 2022 %define hyear 2022
%define hmonth 05 %define hmonth 05
%define hday 16 %define hday 24
%define src_name NotoFonts %define src_name NotoFonts
@ -32,7 +32,7 @@ License: OFL-1.1
Group: System/X11/Fonts Group: System/X11/Fonts
Url: https://github.com/googlefonts/noto-fonts Url: https://github.com/googlefonts/noto-fonts
# Generate Source0 via generate-fonts-and-specfile.sh # Generate Source0 via generate-fonts-and-specfile.sh
Source0: otf.tar.gz Source0: ttf.tar.gz
Source1: generate-fonts-and-specfile.sh Source1: generate-fonts-and-specfile.sh
Source2: LICENSE Source2: LICENSE
BuildRequires: fontpackages-devel BuildRequires: fontpackages-devel
@ -61,13 +61,13 @@ cp %{SOURCE2} .
mkdir -p %{buildroot}%{_ttfontsdir} mkdir -p %{buildroot}%{_ttfontsdir}
# Tifinagh fonts have duplicates in NotoSansTifinagh folder # Tifinagh fonts have duplicates in NotoSansTifinagh folder
# https://github.com/googlefonts/noto-fonts/issues/2177 and https://github.com/googlefonts/noto-fonts/issues/2326 # https://github.com/googlefonts/noto-fonts/issues/2177 and https://github.com/googlefonts/noto-fonts/issues/2326
rm otf/NotoSansTifinagh/NotoSansTifinagh[!\-]* rm ttf/NotoSansTifinagh/NotoSansTifinagh[!\-]*
# NotoSansDisplay is already provided by NotoSans # NotoSansDisplay is already provided by NotoSans
# Also they have inconsistent family names: https://github.com/googlefonts/noto-fonts/issues/2315 # Also they have inconsistent family names: https://github.com/googlefonts/noto-fonts/issues/2315
rm -r otf/NotoSansDisplay/ rm -r ttf/NotoSansDisplay/
cp otf/*/*.otf %{buildroot}%{_ttfontsdir}/ cp ttf/*/*.ttf %{buildroot}%{_ttfontsdir}/
@SUBPACKAGE_SCRIPTLETS@ @SUBPACKAGE_SCRIPTLETS@

View File

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

3
ttf.tar.gz Normal file
View File

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