Script 'mail_helper' called by obssrc
Hello community,
here is the log from the commit of package google-noto-fonts for
openSUSE:Factory checked in at 2022-05-22 20:26:11
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/google-noto-fonts (Old)
and /work/SRC/openSUSE:Factory/.google-noto-fonts.new.1538 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "google-noto-fonts"
Sun May 22 20:26:11 2022 rev:21 rq:978222 version:20220516
Changes:
--------
--- /work/SRC/openSUSE:Factory/google-noto-fonts/google-noto-fonts.changes
2019-06-24 21:46:20.699781271 +0200
+++
/work/SRC/openSUSE:Factory/.google-noto-fonts.new.1538/google-noto-fonts.changes
2022-05-22 20:26:19.518166763 +0200
@@ -1,0 +2,22 @@
+Thu May 19 15:10:51 UTC 2022 - Gordon Leung <[email protected]>
+
+- Clarify sources
+
+-------------------------------------------------------------------
+Tue May 17 16:47:27 UTC 2022 - Gordon Leung <[email protected]>
+
+- Fix unversioned obsoletes
+- Merge noto-sans-display-fonts into noto-sans-fonts
+ - Fixes inconsistent font family names see Github issue #2315
+- Bump version to 20220516
+ - Start using OTF fonts to be in-line with Noto CJK and Emoji
+ - No new fonts
+
+-------------------------------------------------------------------
+Sat May 14 06:51:21 UTC 2022 - Gordon Leung <[email protected]>
+
+- Update URL and source for zips
+- Update to version 20220509
+ - 96 new fonts, details at https://pastebin.com/ycnpAn88
+
+-------------------------------------------------------------------
Old:
----
Noto-hinted.zip
generate-specfile.sh
New:
----
LICENSE
generate-fonts-and-specfile.sh
otf.tar.gz
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ google-noto-fonts.spec ++++++
++++ 4206 lines (skipped)
++++ between /work/SRC/openSUSE:Factory/google-noto-fonts/google-noto-fonts.spec
++++ and
/work/SRC/openSUSE:Factory/.google-noto-fonts.new.1538/google-noto-fonts.spec
++++++ LICENSE ++++++
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.
++++++ generate-fonts-and-specfile.sh ++++++
#!/bin/sh
pkg_name="google-noto-fonts"
font_dir="otf"
# Get only the otf fonts
svn checkout https://github.com/googlefonts/noto-fonts/trunk/unhinted/otf
tar -cvzf otf.tar.gz otf
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=""
fi
if [ $packagename == "noto-sans" ]; then
OBSOLETES=($packagename 'noto-sans-display' 'noto-sans-display-fonts')
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/@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
sed -i "s/@SUBPACKAGE_HEADERS@/Recommends:
$pkg_name-doc\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@/%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/@SUBPACKAGE_HEADERS@//' $pkg_name.spec
sed -i 's/@SUBPACKAGE_SCRIPTLETS@//' $pkg_name.spec
sed -i 's/@SUBPACKAGE_FILELISTS@//' $pkg_name.spec
++++++ google-noto-fonts.spec.in ++++++
--- /var/tmp/diff_new_pack.4PEtsJ/_old 2022-05-22 20:26:30.830183420 +0200
+++ /var/tmp/diff_new_pack.4PEtsJ/_new 2022-05-22 20:26:30.834183425 +0200
@@ -1,7 +1,7 @@
#
# spec file for package google-noto-fonts
#
-# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2022 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -16,12 +16,13 @@
#
-%define hyear 2017
-%define hmonth 09
-%define hday 19
+%define hyear 2022
+%define hmonth 05
+%define hday 16
+
%define src_name NotoFonts
-# DO NOT EDIT THIS SPECFILE DIRECTLY, edit google-noto-fonts.spec.in and run
generate-specfile.sh script
+# DO NOT EDIT THIS SPECFILE DIRECTLY, edit google-noto-fonts.spec.in and run
generate-fonts-and-specfile.sh script
Name: google-noto-fonts
Version: %{hyear}%{hmonth}%{hday}
@@ -29,11 +30,12 @@
Summary: Noto Font Families
License: OFL-1.1
Group: System/X11/Fonts
-Url: https://github.com/googlei18n/noto-fonts
-Source0:
https://noto-website-2.storage.googleapis.com/pkgs/Noto-hinted.zip
-Source1: generate-specfile.sh
+Url: https://github.com/googlefonts/noto-fonts
+# Generate Source0 via generate-fonts-and-specfile.sh
+Source0: otf.tar.gz
+Source1: generate-fonts-and-specfile.sh
+Source2: LICENSE
BuildRequires: fontpackages-devel
-BuildRequires: unzip
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildArch: noarch
@@ -49,25 +51,29 @@
License for Google's Noto fonts.
@SUBPACKAGE_HEADERS@
-
%prep
-%setup -q -c -n %{name}-%{version}
-# remove cjk
-rm -rf *CJK*.?tf
-# remove emoji
-rm -rf *Emoji*.ttf
+tar -xzf %{SOURCE0} -C .
+cp %{SOURCE2} .
%build
%install
mkdir -p %{buildroot}%{_ttfontsdir}
-cp *.?tf %{buildroot}%{_ttfontsdir}/
+# 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 otf/NotoSansTifinagh/NotoSansTifinagh[!\-]*
+
+# NotoSansDisplay is already provided by NotoSans
+# Also they have inconsistent family names:
https://github.com/googlefonts/noto-fonts/issues/2315
+rm -r otf/NotoSansDisplay/
+
+cp otf/*/*.otf %{buildroot}%{_ttfontsdir}/
@SUBPACKAGE_SCRIPTLETS@
%files doc
%defattr(0644,root,root,755)
-%doc LICENSE*.txt
+%doc LICENSE
@SUBPACKAGE_FILELISTS@