Accepting request 1137228 from M17N:fonts
fwd rq 1137202 OBS-URL: https://build.opensuse.org/request/show/1137228 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/google-noto-fonts?expand=0&rev=27
This commit is contained in:
commit
387baab36f
94
LICENSE
94
LICENSE
@ -1,94 +0,0 @@
|
||||
Copyright 2018 The Noto Project Authors (github.com/googlei18n/noto-fonts)
|
||||
|
||||
This Font Software is licensed under the SIL Open Font License,
|
||||
Version 1.1.
|
||||
|
||||
This license is copied below, and is also available with a FAQ at:
|
||||
http://scripts.sil.org/OFL
|
||||
|
||||
-----------------------------------------------------------
|
||||
SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
|
||||
-----------------------------------------------------------
|
||||
|
||||
PREAMBLE
|
||||
The goals of the Open Font License (OFL) are to stimulate worldwide
|
||||
development of collaborative font projects, to support the font
|
||||
creation efforts of academic and linguistic communities, and to
|
||||
provide a free and open framework in which fonts may be shared and
|
||||
improved in partnership with others.
|
||||
|
||||
The OFL allows the licensed fonts to be used, studied, modified and
|
||||
redistributed freely as long as they are not sold by themselves. The
|
||||
fonts, including any derivative works, can be bundled, embedded,
|
||||
redistributed and/or sold with any software provided that any reserved
|
||||
names are not used by derivative works. The fonts and derivatives,
|
||||
however, cannot be released under any other type of license. The
|
||||
requirement for fonts to remain under this license does not apply to
|
||||
any document created using the fonts or their derivatives.
|
||||
|
||||
DEFINITIONS
|
||||
"Font Software" refers to the set of files released by the Copyright
|
||||
Holder(s) under this license and clearly marked as such. This may
|
||||
include source files, build scripts and documentation.
|
||||
|
||||
"Reserved Font Name" refers to any names specified as such after the
|
||||
copyright statement(s).
|
||||
|
||||
"Original Version" refers to the collection of Font Software
|
||||
components as distributed by the Copyright Holder(s).
|
||||
|
||||
"Modified Version" refers to any derivative made by adding to,
|
||||
deleting, or substituting -- in part or in whole -- any of the
|
||||
components of the Original Version, by changing formats or by porting
|
||||
the Font Software to a new environment.
|
||||
|
||||
"Author" refers to any designer, engineer, programmer, technical
|
||||
writer or other person who contributed to the Font Software.
|
||||
|
||||
PERMISSION & CONDITIONS
|
||||
Permission is hereby granted, free of charge, to any person obtaining
|
||||
a copy of the Font Software, to use, study, copy, merge, embed,
|
||||
modify, redistribute, and sell modified and unmodified copies of the
|
||||
Font Software, subject to the following conditions:
|
||||
|
||||
1) Neither the Font Software nor any of its individual components, in
|
||||
Original or Modified Versions, may be sold by itself.
|
||||
|
||||
2) Original or Modified Versions of the Font Software may be bundled,
|
||||
redistributed and/or sold with any software, provided that each copy
|
||||
contains the above copyright notice and this license. These can be
|
||||
included either as stand-alone text files, human-readable headers or
|
||||
in the appropriate machine-readable metadata fields within text or
|
||||
binary files as long as those fields can be easily viewed by the user.
|
||||
|
||||
3) No Modified Version of the Font Software may use the Reserved Font
|
||||
Name(s) unless explicit written permission is granted by the
|
||||
corresponding Copyright Holder. This restriction only applies to the
|
||||
primary font name as presented to the users.
|
||||
|
||||
4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
|
||||
Software shall not be used to promote, endorse or advertise any
|
||||
Modified Version, except to acknowledge the contribution(s) of the
|
||||
Copyright Holder(s) and the Author(s) or with their explicit written
|
||||
permission.
|
||||
|
||||
5) The Font Software, modified or unmodified, in part or in whole,
|
||||
must be distributed entirely under this license, and must not be
|
||||
distributed under any other license. The requirement for fonts to
|
||||
remain under this license does not apply to any document created using
|
||||
the Font Software.
|
||||
|
||||
TERMINATION
|
||||
This license becomes null and void if any of the above conditions are
|
||||
not met.
|
||||
|
||||
DISCLAIMER
|
||||
THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
||||
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
|
||||
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
|
||||
OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
|
||||
COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
|
||||
INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
|
||||
DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
||||
FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
|
||||
OTHER DEALINGS IN THE FONT SOFTWARE.
|
@ -1,5 +1,5 @@
|
||||
FAQ by Gordon Leung <pirateclip@protonmail.com>
|
||||
Last reviewed: 2022-08-22
|
||||
Last reviewed: 2024-01-06
|
||||
|
||||
Q: Why are there so many Noto packages?
|
||||
A: Each Noto Font family is individually packaged to allow the user to pick and
|
||||
|
16
README.maintain
Normal file
16
README.maintain
Normal file
@ -0,0 +1,16 @@
|
||||
Last reviewed: 2024-01-06
|
||||
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
|
||||
- generate-specfile.sh untars your tarball and then based on the folders in fonts, generates a specfile with every package being a folder
|
||||
4. Compare the two specfiles with some sort of diffing program and note any added, deleted, or renamed packages
|
||||
5. Push to your branch (osc ci) to see if the package builds, osc build is of limited use
|
||||
as your local vm will likely crash before the build is fully completed
|
||||
6. If there are no noteworthy errors, then write the osc vc with the changes,
|
||||
push, then send the submit request (osc sr). If there are, then fix them first
|
||||
before submitting
|
||||
|
||||
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
|
@ -1,30 +0,0 @@
|
||||
--- ttf/Arimo/Arimo-BoldItalic.ttx 2022-08-22 15:32:43.920829321 -0600
|
||||
+++ ttf-patched/Arimo/Arimo-BoldItalic.ttx 2022-08-22 15:35:08.020159973 -0600
|
||||
@@ -3373,7 +3373,7 @@
|
||||
will be recalculated by the compiler -->
|
||||
<version value="4"/>
|
||||
<xAvgCharWidth value="1248"/>
|
||||
- <usWeightClass value="400"/>
|
||||
+ <usWeightClass value="700"/>
|
||||
<usWidthClass value="5"/>
|
||||
<fsType value="00000000 00000000"/>
|
||||
<ySubscriptXSize value="1331"/>
|
||||
@@ -90165,7 +90165,7 @@
|
||||
Arimo Bold
|
||||
</namerecord>
|
||||
<namerecord nameID="2" platformID="3" platEncID="1" langID="0x409">
|
||||
- Italic
|
||||
+ Bold Italic
|
||||
</namerecord>
|
||||
<namerecord nameID="3" platformID="3" platEncID="1" langID="0x409">
|
||||
1.33;GOOG;Arimo-BoldItalic
|
||||
@@ -90206,9 +90206,6 @@
|
||||
<namerecord nameID="16" platformID="3" platEncID="1" langID="0x409">
|
||||
Arimo
|
||||
</namerecord>
|
||||
- <namerecord nameID="17" platformID="3" platEncID="1" langID="0x409">
|
||||
- Bold Italic
|
||||
- </namerecord>
|
||||
</name>
|
||||
|
||||
<post>
|
@ -1,89 +0,0 @@
|
||||
#!/bin/bash
|
||||
pkg_name="google-noto-fonts"
|
||||
font_dir="ttf"
|
||||
|
||||
# Get only the hinted fonts
|
||||
svn checkout https://github.com/googlefonts/noto-fonts/trunk/hinted/$font_dir
|
||||
tar -cvzf $font_dir.tar.gz $font_dir/[!\.]*
|
||||
|
||||
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
|
||||
ui=`(echo $font | grep -q UI) && echo UI`
|
||||
font=${font%%$ui}
|
||||
serif=`echo $font | sed 's:\(Sans\|Serif\).*:\1:'`
|
||||
script=`echo $font | sed "s:$serif\(.*\):\1:"`
|
||||
packagename="noto-$serif"
|
||||
if [ ! -z $script ]; then
|
||||
packagename="$packagename-$script"
|
||||
fi
|
||||
if [ ! -z $ui ]; then
|
||||
packagename="$packagename-$ui"
|
||||
fi
|
||||
packagename=`echo "$packagename" | tr [A-Z] [a-z]`
|
||||
# NotoSansDisplay is already provided by NotoSans
|
||||
# Also they have inconsistent family names: https://github.com/googlefonts/noto-fonts/issues/2315
|
||||
if [ $packagename == "noto-sans-display" ]; then
|
||||
continue
|
||||
fi
|
||||
if [ $serif == "Sans" ]; then
|
||||
serif_dsc="Sans Serif "
|
||||
else
|
||||
serif_dsc="Serif "
|
||||
fi
|
||||
if [ $packagename == "noto-sans" ]; then
|
||||
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')
|
||||
elif [ $packagename == "noto-arimo" ] || [ $packagename == "noto-cousine" ] || [ $packagename == "noto-tinos" ]; then
|
||||
OBSOLETES=($packagename `echo "google-$serif-fonts" | tr [A-Z] [a-z]`)
|
||||
else
|
||||
OBSOLETES=($packagename)
|
||||
fi
|
||||
packagename="$packagename-fonts"
|
||||
if [ ! -z "$script" ]; then
|
||||
summary=`echo "Noto $script ${serif_dsc}Font" | sed 's:\([a-z]\)\([A-Z]\):\1 \2:g'`
|
||||
else
|
||||
summary=`echo "Noto $serif Font" | sed 's:\([a-z]\)\([A-Z]\):\1 \2:g'`
|
||||
fi
|
||||
sed -i "s/@LIST_OF_SUBPACKAGES@/Requires: $packagename\n@LIST_OF_SUBPACKAGES@/" $pkg_name.spec
|
||||
sed -i "s/@SUBPACKAGE_HEADERS@/%package -n $packagename\n@SUBPACKAGE_HEADERS@/" $pkg_name.spec
|
||||
sed -i "s/@SUBPACKAGE_HEADERS@/Summary: $summary\n@SUBPACKAGE_HEADERS@/" $pkg_name.spec
|
||||
sed -i "s;@SUBPACKAGE_HEADERS@;Group: System/X11/Fonts\n@SUBPACKAGE_HEADERS@;" $pkg_name.spec
|
||||
for i in "${OBSOLETES[@]}" ; do
|
||||
sed -i "s/@SUBPACKAGE_HEADERS@/Obsoletes: $i < %{version}\n@SUBPACKAGE_HEADERS@/" $pkg_name.spec
|
||||
sed -i "s/@SUBPACKAGE_HEADERS@/Provides: $i = %{version}\n@SUBPACKAGE_HEADERS@/" $pkg_name.spec
|
||||
done
|
||||
sed -i "s/@SUBPACKAGE_HEADERS@/%reconfigure_fonts_prereq\n@SUBPACKAGE_HEADERS@/" $pkg_name.spec
|
||||
sed -i "s/@SUBPACKAGE_HEADERS@/\n@SUBPACKAGE_HEADERS@/" $pkg_name.spec
|
||||
sed -i "s/@SUBPACKAGE_HEADERS@/%description -n $packagename\n@SUBPACKAGE_HEADERS@/" $pkg_name.spec
|
||||
sed -i "s/@SUBPACKAGE_HEADERS@/Noto's design goal is to achieve visual harmonization (e.g., compatible\n@SUBPACKAGE_HEADERS@/" $pkg_name.spec
|
||||
sed -i "s/@SUBPACKAGE_HEADERS@/heights and stroke thicknesses) across languages. This package contains\n@SUBPACKAGE_HEADERS@/" $pkg_name.spec
|
||||
if [ ! -z "$script" ]; then
|
||||
sed -i "s/@SUBPACKAGE_HEADERS@/$script ${serif_dsc}font, hinted.\n@SUBPACKAGE_HEADERS@/" $pkg_name.spec
|
||||
else
|
||||
sed -i "s/@SUBPACKAGE_HEADERS@/$serif font, hinted.\n@SUBPACKAGE_HEADERS@/" $pkg_name.spec
|
||||
fi
|
||||
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
|
||||
if [ $serif == "Arimo" ] || [ $serif == "Cousine" ] || [ $serif == "Tinos" ]; then
|
||||
sed -i "s:@SUBPACKAGE_FILELISTS@:%{_ttfontsdir}/$serif$script$ui-\*.?tf\n@SUBPACKAGE_FILELISTS@:" $pkg_name.spec
|
||||
else
|
||||
sed -i "s:@SUBPACKAGE_FILELISTS@:%{_ttfontsdir}/Noto$serif$script$ui-\*.?tf\n@SUBPACKAGE_FILELISTS@:" $pkg_name.spec
|
||||
fi
|
||||
sed -i "s/@SUBPACKAGE_FILELISTS@/\n@SUBPACKAGE_FILELISTS@/" $pkg_name.spec
|
||||
done
|
||||
|
||||
sed -i 's/@LIST_OF_SUBPACKAGES@//' $pkg_name.spec
|
||||
sed -i 's/@SUBPACKAGE_HEADERS@//' $pkg_name.spec
|
||||
sed -i 's/@SUBPACKAGE_SCRIPTLETS@//' $pkg_name.spec
|
||||
sed -i 's/@SUBPACKAGE_FILELISTS@//' $pkg_name.spec
|
135
generate-specfile.sh
Normal file
135
generate-specfile.sh
Normal file
@ -0,0 +1,135 @@
|
||||
#!/bin/bash
|
||||
# This script is used to generate all of the many hundreds of font
|
||||
# subpackages for google-noto-fonts. It generates a subpackage
|
||||
# description based on each font folder in the tarball.
|
||||
# Packagers should not change google-noto-fonts.spec directly but
|
||||
# instead alter this and google-noto-fonts.spec.in to achieve the
|
||||
# desired result.
|
||||
# This is so that future packagers can simply run this script and
|
||||
# get an updated specfile with all of the new subpackages.
|
||||
# This is a bash script because POSIX-shell does not define
|
||||
# arrays and they are needed to list the many obsoletes and provides
|
||||
# that various subpackages need.
|
||||
|
||||
# Make new seperate packages for arimo, cousine, and tinos
|
||||
|
||||
# https://vaneyckt.io/posts/safer_bash_scripts_with_set_euxo_pipefail/
|
||||
set -euo pipefail
|
||||
|
||||
pkg_name="google-noto-fonts"
|
||||
font_dir="notofonts.github.io-noto-monthly-release-24.1.1"
|
||||
|
||||
# Used to extract the tarball to generate the specfile.
|
||||
# You can comment this out while testing out changes to the script,
|
||||
# just remember to uncomment before commiting!
|
||||
tar -x -f $font_dir.tar.gz
|
||||
|
||||
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
|
||||
continue
|
||||
fi
|
||||
|
||||
# Generate the noto-* part of the package name.
|
||||
serif=$(echo "$font" | sed 's:\(Sans\|Serif\).*:\1:')
|
||||
script=$(echo "$font" | sed "s:$serif\(.*\):\1:")
|
||||
packagename="noto-$serif"
|
||||
if [ -n "$script" ]; then
|
||||
packagename="$packagename-$script"
|
||||
fi
|
||||
packagename=$(echo "$packagename" | tr '[:upper:]' '[:lower:]')
|
||||
if [ "$serif" == "Sans" ]; then
|
||||
serif_dsc="Sans Serif "
|
||||
else
|
||||
serif_dsc="Serif "
|
||||
fi
|
||||
|
||||
## Deal with all of the obsoletes and provides created by various font
|
||||
## renamings, mergers, and splits over the years.
|
||||
# This block contains fonts which previously had an noto-*-ui-fonts subpackage
|
||||
# but Google placed the UI fonts into the same folder as the noto-*-fonts folder
|
||||
# so now they all belong to the same font.
|
||||
if [ "$packagename" == "noto-sans-thailooped" ]; then
|
||||
OBSOLETES=('noto-loopedthai' 'noto-loopedthai-fonts' 'noto-loopedthai-ui' 'noto-loopedthai-ui-fonts')
|
||||
elif [ "$packagename" == "noto-sans-laolooped" ]; then
|
||||
OBSOLETES=('noto-loopedlao' 'noto-loopedlao-fonts' 'noto-loopedlao-ui' 'noto-loopedlao-ui-fonts')
|
||||
elif [ "$packagename" == "noto-naskharabic" ] || [ "$packagename" == "noto-sans-arabic" ] || [ "$packagename" == "noto-sans-bengali" ] || [ "$packagename" == "noto-sans-devanagari" ] || [ "$packagename" == "noto-sans-gujarati" ] || [ "$packagename" == "noto-sans-gurmukhi" ] || [ "$packagename" == "noto-sans-kannada" ] || [ "$packagename" == "noto-sans-khmer" ] || [ "$packagename" == "noto-sans-lao" ] || [ "$packagename" == "noto-sans-malayalam" ] || [ "$packagename" == "noto-sans-myanmar" ] || [ "$packagename" == "noto-sans-oriya" ] || [ "$packagename" == "noto-sans-sinhala" ] || [ "$packagename" == "noto-sans-tamil" ] || [ "$packagename" == "noto-sans-telugu" ] || [ "$packagename" == "noto-sans-thai" ]; then
|
||||
OBSOLETES=("$packagename" "$packagename-fonts" "$packagename-ui" "$packagename-ui-fonts")
|
||||
elif [ "$packagename" == "noto-serif-nphmong" ]; then
|
||||
OBSOLETES+=('noto-serif-nyiakengpuachuehmong' 'noto-serif-nyiakengpuachuehmong-fonts')
|
||||
# This block is for the rest of the fonts...
|
||||
else
|
||||
OBSOLETES=("$packagename" "$packagename-fonts")
|
||||
if [ "$packagename" == "noto-sans" ]; then
|
||||
OBSOLETES+=('noto-sans-display' 'noto-sans-display-fonts')
|
||||
elif [ "$packagename" == "noto-serif-tibetan" ]; then
|
||||
OBSOLETES+=('noto-sans-tibetan' 'noto-sans-tibetan-fonts')
|
||||
elif [ "$packagename" == "noto-sans-syriac" ]; then
|
||||
OBSOLETES+=('noto-sans-syriacestrangela' 'noto-sans-syriacestrangela-fonts')
|
||||
elif [ "$packagename" == "noto-sans-mono" ]; then
|
||||
OBSOLETES+=('noto-mono' 'noto-mono-fonts')
|
||||
elif [ "$packagename" == "noto-arimo" ] || [ "$packagename" == "noto-cousine" ] || [ "$packagename" == "noto-tinos" ]; then
|
||||
OBSOLETES+=("google-$serif-fonts")
|
||||
elif [ "$packagename" == "noto-sans-hebrew" ]; then
|
||||
OBSOLETES+=('noto-sans-hebrewnew' 'noto-sans-hebrewnew-fonts' 'noto-sans-hebrewdroid' 'noto-sans-hebrewdroid-fonts')
|
||||
elif [ "$packagename" == "noto-sans-tifinagh" ]; then
|
||||
OBSOLETES+=('noto-sans-tifinaghadrar' 'noto-sans-tifinaghadrar-fonts' 'noto-sans-tifinaghagrawimazighen' 'noto-sans-tifinaghagrawimazighen-fonts' 'noto-sans-tifinaghahaggar' 'noto-sans-tifinaghahaggar-fonts' 'noto-sans-tifinaghair' 'noto-sans-tifinaghair-fonts' 'noto-sans-tifinaghapt' 'noto-sans-tifinaghapt-fonts' 'noto-sans-tifinaghazawagh' 'noto-sans-tifinaghazawagh-fonts' 'noto-sans-tifinaghghat' 'noto-sans-tifinaghghat-fonts' 'noto-sans-tifinaghhawad' 'noto-sans-tifinaghhawad-fonts' 'noto-sans-tifinaghrhissaixa' 'noto-sans-tifinaghrhissaixa-fonts' 'noto-sans-tifinaghsil' 'noto-sans-tifinaghsil-fonts' 'noto-sans-tifinaghtawellemmet' 'noto-sans-tifinaghtawellemmet-fonts')
|
||||
fi
|
||||
fi
|
||||
|
||||
packagename="google-$packagename-fonts"
|
||||
|
||||
# Create the correct package description for fonts with or without an
|
||||
# Sans/Serif in their name.
|
||||
if [ -n "$script" ]; then
|
||||
summary=$(echo "Noto $script ${serif_dsc}Font" | sed 's:\([a-z]\)\([A-Z]\):\1 \2:g')
|
||||
else
|
||||
summary=$(echo "Noto $serif Font" | sed 's:\([a-z]\)\([A-Z]\):\1 \2:g')
|
||||
fi
|
||||
|
||||
# This chunk of sed commands puts the subpackages into the specfile.
|
||||
# Check out google-noto-fonts.spec.in to see where the placeholder @@
|
||||
# are placed.
|
||||
sed -i "s/@LIST_OF_SUBPACKAGES@/Requires: $packagename\n@LIST_OF_SUBPACKAGES@/" $pkg_name.spec
|
||||
sed -i "s/@SUBPACKAGE_HEADERS@/%package -n $packagename\n@SUBPACKAGE_HEADERS@/" $pkg_name.spec
|
||||
sed -i "s/@SUBPACKAGE_HEADERS@/Summary: $summary\n@SUBPACKAGE_HEADERS@/" $pkg_name.spec
|
||||
sed -i "s;@SUBPACKAGE_HEADERS@;Group: System/X11/Fonts\n@SUBPACKAGE_HEADERS@;" $pkg_name.spec
|
||||
for i in "${OBSOLETES[@]}" ; do
|
||||
sed -i "s/@SUBPACKAGE_HEADERS@/Obsoletes: $i < %{version}\n@SUBPACKAGE_HEADERS@/" $pkg_name.spec
|
||||
sed -i "s/@SUBPACKAGE_HEADERS@/Provides: $i = %{version}\n@SUBPACKAGE_HEADERS@/" $pkg_name.spec
|
||||
done
|
||||
sed -i "s/@SUBPACKAGE_HEADERS@/%reconfigure_fonts_prereq\n@SUBPACKAGE_HEADERS@/" $pkg_name.spec
|
||||
sed -i "s/@SUBPACKAGE_HEADERS@/\n@SUBPACKAGE_HEADERS@/" $pkg_name.spec
|
||||
sed -i "s/@SUBPACKAGE_HEADERS@/%description -n $packagename\n@SUBPACKAGE_HEADERS@/" $pkg_name.spec
|
||||
sed -i "s/@SUBPACKAGE_HEADERS@/Noto's design goal is to achieve visual harmonization (e.g., compatible\n@SUBPACKAGE_HEADERS@/" $pkg_name.spec
|
||||
sed -i "s/@SUBPACKAGE_HEADERS@/heights and stroke thicknesses) across languages. This package contains\n@SUBPACKAGE_HEADERS@/" $pkg_name.spec
|
||||
if [ -n "$script" ]; then
|
||||
sed -i "s/@SUBPACKAGE_HEADERS@/$script ${serif_dsc}font, hinted.\n@SUBPACKAGE_HEADERS@/" $pkg_name.spec
|
||||
else
|
||||
sed -i "s/@SUBPACKAGE_HEADERS@/$serif font, hinted.\n@SUBPACKAGE_HEADERS@/" $pkg_name.spec
|
||||
fi
|
||||
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
|
||||
|
||||
# These are exceptions for font files being named differently.
|
||||
if [ "$packagename" == "google-noto-naskharabic-fonts" ] || [ "$packagename" == "google-noto-sans-bengali-fonts" ] || [ "$packagename" == "google-noto-sans-devanagari-fonts" ] || [ "$packagename" == "google-noto-sans-gujarati-fonts" ] || [ "$packagename" == "google-noto-sans-gurmukhi-fonts" ] || [ "$packagename" == "google-noto-sans-kannada-fonts" ] || [ "$packagename" == "google-noto-sans-malayalam-fonts" ] || [ "$packagename" == "google-noto-sans-sinhala-fonts" ] || [ "$packagename" == "google-noto-sans-tamil-fonts" ] || [ "$packagename" == "google-noto-sans-telugu-fonts" ]; then
|
||||
sed -i "s:@SUBPACKAGE_FILELISTS@:%{_ttfontsdir}/Noto$serif$script-\*.?tf\n%{_ttfontsdir}/Noto$serif${script}UI-\*.?tf\n@SUBPACKAGE_FILELISTS@:" $pkg_name.spec
|
||||
elif [ "$packagename" == "google-noto-sans-tifinagh-fonts" ]; then
|
||||
sed -i "s:@SUBPACKAGE_FILELISTS@:%{_ttfontsdir}/Noto$serif$script\*.?tf\n@SUBPACKAGE_FILELISTS@:" $pkg_name.spec
|
||||
else
|
||||
sed -i "s:@SUBPACKAGE_FILELISTS@:%{_ttfontsdir}/Noto$serif$script-\*.?tf\n@SUBPACKAGE_FILELISTS@:" $pkg_name.spec
|
||||
fi
|
||||
sed -i "s/@SUBPACKAGE_FILELISTS@/\n@SUBPACKAGE_FILELISTS@/" $pkg_name.spec
|
||||
done
|
||||
|
||||
# Remove the @@ placeholders once we are done.
|
||||
sed -i 's/@LIST_OF_SUBPACKAGES@//' $pkg_name.spec
|
||||
sed -i 's/@SUBPACKAGE_HEADERS@//' $pkg_name.spec
|
||||
sed -i 's/@SUBPACKAGE_SCRIPTLETS@//' $pkg_name.spec
|
||||
sed -i 's/@SUBPACKAGE_FILELISTS@//' $pkg_name.spec
|
@ -1,3 +1,37 @@
|
||||
-------------------------------------------------------------------
|
||||
Sat Jan 6 01:46:43 UTC 2024 - Gordon Leung <pirateclip@protonmail.com>
|
||||
|
||||
- Update to 20240101
|
||||
* All fonts have been renamed from noto-*-fonts to
|
||||
google-noto-*-fonts
|
||||
* UI fonts have been merged into their non-UI packages due to
|
||||
changes in how Google distributes the fonts
|
||||
* New fonts: Khitan Small Script
|
||||
(google-noto-fangsongkssrotated-fonts,
|
||||
google-noto-fangsongkssvertical-fonts), Kawi
|
||||
(google-noto-kawi-fonts), Nag Mundari
|
||||
(google-noto-nagmundari-fonts)
|
||||
* Font renames, splits, mergers and deprecations:
|
||||
* Hebrew:
|
||||
* Now hebrewnew and hebrewdroid have been deprecated and replaced
|
||||
with google-noto-sans-hebrew-fonts
|
||||
* Syriac:
|
||||
* Used to be in one package. Now estrangela is
|
||||
google-noto-sans-syriac-fonts, while
|
||||
google-noto-sans-syriacwestern-fonts and
|
||||
google-noto-sans-syriaceastern-fonts represent the west and
|
||||
east syriac scripts
|
||||
* Tifinagh:
|
||||
* The various tifinagh font packages have all been merged into
|
||||
google-noto-sans-tifinagh-fonts
|
||||
* Thai and Lao:
|
||||
* They have been renamed from noto-loopedthai-fonts and
|
||||
noto-loopedlao-fonts to google-noto-thailooped-fonts and
|
||||
google-noto-laolooped-fonts
|
||||
* Arimo, Cousine and Tinos have been removed from the Noto Fonts
|
||||
Github so they are now seperate specfiles again
|
||||
* Remove fix-arimo.patch as Arimo is no longer being provided here
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Nov 17 08:38:12 UTC 2023 - Bernhard Wiedemann <bwiedemann@suse.com>
|
||||
|
||||
|
File diff suppressed because it is too large
Load Diff
@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package google-noto-fonts
|
||||
#
|
||||
# Copyright (c) 2022 SUSE LLC
|
||||
# Copyright (c) 2023 SUSE LLC
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
@ -16,76 +16,56 @@
|
||||
#
|
||||
|
||||
|
||||
%define hyear 2022
|
||||
%define hmonth 06
|
||||
%define hday 07
|
||||
%define hyear 2024
|
||||
%define hmonth 01
|
||||
%define hday 01
|
||||
|
||||
%define src_name NotoFonts
|
||||
|
||||
# DO NOT EDIT THIS SPECFILE DIRECTLY, edit google-noto-fonts.spec.in and run generate-fonts-and-specfile.sh script
|
||||
# DO NOT EDIT THIS SPECFILE DIRECTLY, edit google-noto-fonts.spec.in and run generate-specfile.sh script
|
||||
|
||||
Name: google-noto-fonts
|
||||
Version: %{hyear}%{hmonth}%{hday}
|
||||
Release: 0
|
||||
Summary: Noto Font Families
|
||||
Summary: All Noto Fonts except CJK and Emoji
|
||||
License: OFL-1.1
|
||||
Group: System/X11/Fonts
|
||||
URL: https://github.com/googlefonts/noto-fonts
|
||||
# Generate Source0 via generate-fonts-and-specfile.sh
|
||||
Source0: ttf.tar.gz
|
||||
Source1: generate-fonts-and-specfile.sh
|
||||
Source2: LICENSE
|
||||
Source3: README.FAQ
|
||||
Patch0: fix-arimo.patch
|
||||
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
|
||||
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}
|
||||
@LIST_OF_SUBPACKAGES@
|
||||
|
||||
%description
|
||||
Noto's design goal is to achieve visual harmonization (e.g., compatible heights and stroke
|
||||
thicknesses) across languages.
|
||||
|
||||
%package -n noto-fonts
|
||||
Summary: All Noto Fonts except CJK and Emoji
|
||||
Group: System/X11/Fonts
|
||||
@LIST_OF_SUBPACKAGES@
|
||||
|
||||
%description -n noto-fonts
|
||||
Noto's design goal is to achieve visual harmonization (e.g., compatible
|
||||
heights and stroke thicknesses) across languages. This package contains
|
||||
most noto fonts except for CJK and Emoji.
|
||||
|
||||
thicknesses) across languages. This package contains most noto fonts except for CJK and Emoji.
|
||||
|
||||
@SUBPACKAGE_HEADERS@
|
||||
%prep
|
||||
tar -xzf %{SOURCE0} -C .
|
||||
|
||||
# Arimo BoldItalic has an extra "Italic" style
|
||||
# https://bugzilla.suse.com/show_bug.cgi?id=1202279 and https://github.com/notofonts/Arimo/issues/14
|
||||
# Fix weight too https://github.com/notofonts/Arimo/issues/13
|
||||
ttx ttf/Arimo/Arimo-BoldItalic.ttf
|
||||
%patch0
|
||||
ttx -f ttf/Arimo/Arimo-BoldItalic.ttx
|
||||
rm ttf/Arimo/Arimo-BoldItalic.ttx
|
||||
|
||||
cp %{SOURCE2} .
|
||||
cp notofonts.github.io-noto-monthly-release-24.1.1/fonts/LICENSE .
|
||||
|
||||
%build
|
||||
|
||||
%install
|
||||
# Tifinagh fonts have duplicates in NotoSansTifinagh folder
|
||||
# https://github.com/googlefonts/noto-fonts/issues/2177 and https://github.com/googlefonts/noto-fonts/issues/2326
|
||||
rm ttf/NotoSansTifinagh/NotoSansTifinagh[!\-]*
|
||||
|
||||
# NotoSansDisplay is already provided by NotoSans
|
||||
# Also they have inconsistent family names: https://github.com/googlefonts/noto-fonts/issues/2315
|
||||
rm -r ttf/NotoSansDisplay/
|
||||
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
|
||||
|
||||
install -Dm 644 -t %{buildroot}%{_ttfontsdir} ttf/*/*.ttf
|
||||
install -Dm 644 -t %{buildroot}%{_ttfontsdir} notofonts.github.io-noto-monthly-release-24.1.1/fonts/*/hinted/ttf/*
|
||||
|
||||
@SUBPACKAGE_SCRIPTLETS@
|
||||
%files -n noto-fonts
|
||||
%files
|
||||
%defattr(0644,root,root,755)
|
||||
|
||||
@SUBPACKAGE_FILELISTS@
|
||||
|
3
notofonts.github.io-noto-monthly-release-24.1.1.tar.gz
Normal file
3
notofonts.github.io-noto-monthly-release-24.1.1.tar.gz
Normal file
@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:435e383e26200b10e9c4442e1f588bdeb9c5b498aead02e4819602fff2b4b22b
|
||||
size 1062706467
|
BIN
ttf.tar.gz
(Stored with Git LFS)
BIN
ttf.tar.gz
(Stored with Git LFS)
Binary file not shown.
Loading…
Reference in New Issue
Block a user